|
No Safe Word posted:This is the deleted post: "I think you're violating several man rules as well." I don't even know what to say about that, other than that it seems pretty sexist. I certainly wasn't aware that there were any specific rules I had to follow as a man, maybe there's a rulebook somewhere?
|
# ? Feb 10, 2013 04:10 |
|
|
# ? Jun 5, 2024 19:27 |
|
Look Around You posted:"I think you're violating several man rules as well."
|
# ? Feb 10, 2013 04:16 |
|
Look Around You posted:"I think you're violating several man rules as well." GOOD TAKEAWAY FROM THAT, YOU SOUND LIKE A FUN GUY
|
# ? Feb 10, 2013 11:03 |
|
Look Around You posted:"I think you're violating several man rules as well." I believe this is what it's referring to http://www.amazon.com/Bro-Code-Barney-Stinson/dp/1442339586 To take it full circle, I'd love to see a version about Brogrammers literally writing Bro-Code.
|
# ? Feb 10, 2013 15:52 |
|
brolang.code:
|
# ? Feb 10, 2013 16:14 |
|
Dicky B posted:brolang. I hope you realise that now that you've posted that, someone is most likely going to do it. I guess at least it probably won't be as bad as LOLcode.
|
# ? Feb 10, 2013 17:14 |
|
It is unfortunate that such gag languages are almost always sugar for essentially ALGOL semantics. Couldn't brogrammers brogram in a functional or declarative style? Is a little creativity so much to ask for in my extended jokes? edit: presumably a brolang would never feature something like s-expressions. Despite an enticing name, you cannot say "homoiconicity" without "homo". Internet Janitor fucked around with this message at 17:37 on Feb 10, 2013 |
# ? Feb 10, 2013 17:34 |
|
Internet Janitor posted:It is unfortunate that such gag languages are almost always sugar for essentially ALGOL semantics. Couldn't brogrammers brogram in a functional or declarative style? Is a little creativity so much to ask for in my extended jokes? BroseF, the F is for "functional"
|
# ? Feb 10, 2013 18:24 |
|
Internet Janitor posted:It is unfortunate that such gag languages are almost always sugar for essentially ALGOL semantics. Couldn't brogrammers brogram in a functional or declarative style? Is a little creativity so much to ask for in my extended jokes? Yeah, we need some bronads up in here.
|
# ? Feb 10, 2013 18:36 |
|
What's the best alternative to HN, at least where I can find the few gems of good knowledge without the useless startup circlejerk?
|
# ? Feb 10, 2013 18:47 |
|
kitten smoothie posted:What's the best alternative to HN, at least where I can find the few gems of good knowledge without the useless startup circlejerk?
|
# ? Feb 10, 2013 18:56 |
|
Is there a site like /r/programming except "Check out this amazing C feature!" with a link to the atexit() man page doesn't get 300 upvotes?
|
# ? Feb 10, 2013 20:10 |
|
pseudorandom name posted:Is there a site like /r/programming except "Check out this amazing C feature!" with a link to the atexit() man page doesn't get 300 upvotes? To be fair, I hadn't heard of atexit(), though I was aware of Java's equivalent.
|
# ? Feb 10, 2013 20:22 |
|
words
Damiya fucked around with this message at 20:34 on Feb 10, 2013 |
# ? Feb 10, 2013 20:30 |
|
pseudorandom name posted:Is there a site like /r/programming except "Check out this amazing C feature!" with a link to the atexit() man page doesn't get 300 upvotes?
|
# ? Feb 10, 2013 23:43 |
|
I think we also forget that HN wasn't very good to begin with, nor proggit, nor *shudder* slashdot
|
# ? Feb 11, 2013 00:26 |
|
I fail to understand what is so interesting about atexit. Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something. C is old as poo poo, and surely, there's some weird crap in it, from the old days. You are not forced to use that stuff, ...like in any programming language, "you can use the good parts" .
|
# ? Feb 11, 2013 00:49 |
|
Tei posted:Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something. what
|
# ? Feb 11, 2013 02:02 |
|
Tei posted:Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something. Sure, why not.
|
# ? Feb 11, 2013 02:04 |
|
Tei posted:I fail to understand what is so interesting about atexit. Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something.
|
# ? Feb 11, 2013 02:23 |
|
Tei posted:Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something. This is like the programming equivalent of "Has anyone really been far even as decided to use even go want to do look more like?".
|
# ? Feb 11, 2013 02:34 |
|
Tei posted:It's like somebody in the C language design committee thought basic error handling is important enough to embed into the compiler initialization code, or something.
|
# ? Feb 11, 2013 02:52 |
|
The Cavern of Cobol is yacc and we've failed to parse this undecidable grammar
|
# ? Feb 11, 2013 02:55 |
|
Tei posted:I fail to understand what is so interesting about atexit. Is like somebody in the c language design trough basic error handling it something worth enough to embed in the compiler initialization code, or something. Trough error handling actually sounds like a neat feature.
|
# ? Feb 11, 2013 05:34 |
|
pseudorandom name posted:Is there a site like /r/programming except "Check out this amazing C feature!" with a link to the atexit() man page doesn't get 300 upvotes? I'm happily willing to accept that, as it's still far preferable to poo poo like this ("I am a minimalist! I get my shirts tailored! I buy Apple!") or the 374th Aaron Swartz related article.
|
# ? Feb 11, 2013 16:24 |
|
kitten smoothie posted:I'm happily willing to accept that, as it's still far preferable to poo poo like this ("I am a minimalist! I get my shirts tailored! I buy Apple!") or the 374th Aaron Swartz related article. quote:I tend to refrain from telling people how much TV I don't watch until they ask about a show or commercial they have seen or are following and wonder if I follow.
|
# ? Feb 11, 2013 16:31 |
|
kitten smoothie posted:poo poo like this ("I am a minimalist! I get my shirts tailored! I buy Apple!") lmao at his inadvertent admission that his understanding of economics hasn't changed since he was 11 and the blinding irony of the fact that the privilege he wails an apology about is what has kept it that way
|
# ? Feb 11, 2013 16:31 |
|
kitten smoothie posted:I'm happily willing to accept that, as it's still far preferable to poo poo like this ("I am a minimalist! I get my shirts tailored! I buy Apple!") Haha, oh god. Edit: I think I have an immediate disdain for anyone who describes himself as having "a knack for aesthetics." That Turkey Story fucked around with this message at 16:44 on Feb 11, 2013 |
# ? Feb 11, 2013 16:38 |
Let's complain about PHP some more. Today's frustration: The value false converts to the empty string. We are serializing some arrays to XML to send over network. Another PHP thing is then reading it back in. So I put a false into one of those arrays, and because false converts to the empty string I get an empty element in the XML. When that gets deserialized again, it becomes an "empty element" object instead, since it contains no text nodes. And this "empty element" object evaluates as truth. Thus, by the combined powers of PHP and XML even pure falsehood can become truth. (Solution: Send 0 instead of false.)
|
|
# ? Feb 11, 2013 17:31 |
|
People have taken that picture of Steve Jobs sitting on his floor sipping on tea next to a lamp to the extremes. If I recall from his book Jobs not having any furniture in his house was a combination of being really lazy/indecisive and the fact that he was obsessed with having the best furniture (but there isn't any because none of it is good enough for him).
|
# ? Feb 11, 2013 19:50 |
|
nielsm posted:And this "empty element" object evaluates as truth. I feel like this is the core of the horror. A SimpleXML object created from an empty tag will evaluate as false, but I believe that is the only modern situation in which an object can ever be false.
|
# ? Feb 11, 2013 20:07 |
|
nielsm posted:Let's complain about PHP some more. Maybe you know why a 19 year old can buy a 6 dollars beer with only 1 dollar? php:<? $age = 19; $limit = 18; $is_milk = false; $price = 6;//beer price $money = 1; //the money he have $can_pay_it = $money > $price; $can_drink = ($age > $limit or $is_milk ) and $can_pay_it; echo $can_drink ? "can drink":"no beer for you"; ?>
|
# ? Feb 11, 2013 20:13 |
|
Tei posted:Maybe you know why a 19 year old can buy a 6 dollars beer with only 1 dollar? That's frustrating. Do you need to assign a value of 0 in a logical statement or something rather than assign it the way you're doing it? eg. If $money < $price then $can_pay_it = 0 ?
|
# ? Feb 11, 2013 20:23 |
Tei posted:Maybe you know why a 19 year old can buy a 6 dollars beer with only 1 dollar? I believe that the "and" operator binds weaker than the assignment operator, so it parses as: ($can_drink = ($age > $limit or $is_milk)) and $can_pay_it; You should use the "&&" operator there instead. (It does the same thing, but has different precedence.) Same thing for "or" and "||".
|
|
# ? Feb 11, 2013 20:36 |
|
nielsm posted:I believe that the "and" operator binds weaker than the assignment operator, so it parses as: In the good old days, if you mowed down someone in the street while driving drunk, the drunkenness could serve as a defense in court - "he's not a murderer your honor, he was just really, really drunk!"
|
# ? Feb 11, 2013 20:52 |
|
So after reading this thread for a bit, I thought I'd root around on my backup drive for a bit. I remembered seeing an old mIRC bot I wrote sitting in a dusty corner of the drive. I wrote this thing back in 1997 or so, when I was a clueless teenager. I know mIRC scripting isn't much of programming, but it was my first foray into it. You don't need to know a thing about the syntax to realize why this is atrocious. code:
|
# ? Feb 11, 2013 21:20 |
|
Enos Shenk posted:I'm pretty sure I used to name all my variables like that back then... C++ code:
The Gripper fucked around with this message at 21:38 on Feb 11, 2013 |
# ? Feb 11, 2013 21:28 |
|
The Gripper posted:I submitted this to our internal bugtracker as part of a repro for a toolchain bug, only remembered I'd named everything in the stupidest possible way after I'd hit submit. nielsm posted:I believe that the "and" operator binds weaker than the assignment operator, so it parses as: ....just why. Are there other languages where assignment isn't lowest precedence in a given expression? Or at least where && ≠ 'and'? It's at least not the case in Python. The precedence is documented in PHP but not justified (as far as I can tell). ultramiraculous fucked around with this message at 21:49 on Feb 11, 2013 |
# ? Feb 11, 2013 21:46 |
|
ultramiraculous posted:....just why. Perl. The reason and binds weaker than assignment is so you can do something like code:
|
# ? Feb 11, 2013 21:51 |
|
|
# ? Jun 5, 2024 19:27 |
|
code:
|
# ? Feb 11, 2013 21:53 |