|
Finally my CSound expertise is valuable!
|
# ? Mar 9, 2017 18:06 |
|
|
# ? Jun 5, 2024 15:37 |
|
code:
|
# ? Mar 11, 2017 01:32 |
|
That monstrosity is no longer SQL. Not sure what it is, but it's bad, and it's wrong, and it's not SQL. String-manipulating in order to get a date-order going is just pure crap.
|
# ? Mar 11, 2017 01:36 |
|
Out of curiosity, would something like this work?code:
|
# ? Mar 11, 2017 03:48 |
|
TheresaJayne posted:I saw a website the other day that insisted on >8 characters must have Upper and Lower case + Numerals - Special Characters not allowed including space Only lowercase numbers are allowed.
|
# ? Mar 11, 2017 09:55 |
|
the 90s want their Server Side Includes back
|
# ? Mar 11, 2017 11:32 |
|
WARNING Not for the faint of heart. https://msdn.microsoft.com/en-us/magazine/mt795187 quote:Editor’s Note Well, that's an encouraging start. quote:What I’m presenting here isn’t an alternative to Agile or other such methodologies. Agile is, after all, a management framework, not an architectural design pattern. Instead, I’m proposing a design methodology that allows you to more easily become Agile because you can prepare up front for change. Over the past few years I’ve developed a design pattern I call “Active Events.” Go on... quote:My guess is that your project and class dependencies look like they do in most other projects. It’s highly likely your project’s dependency graph resembles spaghetti. Sorry for being brutally honest, but that’s what my experiences indicate. But, relax, you’re not alone. Although I don’t have hard data, I would claim 98 percent of the world’s code suffers from the same problem. Besides, I wouldn’t force you to confront this issue unless I had a solution for you. Zero entanglement? No more spaghetti code? Oh boy, am I listening! :iamafag: quote:The Active Events design pattern is actually surprisingly easy to understand. Instead of creating interfaces to separate the implementation and consumer of a piece of logic, you simply mark your methods with an attribute. Here’s an example: wait quote:To invoke a method that has been defined using the Active Event paradigm is equally simple. Instead of invoking your method directly, you indirectly invoke it through its Active Event name: wait wat quote:Also notice that all Active Events have the exact same signature. Hence, classes, interfaces, and methods move a bit behind the scene and become less a focus in the source code. wait WAT quote:However, because no signatures or types need to be known and shared between the consumer and the implementation of an active event, you have more of a black box environment than you might have with OOP. This allows you to easily exchange, for instance, SaveToDatabase with InvokeWebService or SaveToFile. quote:Polymorphism is as easy as changing a string. Here’s an example of how to implement polymorphism using Active Events: quote:This is polymorphism without types. This is polymorphism dynamically determined during runtime. By taking all traditional ideas about polymorphism out of the equation, and refactoring the very essence of polymorphism, you end up with actual working polymorphism—encapsulation and polymorphism, without classes, types, interfaces or design patterns. Chaining your Active Events becomes as easy as combining atoms into molecules. That is agile software!
|
# ? Mar 13, 2017 22:44 |
|
Reminds me of that enterprise Java fizz buzz example. No, the other one, where it's "a single line of code" and he's just depressed at how many programmers stroll through his interviews without that glorious insight and pollute his whiteboards with conditionals and such.
|
# ? Mar 13, 2017 22:51 |
ActiveX is too dead, we definitely needed a new Active thing.
|
|
# ? Mar 13, 2017 22:52 |
|
NihilCredo posted:WARNING Not for the faint of heart. The author works at Microsoft right? Is this some kind of roundabout way to get Raymond Chen to drop by and explain DCOM to him or something?
|
# ? Mar 13, 2017 22:58 |
|
TIL that if your compiler cannot statically validate the contracts associated with a dependency, it doesn't exist. Wish me luck, folks- gonna go cover my eyes and use the resulting invisibility to rob a bank.
|
# ? Mar 13, 2017 23:02 |
|
JawnV6 posted:Reminds me of that enterprise Java fizz buzz example. No, the other one, where it's "a single line of code" and he's just depressed at how many programmers stroll through his interviews without that glorious insight and pollute his whiteboards with conditionals and such.
|
# ? Mar 13, 2017 23:08 |
|
NihilCredo posted:WARNING Not for the faint of heart. quote:In this project I created a new programming language, Hyperlambda, for creating Active Events hooks. This allows me to change the implementation of my for-each and while statements if I want. I can also scale out my else statements, to be executed on another server. And I can easily extend the programming language to create my own domain-specific keywords, for doing whatever my domain problems require. ~~~HYPERLAMBDA~~~ There's no way it can possibly be serious, the author is a masterful troll.
|
# ? Mar 13, 2017 23:52 |
|
NihilCredo posted:WARNING Not for the faint of heart. Edit: vvvv holy yikes, I've changed my mind and this is the real deal Winter Stormer fucked around with this message at 00:24 on Mar 14, 2017 |
# ? Mar 13, 2017 23:59 |
|
Hammerite posted:~~~HYPERLAMBDA~~~ Well then that's one heck of an effortful troll: https://github.com/polterguy/phosphorusfive code:
NihilCredo fucked around with this message at 01:27 on Mar 14, 2017 |
# ? Mar 14, 2017 00:14 |
|
NihilCredo posted:Well then that's one heck of an effortful troll: I choose not to look too closely lest I be forced to entertain the notion that it's actually sincere, because then I might turn into the funny cgi pig from that xtranormal video and start talking about becoming a farmer shovelling pigshit or whatever.
|
# ? Mar 14, 2017 00:28 |
|
I knew it had to be a troll when I saw:quote:If your Node class conforms to these constraints, you can easily transform almost all possible objects to a Node instance. code:
I think it's a tongue-in-cheek dig at javascript and dynamic languages in general
|
# ? Mar 14, 2017 02:06 |
|
Is there a thread for the opposite of coding horrors? I just started my first use of NVENC, Nvidia's on-chip video encoding library, and it's just a masterpiece of low-level API documentation. A walk-through programming guide and really informative inline comments in the header file. Would code again.
|
# ? Mar 14, 2017 02:14 |
If the last year has taught me anything, whenever you think "this can't be serious - no one could believe this is a good idea" - you are wrong. Man that code is bad. It's just filled with noise comments too. 'Documentation' that just obscures.
|
|
# ? Mar 14, 2017 02:24 |
|
darthbob88 posted:Mind posting it? I assume it's a single line (with a shitload of abstraction and polymorphism behind it)? How about this? code:
|
# ? Mar 14, 2017 02:49 |
Apl?
|
|
# ? Mar 14, 2017 03:14 |
|
Close; K.
|
# ? Mar 14, 2017 03:46 |
|
Does that run particularly fast, or is it only the array primitives that are optimised?
|
# ? Mar 14, 2017 10:53 |
|
It's constructing a heterogenous list and it's forced to do so in a scalar context because I need the index, so not insanely fast. To give you an idea, here's a comparison of the entire program versus a parallel, vectorizable version of its heart which just determines the classification raw number/buzz/fizz/fizzbuzz. Timings are in milliseconds:code:
Internet Janitor fucked around with this message at 14:00 on Mar 14, 2017 |
# ? Mar 14, 2017 13:56 |
|
I'm not quite sure what the '{2/~3 5!\:x}'-function is doing. Some kind of reduction? I wrote a version in another language that simply produces a list of results, and that executes in about 900us on my CPU (i5-5300U, early 2015), and 480us on my Intel GPU.
|
# ? Mar 14, 2017 14:06 |
|
B-Nasty posted:I think it's a tongue-in-cheek dig at javascript and dynamic languages in general I think that's the case.
|
# ? Mar 14, 2017 16:32 |
|
Hammerite posted:~~~HYPERLAMBDA~~~ He's pretty committed: https://gaiasoul.com/author/phosphorusfive/ edit: https://gaiasoul.com/2017/03/14/i-said-i-want-to-kill-friend of the family-president-barack-obama/ quote:And for the record, even though I perceive Barack Obama as a selfish prick, tyrant, and destroyer of democracy, I have no plans, and have never had any for that matter, to actually go out and snuff him. I also have no prejudice towards black men. Some of my best friends have been “men of colour”. Bognar fucked around with this message at 20:05 on Mar 14, 2017 |
# ? Mar 14, 2017 20:03 |
Internet Janitor posted:Close; K. I like K and APL because they remind me of what looking at code was like before I learned how to program. It makes me more patient with beginners
|
|
# ? Mar 14, 2017 20:10 |
Bognar posted:He's pretty committed: https://gaiasoul.com/author/phosphorusfive/ Stop! At some point you're supposed to stop descending into the rabbit hole.
|
|
# ? Mar 14, 2017 20:59 |
|
Athas posted:I'm not quite sure what the '{2/~3 5!\:x}'-function is doing. 3 5!\:x is "(3;5) modulo each-left x". Note that the K modulo operator takes its arguments in the opposite order of most languages. This ends up being very convenient in combination with the right-to-left execution order. code:
code:
I do think that this approach to the problem is pleasant and easy to understand, modulo unfamiliar syntax. It was very easy to build up and verify as I wrote it in a REPL.
|
# ? Mar 14, 2017 22:05 |
|
Internet Janitor posted:modulo unfamiliar syntax
|
# ? Mar 14, 2017 22:54 |
|
trying to check out a project that eventually generates videos or something, but the guy who's been on it up til now dumped like 20+ gigs of video artifacts into git. I wonder how many weeks until this thing finishes cloning.
|
# ? Mar 15, 2017 15:17 |
|
ACB (Always Commit Binaries)
|
# ? Mar 15, 2017 15:19 |
|
Munkeymon posted:I think that's the case. Bognar posted:He's pretty committed: https://gaiasoul.com/author/phosphorusfive/ gently caress look how wrong I was. That headline is two clicks and some scrolling from that MSDN article, too. Cypriot expelled from the US for threatening to kill the president but is looking for work posted:Unfortunately, I cannot provide you with references, since most people who I work for, seem to not wanting to admit that I have been working for them – Since I am quite controversial.
|
# ? Mar 15, 2017 16:35 |
|
Munkeymon posted:gently caress look how wrong I was. That headline is two clicks and some scrolling from that MSDN article, too. In order for him to be "controversial" I think he would need to actually divide opinion, which if everyone agrees you're a piece of poo poo, you don't do.
|
# ? Mar 15, 2017 17:08 |
|
it's the web framework version of templos
|
# ? Mar 15, 2017 23:56 |
|
There's no way they didn't just post that to make fun of the dude. just noquote:It took me seven years to unlearn what I had previously learned and to trust my intuition. Like, I wonder where would be a good place to put all of my method signatures ... hmmmmmmmmmm ....... Creating an undecipherable DSL and then doing contract work with it isn't the worst idea though. dougdrums fucked around with this message at 00:36 on Mar 16, 2017 |
# ? Mar 16, 2017 00:21 |
|
I once, on a lark, wrote an application that'd create a REST API with Flask from a JSON spec. I quit when I realized that anything more than simple SQL insert/select and schema updates were going to be nearly impossible to do without building out a DSL that embeds within the JSON. This guy saw that and said "good idea."
|
# ? Mar 16, 2017 03:17 |
|
Ghost of Reagan Past posted:I once, on a lark, wrote an application that'd create a REST API with Flask from a JSON spec. The whole thing seems like almost a copy of windows message handling in the pre-event driven days. He just needs to throw in a central messaging handling loop and a message queue and he'd be set. Welcome to Windows programming before Delphi, C++ Builder and VB (or Visual C++ for almost 10 years after that). I remember trying to work with VC++ AFTER working with C++ Builder in the mid 90's. Holy poo poo no.
|
# ? Mar 16, 2017 04:04 |
|
|
# ? Jun 5, 2024 15:37 |
|
Does "modifying your program to display a political message every time it's run" constitute a coding horror? There's even a GitHub issue about it that's just waiting to turn into a shitfest.
|
# ? Mar 16, 2017 04:14 |