Vort Posted May 23, 2018 Report Posted May 23, 2018 (Geek hint: assignment vs. comparison) Jamie123, unixknight, person0 and 1 other 1 3 Quote
NeuroTypical Posted May 23, 2018 Report Posted May 23, 2018 blerp bleep bloop that's what you people sound like. zil and NeedleinA 2 Quote
Vort Posted May 23, 2018 Author Report Posted May 23, 2018 9 minutes ago, anatess2 said: I used to think the right-hand example was somehow more elegant, but over time I have developed a pronounced bias for the left-hand example. Quote
zil Posted May 23, 2018 Report Posted May 23, 2018 15 minutes ago, Vort said: I used to think the right-hand example was somehow more elegant, but over time I have developed a pronounced bias for the left-hand example. I may have to debit you a respect-point for such obviously flawed thinking. Sigh. (Although they both have the indentation wrong.) Vort 1 Quote
Vort Posted May 23, 2018 Author Report Posted May 23, 2018 1 minute ago, zil said: I may have to debit you a respect-point for such obviously flawed thinking. Sigh. Anyone who gets to know me sufficiently well debits me all sorts of respect points. I'm used to it. zil 1 Quote
person0 Posted May 23, 2018 Report Posted May 23, 2018 34 minutes ago, Vort said: I used to think the right-hand example was somehow more elegant, but over time I have developed a pronounced bias for the left-hand example. Personally I prefer K&R style (right side) because it is the way I have always done it, however, Allman style (left side), is arguably the more readable. That said, consistency is more important than chosen style. Anyway, I don't program for a living, so my opinion only matters for the projects I work on! unixknight 1 Quote
zil Posted May 23, 2018 Report Posted May 23, 2018 16 minutes ago, person0 said: ...arguably the more readable... Quote
Guest Posted May 24, 2018 Report Posted May 24, 2018 (edited) 3 hours ago, anatess2 said: You're right. I am not a programmer and I have no idea what you're saying. i only learned four languages about 30 years ago (one was 40 years ago). And one of them was assembly language that I never used except in that one class. Edited May 24, 2018 by Guest Quote
zil Posted May 24, 2018 Report Posted May 24, 2018 47 minutes ago, Carborendum said: I've got a really big mole on my hand. OK, now we need a "groooaaannn" reaction icon. SilentOne 1 Quote
zil Posted May 24, 2018 Report Posted May 24, 2018 44 minutes ago, Carborendum said: You're right. I am not a programmer and I have no idea what you're saying. i only learned four languages about 30 years ago (one was 40 years ago). And one of them was assembly language that I never used except in that one class. While both are syntactically correct, the left one is organizationally erroneous. Quote
JohnsonJones Posted May 24, 2018 Report Posted May 24, 2018 I'm a historian. I'm also old. This old Historian who barely can use a computer correctly to connect to this forum has NO idea about why the jokes in this thread are funny. But historically, that's probably par for the course. Oh...but I did find this entertaining... zil 1 Quote
NeuroTypical Posted May 24, 2018 Report Posted May 24, 2018 5 hours ago, JohnsonJones said: Oh...but I did find this entertaining... [ASCII Fluid Dynamics video] Complex stuff represented by ascii text, I dig it. In some artistically creative circles, the old 8-bit and 16-bit technology of making music has made a bit of a retro comeback as well. https://www.youtube.com/watch?v=o1J20WkZnl4 Quote
Guest Posted May 24, 2018 Report Posted May 24, 2018 13 hours ago, zil said: OK, now we need a "groooaaannn" reaction icon. At least you understood it. I had to explain it to my kids. I guess I need to go over more chemistry with the family. Quote
unixknight Posted May 24, 2018 Report Posted May 24, 2018 A few years ago online I saw this code... I can't find it now but as best I recall it went like this (with a couple mods of my own): public abstract class OneRing implements Invisibility{ public void ruleThemAll(){} public void findThem(){} public void bringThemAll(boolean isInDarkness){ if(isInDarkness){ bindThem(); } } private void bindThem(){} @Override public void makeInvisible(){} } Quote
Sunday21 Posted July 12, 2018 Report Posted July 12, 2018 · A Mormon told me that they don't drink coffee. I said, "A cup of coffee every day gives you wonderful benefits." He said, "Like what?" I said, "Well, it keeps you from being Mormon ..." Jamie123 and NeuroTypical 1 1 Quote
Sunday21 Posted July 12, 2018 Report Posted July 12, 2018 Once I saw this guy on a bridge about to jump. I said, "Don't do it!" He said, "Nobody loves me." I said, "God loves you. Do you believe in God?" He said, "Yes." I said, "Are you a Christian or a Jew?" He said, "A Christian." I said, "Me, too! Protestant or Catholic?" He said, "Protestant." I said, "Me, too! What franchise?" He said, "Baptist." I said, "Me, too! Northern Baptist or Southern Baptist?" He said, "Northern Baptist." I said, "Me, too! Northern Conservative Baptist or Northern Liberal Baptist?" He said, "Northern Conservative Baptist." I said, "Me, too! Northern Conservative Baptist Great Lakes Region, or Northern Conservative Baptist Eastern Region?" He said, "Northern Conservative Baptist Great Lakes Region." I said, "Me, too!" Northern Conservative†Baptist Great Lakes Region Council of 1879, or Northern Conservative Baptist Great Lakes Region Council of 1912?" He said, "Northern Conservative Baptist Great Lakes Region Council of 1912." I said, "Die, heretic!" And I pushed him over. zil 1 Quote
NeuroTypical Posted July 12, 2018 Report Posted July 12, 2018 Emo Phillips Joke! He rocks. https://www.theguardian.com/stage/2005/sep/29/comedy.religion Sunday21 1 Quote
Jamie123 Posted July 12, 2018 Report Posted July 12, 2018 On 5/23/2018 at 10:11 PM, anatess2 said: I'm definitely the first type. Also I like while statements to be on their own line, below the closing } of the block. Also I hate the way the new MS Visual Studio inserts spaces for you. I like to decide myself where spaces go. For comments I vastly prefer // to /* ... */. (I only ever use the latter to "comment out" code blocks temporarily.) I dislike the way most C++ textbooks tell you to give main() an integer return value, and include a totally pointless return 0; at the last line. (I daresay a dozen people will give me twenty good reasons why this is done, but none of you are going to persuade me to give up using void main();) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.