|
sXe.spengler posted:
Amazon AWS posted:Extra Large Instance I..what...how? *Approximately 2.0+Ghz per compute unit Captain Capacitor fucked around with this message at 12:09 on Feb 3, 2012 |
# ? Feb 3, 2012 12:06 |
|
|
# ? May 14, 2024 03:52 |
|
Captain Capacitor posted:I..what...how? This is how code:
code:
|
# ? Feb 3, 2012 12:19 |
|
Let's combine Python and semicolon talk in one post - here's a fun experiment: Get some booze. Search for semicolons in your Python source code. Take one shot for each unnecessary end-of-line semicolon you find.
|
# ? Feb 3, 2012 13:10 |
|
In one project ~2500 lines I found 0 semicolons. In the 12000 line one, I found import traceback; traceback.print_exc(); three times. I blame debugging. Your move
|
# ? Feb 3, 2012 15:17 |
|
Zombywuf posted:No. It's still a major semantic change for what could be a spec of dust on your screen. I don't want to use a language where a bottle of screen cleaner is a debugging tool.
|
# ? Feb 3, 2012 18:28 |
|
You people are hysterical. Why don't you complain about the subtraction operator, that's indistinguishable from a dust particle too.
|
# ? Feb 3, 2012 19:05 |
|
My new language uses only unprintable characters to get around the problem
|
# ? Feb 3, 2012 19:09 |
|
tripwire posted:My new language uses only unprintable characters to get around the problem APL?
|
# ? Feb 3, 2012 20:18 |
|
Zombywuf posted:No. It's still a major semantic change for what could be a spec of dust on your screen. I don't want to use a language where a bottle of screen cleaner is a debugging tool. code:
|
# ? Feb 3, 2012 20:25 |
|
If you can't keep your screen clean, you get what you deserve.
|
# ? Feb 3, 2012 20:47 |
|
tef posted:In one project ~2500 lines I found 0 semicolons. In the 12000 line one, I found import traceback; traceback.print_exc(); three times. I blame debugging. I didn't actually know semicolons where allowed.
|
# ? Feb 3, 2012 20:51 |
|
Zombywuf posted:No. It's still a major semantic change for what could be a spec of dust on your screen. I don't want to use a language where a bottle of screen cleaner is a debugging tool. I think you're being a bit unfair, because all that missing a semicolon does is give you a compile error. That's much more benign than the C example exhibited above.
|
# ? Feb 3, 2012 22:49 |
|
Now what we need is a language that uses colons sometimes as terminators and semi-colons other times. Oh and tickmarks and single quotes.
|
# ? Feb 3, 2012 23:06 |
|
Scaramouche posted:Now what we need is a language that uses colons sometimes as terminators and semi-colons other times. Oh and tickmarks and single quotes.
|
# ? Feb 3, 2012 23:09 |
|
The Gripper posted:How about a language where whitespace is significant, and tabs and spaces are treated differently? How about a language that is only whitespace?
|
# ? Feb 3, 2012 23:19 |
|
The Gripper posted:How about a language where whitespace is significant, and tabs and spaces are treated differently? Impossible. No one would ever be productive in such a language, and even if they could they certainly could not enjoy such a language.
|
# ? Feb 3, 2012 23:28 |
|
Thermopyle posted:Impossible. No one would ever be productive in such a language, and even if they could they certainly could not enjoy such a language. You take that back! COBOL is great for processing tabular data!
|
# ? Feb 3, 2012 23:31 |
|
Jesus I read that Whitespace wikipedia and checked out some of the other 'esoteric programming languages'. The worst probably being LOLCODE http://en.wikipedia.org/wiki/LOLCODEcode:
|
# ? Feb 3, 2012 23:39 |
|
Welcome to the jungle, Scaramouche: http://esolangs.org/wiki/Main_Page
|
# ? Feb 3, 2012 23:47 |
|
If you talks esoteric language, you have to mention Malbolge. It took only two years for the first program to appear when the language was invented. And oh god, it has a "crazy operation". And here is "Hello world!" in malbolge, stolen from wikipedia: code:
|
# ? Feb 3, 2012 23:49 |
|
geonetix posted:If you talks esoteric language, you have to mention Malbolge. It took only two years for the first program to appear when the language was invented. And oh god, it has a "crazy operation". The best part is that it took a heuristic search program to "find" the first program.
|
# ? Feb 3, 2012 23:53 |
|
Here's a Malbolge program demonstrating a functioning loop, with ensuing discussion: http://99-bottles-of-beer.net/language-malbolge-995.html
|
# ? Feb 3, 2012 23:55 |
|
I'm a fan of brainfuck. It is actually worth learning if you are the kind of person who enjoys pen and paper puzzles. Writing a simple program in brainfuck is like solving a sudoku or something.
|
# ? Feb 3, 2012 23:59 |
|
I actually had to write a program in chef while I was an undergrad. To get full credit, your program had to also be a recipe that could be followed to yield an actual, edible product, and your program's output had to be in some way related to the food the recipe made. I'm sad Ian Bogost doesn't really teach anymore
|
# ? Feb 4, 2012 00:01 |
|
No Safe Word posted:The best part is that it took a heuristic search program to "find" the first program.
|
# ? Feb 4, 2012 00:03 |
|
Poop Delicatessen posted:I actually had to write a program in chef while I was an undergrad. To get full credit, your program had to also be a recipe that could be followed to yield an actual, edible product, and your program's output had to be in some way related to the food the recipe made. Please, PLEASE tell me you have a successful example. Unless it has something to do with your username, in which case you can keep it to yourself.
|
# ? Feb 4, 2012 00:49 |
|
Dicky B posted:Writing a simple program in Think you had a typo there.
|
# ? Feb 4, 2012 01:40 |
|
Esolang has a page about a Brainfuck variant that combines Brainfuck and Core Wars http://esolangs.org/wiki/FukYorBrane
|
# ? Feb 4, 2012 04:03 |
|
tripwire posted:My new language uses only unprintable characters to get around the problem Mine too, except in mine all the keywords are unprintable instead.
|
# ? Feb 4, 2012 05:07 |
|
Scaramouche posted:Now what we need is a language that uses colons sometimes as terminators and semi-colons other times. Oh and tickmarks and single quotes. Maple uses colons and semicolons as statement terminators. If you use a semicolon then the result (if any) of the computation performed by the statement is displayed. If you use a colon then it is not displayed. Except that if you have statements nested inside a control structure, the result of computation will be displayed if the value of the global variable printlevel is large enough (that is: at least as large as the number of control structures inside which the statement is nested). In theory you can set printlevel to a high number and then optionally suppress output using the colon as a statement terminator... but in my experience, when output is allowed using printlevel it will sometimes appear even for statements that end with a colon. Why this happens, when it happens and how to stop it are all a mystery.
|
# ? Feb 4, 2012 05:17 |
|
Context: this post. Let's start with what I called "stooge maps". They wanted an ordered set of key-value pairs in JSON. How did they choose to represent it? code:
And of course, it's a pain to parse: code:
They have their own module system, of course, but it's not what you think. I have no idea why things are even divided into modules when everything still writes to the global namespace and they all cross-reference each other (even the base module code makes reference to registerModule and raiseEvent, which is in another file) We had a system where we needed fancy tooltips. I don't have CVS access any more, but the code looked like: code:
|
# ? Feb 4, 2012 13:09 |
|
Suspicious Dish posted:Rolling their own stuff meant that the engineers would know the codebase better. Bah.
|
# ? Feb 4, 2012 15:24 |
|
If in-house developers come up with a simpler, less general solution that addresses the actual needs of the application, it's not hard to imagine it being easy to maintain. The real problems are feature-creep and in-house solutions that are as complex or even hairer than the off-the-shelf tools they were meant to replace.
|
# ? Feb 4, 2012 15:42 |
|
Internet Janitor posted:If in-house developers come up with a simpler, less general solution that addresses the actual needs of the application, it's not hard to imagine it being easy to maintain. The real problems are feature-creep and in-house solutions that are as complex or even hairer than the off-the-shelf tools they were meant to replace. Not using jQuery specifically means your organization has its head up your own rear end more than Microsoft does - it's been included as is in visual studio for 4 years.
|
# ? Feb 4, 2012 16:09 |
|
hieronymus posted:Not using jQuery specifically means your organization has its head up your own rear end more than Microsoft does - it's been included as is in visual studio for 4 years.
|
# ? Feb 4, 2012 16:50 |
|
hieronymus posted:Not using jQuery specifically means your organization has its head up your own rear end more than Microsoft does - it's been included as is in visual studio for 4 years. I ditched jQuery and wrote my own wrappers for common functions, and a builder to target specific contexts (per page scripting, or mobile device optimised scripts). jQuery, at best, is a rapid prototyping tool. It's not bullet-proof by any means.
|
# ? Feb 4, 2012 19:24 |
|
Funking Giblet posted:I ditched jQuery and wrote my own wrappers for common functions, and a builder to target specific contexts (per page scripting, or mobile device optimised scripts). jQuery, at best, is a rapid prototyping tool. It's not bullet-proof by any means.
|
# ? Feb 4, 2012 19:38 |
|
At least with jQuery, it's pretty likely that anyone new on your team will already know it. If I was interviewing at a place and they said "We don't use jQuery, we wrote our own jQuery analog," I'd be very wary about taking the position. Reinventing the wheel is rarely beneficial.
|
# ? Feb 4, 2012 19:51 |
|
Ithaqua posted:At least with jQuery, it's pretty likely that anyone new on your team will already know it. If I was interviewing at a place and they said "We don't use jQuery, we wrote our own jQuery analog," I'd be very wary about taking the position. Reinventing the wheel is rarely beneficial. It's funny how the way that gets said communicates everything. If someone said "gently caress jquery, it's worthless, we have our own gear", then yeah I'd be wondering what's up. But that same person, when they didn't just finish a four hour bug hunt that ended up being due to jquery, might say "jquery's great but we kept running into problems A and B, so we took the parts that work and made it our own", which sounds thoughtful.
|
# ? Feb 4, 2012 20:16 |
|
|
# ? May 14, 2024 03:52 |
|
Suspicious Dish posted:
This is so elegant in its horribleness. I love it.
|
# ? Feb 5, 2012 16:32 |