|
Doc Hawkins posted:"Spookylang stands behind but one goal: to be the scariest programming language." I was hoping this would be “scary” like “it’s a high level language but doesn’t do boundary checking,” “our operator precedence table is fifty lines long,” and, “our random number generator was written by a CS 101 student trying his best.”
|
# ? Oct 27, 2017 00:03 |
|
|
# ? May 31, 2024 17:46 |
"All functions are asynchronous, but there's no mutual exclusion"
|
|
# ? Oct 27, 2017 00:40 |
|
every basic operator is interpreted in the least useful way possible. better remember to use 2 ++ 1 if you want addition, because 2 + 1 = 21
|
# ? Oct 27, 2017 01:22 |
|
Jeb Bush 2012 posted:every basic operator is interpreted in the least useful way possible. better remember to use 2 ++ 1 if you want addition, because 2 + 1 = 21 The "rear end in a top hat genie" language legit sounds pretty funny.
|
# ? Oct 27, 2017 02:27 |
|
TooMuchAbstraction posted:The "rear end in a top hat genie" language legit sounds pretty funny. quote:
The number of "=" is equivalent to sizeof(T), and thus architecture dependent and sensitive to adding elements to a struct. E: My favorite "rear end in a top hat genie" moment when trying a real language was my first time using Javascript and attempting to type "print" in the console to debug a value
|
# ? Oct 27, 2017 02:37 |
|
TooMuchAbstraction posted:[*]len(str) returns the average bytes per character of the string. len returns the length of the string in grapheme clusters, but subscript/slicing indexes by utf-8 code point
|
# ? Oct 27, 2017 02:48 |
|
len attempts to create an IPA phonetic version of the string and gives the utf8 byte count of this representation. The length function is similar but returns the number of syllables.
|
# ? Oct 27, 2017 02:54 |
|
rjmccall posted:len returns the length of the string in grapheme clusters, but subscript/slicing indexes by utf-8 code point It returns the width, in pixels, of the string, in an unspecified font. e: x / y returns x half the time, and y the other half. x - y returns the a list of all of the integers between x and y inclusive. % is a unary operator which divides a number by 100. > < => <= >> and << are all assignment operators x != y assigns to x an arbitrary value which is is not y. Dr. Stab fucked around with this message at 06:11 on Oct 27, 2017 |
# ? Oct 27, 2017 05:55 |
|
Dr. Stab posted:It returns the width, in pixels, of the string, in an unspecified font. It returns the Least Exciting Neighbor of the word in the dictionary. If it's not a word in Esperanto, UB.
|
# ? Oct 27, 2017 05:59 |
|
Absurd Alhazred posted:It returns the Least Exciting Neighbor of the word in the dictionary. If it's not a word in Esperanto, UB. This is a complex thing to try, even if you implement a vandical time algorithm . It boils down to sub optimal Gore searches in a complex Wash problem space.
|
# ? Oct 27, 2017 06:29 |
|
every variable is actually an object with a .type method, but calling x.type() prints the variable name (eg "x") to the terminal for loops always execute exactly 4 times & is simply an alias for +
|
# ? Oct 27, 2017 07:44 |
|
I've been holding off on posting here, because my new workplace has so many coding horrors in their legacy stuff that I just don't know where to begin. So I'll start off small. They had the foresight to understand that they would need different configuration in their webforms project for test and prod, but they eschewed config transformations I guess, so the configs are actually called web.config, web.config.staging and web.config.prod. There's a script that runs in the build plan that replaces the config file with the appropriate one. Aside from the appSettings section, these files share almost nothing in common, including both staging and prod missing entirely ALL of the binding redirects present in web.config making deployment a real "let's hope it works" kind of thing. Oh and web.config.staging is not used in staging. It's used in test.
|
# ? Oct 27, 2017 09:45 |
|
Every call to "random" generates a single random number, decided at compile time.
|
# ? Oct 27, 2017 10:38 |
|
Ranzear posted:This guy gets it. Why not just serialize the floats to 32 bits instead of to a string? If you have more than 4 bytes for floats you're sending in perf-relevant netcode, you've got some problems.
|
# ? Oct 27, 2017 11:06 |
|
boo_radley posted:This is a complex thing to try, even if you implement a vandical time algorithm . It boils down to sub optimal Gore searches in a complex Wash problem space. Why can't it be a simple std::map<std::string, float> with the float being "interesting" as judged by our intern, Jodie?
|
# ? Oct 27, 2017 13:13 |
|
Linear Zoetrope posted:Every call to "random" generates a single random number, decided at compile time. I've seen this one in real life (some proprietary thing)
|
# ? Oct 27, 2017 14:32 |
|
Today I learned that there's a goatse operator - =()= in Perl. I don't know how to feel about it
|
# ? Oct 27, 2017 15:06 |
|
canis minor posted:Today I learned that there's a goatse operator - =()= in Perl. I don't know how to feel about it form following function
|
# ? Oct 27, 2017 15:07 |
|
Here’s a guy who created his own rear end in a top hat language, but strictly by taking the worst parts of real languages. It’s starts with PHP, adds significant white space, C macros, unless, and keeps going. https://www.infoq.com/presentations/worst-programming-language
|
# ? Oct 27, 2017 15:50 |
|
lifg posted:Here’s a guy who created his own rear end in a top hat language, but strictly by taking the worst parts of real languages. It’s starts with PHP, adds significant white space, C macros, unless, and keeps going. I was at a conference a few years ago where there was an evening "wacky" talk on a similar topic. Might have been the same guy. It got sidetracked really quickly into stuff like "you have to write programs in MS Word lol" rather than what actual program code would be like though.
|
# ? Oct 27, 2017 16:10 |
|
We made a toy c style language in college that ended every statement with a ? instead of a semicolon, and we thought it was hysterical.
|
# ? Oct 27, 2017 16:42 |
|
Rubellavator posted:We made a toy c style language in college that ended every statement with a ? instead of a semicolon, and we thought it was hysterical. I think you could do this: code:
|
# ? Oct 27, 2017 16:49 |
lifg posted:Here’s a guy who created his own rear end in a top hat language, but strictly by taking the worst parts of real languages. It’s starts with PHP, adds significant white space, C macros, unless, and keeps going. It has C/C++'s build system right?
|
|
# ? Oct 27, 2017 17:32 |
|
ProPublica obtained the source code for New York City's Forensic Statistical Tool (FST), developed by employees of the city's medical examiner's office to help analyze complex DNA evidence from crime scenes. The software source code contained within this repository is Copyright © City of New York and was unsealed by a federal judge after a motion by ProPublica. This is kind of eye-opening! I'm the 300 line pseudo-factory case statement that relies on magic ints in comparisondata.cs.
|
# ? Oct 27, 2017 17:47 |
|
iospace posted:I think you could do this: Yeah, you can't #define an arbitrary token, just something that's lexically an identifier (but including keywords).
|
# ? Oct 27, 2017 18:22 |
|
leper khan posted:Why not just serialize the floats to 32 bits instead of to a string? If you have more than 4 bytes for floats you're sending in perf-relevant netcode, you've got some problems. Because it's old as hell now, I'm lazy, and it's JSON, but that's not a bad idea. It may also have been to make it more readable in debugging. I did mention it totally belongs here. I'd go to WebRTC for anything new, and send far more granular updates.
|
# ? Oct 27, 2017 19:02 |
|
canis minor posted:Today I learned that there's a goatse operator - =()= in Perl. I don't know how to feel about it The correct reaction is shock and horror because it’s not ±()=
|
# ? Oct 27, 2017 19:37 |
|
lifg posted:Here’s a guy who created his own rear end in a top hat language, but strictly by taking the worst parts of real languages. It’s starts with PHP, adds significant white space, C macros, unless, and keeps going.
|
# ? Oct 27, 2017 20:08 |
|
boo_radley posted:ProPublica obtained the source code for New York City's Forensic Statistical Tool (FST), developed by employees of the city's medical examiner's office to help analyze complex DNA evidence from crime scenes. quote:compareMethodIDSerializationBackupDoNotMessWithThisVariableBecauseItsAnUglyHackAroundACrappyLimitiationOfTheFCLsCrappyXMLSerializer When the developers don't understand the most basic things about .NET serialization you know poo poo is going to be good. quote:// we do this because the .NET XML Serializer does not actually set public properties to the stored value, but instead it looks into the getter/setter methods This is somehow both wrong and almost right. It's like a carpenter who doesn't understand how to use a table saw so they cut all lumber by filing for a long time in the same spot. How did you get a job doing carpentry without learning about saws?!?!
|
# ? Oct 27, 2017 20:54 |
|
Simulated posted:This is somehow both wrong and almost right. It's like a carpenter who doesn't understand how to use a table saw so they cut all lumber by filing for a long time in the same spot. How did you get a job doing carpentry without learning about saws?!?! Look dude, I'm just trying to cut this board. My file works for me, I'm not interested in buying new tools, so if you could just help me cut this board and lay off about how I'm "doing it wrong" or whatever, I've got a bathroom to remodel here and these joists ain't gonna notch themselves.
|
# ? Oct 27, 2017 21:04 |
|
lifg posted:Here’s a guy who created his own rear end in a top hat language, but strictly by taking the worst parts of real languages. It’s starts with PHP, adds significant white space, C macros, unless, and keeps going. On this page it was already proven that Perl is the ultimate rear end in a top hat language
|
# ? Oct 27, 2017 22:48 |
|
boo_radley posted:ProPublica obtained the source code for New York City's Forensic Statistical Tool (FST), developed by employees of the city's medical examiner's office to help analyze complex DNA evidence from crime scenes. C# code:
C# code:
|
# ? Oct 27, 2017 23:56 |
|
boo_radley posted:ProPublica obtained the source code for New York City's Forensic Statistical Tool (FST), developed by employees of the city's medical examiner's office to help analyze complex DNA evidence from crime scenes. code:
|
# ? Oct 28, 2017 11:35 |
|
comedyblissoption posted:significant white space (indentation to indicate scope) is a good feature
|
# ? Oct 28, 2017 18:48 |
|
idgi
|
# ? Oct 29, 2017 19:23 |
|
It's a loop over a range
|
# ? Oct 29, 2017 22:54 |
|
qsvui posted:idgi The joke is based on that puppet dog character's catchphrase, which is: "For me to poop on!"
|
# ? Oct 29, 2017 23:00 |
|
canis minor posted:Today I learned that there's a goatse operator - =()= in Perl. I don't know how to feel about it
|
# ? Oct 31, 2017 00:38 |
|
The worse indictment is that the goatse operator is a workaround for the missing list keyword, which Perl omits "because in practice, this is never needed".
|
# ? Oct 31, 2017 01:34 |
|
|
# ? May 31, 2024 17:46 |
|
https://twitter.com/CodyBonnar/status/924417121697878016
|
# ? Oct 31, 2017 01:37 |