|
wolffenstein posted:Always assume it will go into production, because it almost always will. The lesser-known corollary of "Development is Production."
|
# ? Mar 8, 2013 05:37 |
|
|
# ? Jun 8, 2024 06:15 |
|
Volmarias posted:Awful app is making it impossible to output & lt; without spaces. Even tried replacing & with & amp; Whoops, I'm on it. Very surprised not to see the app come up earlier in this thread.
|
# ? Mar 8, 2013 11:36 |
|
pokeyman posted:Whoops, I'm on it. I have no idea what the internals look like but I think it's pretty well designed as an end user.
|
# ? Mar 8, 2013 14:47 |
|
That Turkey Story posted:There's #elif in the C and C++ preprocessor. Programming Perl posted:Note also that "elif" is "file" spelled backward. Only Algol-ers would want a keyword that was the same as another word spelled backward.
|
# ? Mar 8, 2013 14:51 |
|
We have elseif, elsif and elif. Does any languages use eif?
|
# ? Mar 8, 2013 15:55 |
|
ymgve posted:We have elseif, elsif and elif. Does any languages use eif? What about elf?
|
# ? Mar 8, 2013 16:38 |
|
ymgve posted:We have elseif, elsif and elif. Does any languages use eif? What about the other direction? otherwise, alternatively, ???
|
# ? Mar 8, 2013 16:46 |
|
ymgve posted:We have elseif, elsif and elif. Does any languages use eif? in MUMPS, e if is a syntactically valid else if (although the style is a bit unusual).
|
# ? Mar 8, 2013 16:48 |
|
Munkeymon posted:What about the other direction? XSLT's equivalent for select/case/default is choose/when/otherwise.
|
# ? Mar 8, 2013 16:51 |
|
edit: nevermind, I am dumb
|
# ? Mar 8, 2013 17:01 |
|
Zhentar posted:in MUMPS, e if is a syntactically valid else if (although the style is a bit unusual). I haven't written in MUMPS but from what I've seen of it, everything looks a bit unusual.
|
# ? Mar 8, 2013 17:09 |
|
Munkeymon posted:What about the other direction? perl has unless Perl code:
|
# ? Mar 8, 2013 17:29 |
|
pokeyman posted:Very surprised not to see the app come up earlier in this thread.
|
# ? Mar 8, 2013 17:32 |
|
pokeyman posted:Very surprised not to see the app come up earlier in this thread. The app got stuck in some sort of loop the other day for me, where it would continually try to refresh whatever forum I was viewing, and it couldn't understand the page counts. Even rebooting the phone didn't fix it, I had to uninstall the app and reinstall for it to work properly again.
|
# ? Mar 8, 2013 17:40 |
|
Scaevolus posted:The main Awful horror is how it maxes out the CPU sometimes when you switch away from it. I dunno, my favorite story like that is the time I was testing Songbird and just watched it memory leak away at about a megabyte/second. I think I got bored watching it and killed it at around 2 gigs used.
|
# ? Mar 8, 2013 17:40 |
|
Munkeymon posted:What about the other direction? code:
The clauses after the '|'s are evaluated in sequence and the first clause that evaluates to True has its branch taken, so it's functionally () equivalent to an if .. else if .. else chain. otherwise is literally defined as otherwise = True.
|
# ? Mar 8, 2013 18:43 |
|
Volmarias posted:I have no idea what the internals look like but I think it's pretty well designed as an end user. The prefix on everything is "Awful", so you get AwfulTheme, AwfulURL, AwfulAppDelegate.... It's fun to start a new file with such low expectations of quality.
|
# ? Mar 8, 2013 19:49 |
|
Xerophyte posted:In Haskell it's idiomatic to use otherwise for what's basically else: I really need to finish that Haskell tutorial - I can almost read that second one. e: Get the first one just fine, though. I fond that idiom very intuitive for whatever reason. Munkeymon fucked around with this message at 22:48 on Mar 8, 2013 |
# ? Mar 8, 2013 19:57 |
|
Munkeymon posted:I really need to finish that Haskell tutorial - I can almost read that second one. If you feel it's getting to easy for you try Agda. I mean, it's really cool but code:
EDIT: Damnit Radium! tbh it's no clearer with the original characters though: http://www.cse.chalmers.se/~nad/repos/lib/src/Data/Nat.agda Zombywuf fucked around with this message at 20:08 on Mar 8, 2013 |
# ? Mar 8, 2013 20:06 |
|
Zombywuf posted:If you feel it's getting to easy for you try Agda. If anyone actually wants to try to learn Agda then a: I pity you and b: I feel I should point out that the standard library does come in a hyperlinked version that makes checking out what the assorted squigglies in it actually do somewhat easier. On the tutorial side there's Brutal [Meta]Introduction to Dependent Types in Agda which is pretty current -- I think most of the examples even compile. Note: consider not trying to learn Agda.
|
# ? Mar 8, 2013 20:59 |
|
Zombywuf posted:If you feel it's getting to easy for you try Agda. I can feel the software engineering principles oozing off the page into my brain
|
# ? Mar 8, 2013 21:12 |
|
ninjeff posted:I can feel the software engineering principles oozing off the page into my brain Are you getting it mixed up with Ada?
|
# ? Mar 8, 2013 21:30 |
|
Carthag posted:perl has unless Logo also has unless. Factor defines the combinator if like ( true-quot false-quot flag -- ), and then has derived combinators when and unless for times that you only need a behavior for one "half".
|
# ? Mar 8, 2013 22:54 |
|
ultramiraculous posted:The prefix on everything is "Awful", so you get AwfulTheme, AwfulURL, AwfulAppDelegate.... It's fun to start a new file with such low expectations of quality. I guess that's the Smurf Naming Convention in the wild.
|
# ? Mar 8, 2013 22:55 |
|
prefect posted:Note also that "elif" is "file" spelled backward. Only Algol-ers would want a keyword that was the same as another word spelled backward. Well bash has "case" and "esac", "if" and "fi"...
|
# ? Mar 8, 2013 23:06 |
|
Captain Capacitor posted:Well bash has "case" and "esac", "if" and "fi"... which, crazy enough came from ALGOL 68 http://programmers.stackexchange.com/questions/152453/are-backwards-terminators-for-if-and-case-unique-to-shell-scripting
|
# ? Mar 8, 2013 23:09 |
|
Also the symbolic math program Maple has do/od and for/rof. I think it's got one or two more that haven't been mentioned too but I don't often write proper scripts in it.
|
# ? Mar 8, 2013 23:10 |
|
Carthag posted:perl has unless Perl even has unless { ... } else { ... } although thankfully there is no elsunless. Yet.
|
# ? Mar 8, 2013 23:42 |
|
Xerophyte posted:In Haskell it's idiomatic to use otherwise for what's basically else: I'm not a fan of flip in this context, if you're taking a section anyway you might as well write it as even = (0 ==) . (`rem` 2)
|
# ? Mar 9, 2013 00:04 |
|
Maybe instead of trying to be ultra clever you should just write even n = n `rem` 2 == 0 like a normal person.
|
# ? Mar 9, 2013 00:10 |
|
qntm posted:Perl even has unless { ... } else { ... } although thankfully there is no elsunless. Yet. Mix in some lazy eval in the conditionals and that'll make a mighty fine horror indeed.
|
# ? Mar 9, 2013 01:10 |
|
Volte posted:Maybe instead of trying to be ultra clever you should just write even n = n `rem` 2 == 0 like a normal person. But my pointfree style!
|
# ? Mar 9, 2013 01:19 |
|
qntm posted:Perl even has unless { ... } else { ... } although thankfully there is no elsunless. Yet. Well, there's unless ( ... ) { ... } elsif ( ... ) { ... } else { ... } which is arguably worse because now we're mixing positive and negated conditionals.
|
# ? Mar 9, 2013 02:06 |
|
All of Perl's alternative conditionals are horrors and people who use them are bad.
|
# ? Mar 9, 2013 03:10 |
|
The entirety of Numerical Recipes in C and how they didn't completely port it from Numerical Recipes in FORTRAN so every single loving bit of array math starts at 1 instead of 0 so you need to constantly shift so that it accesses what you want
|
# ? Mar 9, 2013 03:40 |
|
Shugojin posted:The entirety of Numerical Recipes in C and how they didn't completely port it from Numerical Recipes in FORTRAN so every single loving bit of array math starts at 1 instead of 0 so you need to constantly shift so that it accesses what you want I think the entirety of Numerical Recipes, period. http://www.stat.uchicago.edu/~lekheng/courses/302/wnnr/nr.html http://www.lysator.liu.se/c/num-recipes-in-c.html
|
# ? Mar 9, 2013 04:06 |
|
Jonnty posted:Are you getting it mixed up with Ada? Yes I am. That's the
|
# ? Mar 9, 2013 04:17 |
|
http://forums.somethingawful.com/showthread.php?threadid=3536634&userid=0&perpage=40&pagenumber=118#post413259167 Why are people talking about goddamn network routing protocols with regards to Sim city AI.
|
# ? Mar 9, 2013 06:24 |
|
yaoi prophet posted:But my pointless style!
|
# ? Mar 9, 2013 06:36 |
|
|
# ? Jun 8, 2024 06:15 |
|
Internet Janitor posted:Logo also has unless. Common Lisp has when and unless defined as trivial macros: code:
|
# ? Mar 9, 2013 15:57 |