tag:blogger.com,1999:blog-33241741.post4608868432969659399..comments2023-09-24T07:53:50.826-05:00Comments on The Atheist Experience™: Get your nerd on, with Castles of AirUnknownnoreply@blogger.comBlogger18125tag:blogger.com,1999:blog-33241741.post-89345342492232772432009-03-01T05:56:00.000-06:002009-03-01T05:56:00.000-06:00@AllNow I wish I had actually submitted a WTF, bec...@All<BR/><BR/>Now I wish I had actually submitted a WTF, because I can't remember the exact details of the line of code! I think it was a floating point value, though.<BR/><BR/>However, in the database design, tables would have a primary key, and another field called "linkRelID"...used to link that record to a record in another table. Other tables used text fields for the purpose of linking (and those had numerical primary keys, also), and all sorts of other things which individually wouldn't have been a big deal, but in a 500,000 line program, it became pretty awful to maintain.maddogdeltahttps://www.blogger.com/profile/17657824720032887242noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-79970930937638864172009-02-28T08:13:00.000-06:002009-02-28T08:13:00.000-06:00My job before last was doing QA for a SW developme...My job before last was doing QA for a SW development product, I was in charge of the C/C++ compiler - talk about truckloads of debugging... I had to know the rules governing implicit conversions permissible between types. C isn't so bad, but C++ is absolutely out of sight bewildering. Most of my job was deciphering bug reports containing code like the var example.... <BR/><BR/>These days my dev. efforts are all in C# and Nant, tho sometimes I still have to do some C++.<BR/><BR/>So I've forgotten most of the rules and don't want to ever remember them again ;)<BR/><BR/>LSlshttps://www.blogger.com/profile/17901508236729383702noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-29767106031489788292009-02-28T06:13:00.000-06:002009-02-28T06:13:00.000-06:00Yeah, I brought up my job environment on the show ...Yeah, I brought up my job environment on the show before. It's an odd little private company run by a very rich old guy with his own management style. Strict dress code, strict working hours (8-5, DON'T BE LATER THAN 8), and official handbook policy says that employees must adhere to "high Christian principles."Anonymoushttps://www.blogger.com/profile/05324968314168283095noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-53538680018405555742009-02-28T03:02:00.000-06:002009-02-28T03:02:00.000-06:00Kazim,Yes, that template is much easier on a drunk...Kazim,<BR/><BR/>Yes, that template is much easier on a drunk/hungover mind. I will therefore be checking it out on a regular basis!<BR/><BR/>Sorry to hear your work is full of god-lovers. So much for the intelligence of the IT industry. Where I work it is completely the opposite. Although I wouldn't describe all of my fellow workers as strident atheists, they certainly consider theism to be ridiculous.John Stablerhttps://www.blogger.com/profile/16040887129341211890noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-20477117111681037032009-02-27T22:34:00.000-06:002009-02-27T22:34:00.000-06:00Voldemort:Actually, I ALMOST made a similar reply ...Voldemort:<BR/><BR/>Actually, I ALMOST made a similar reply to Gav, but realized I would have been wrong. The mistake is that you are assuming that "100 * Var / 100" will be an integer.<BR/><BR/>While it's true that "100" is an int literal, if Var is declared as a floating point value, then "100" will probably be converted to a float before doing the operations, which will result in a final value which is also float.<BR/><BR/>I thought this might be illegal, but I tried it in Java and it works the way I said. I don't know how Visual Basic would interpret it.<BR/><BR/>Voldemort: My colleagues have no idea I'm an atheist, and given the company culture, I prefer it stay that way as long as possible.Anonymoushttps://www.blogger.com/profile/05324968314168283095noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-21444814780798571292009-02-27T21:47:00.000-06:002009-02-27T21:47:00.000-06:00@Kazim I am going to check it out. Who knows maybe...@Kazim <BR/>I am going to check it out. Who knows maybe I will learn something. I am still an undergrad but debugging was something that I had the most trouble with in my last assignment so It can't hurt. <BR/><BR/>Just curious do your colleagues know about The Atheist Community.Voldemort13https://www.blogger.com/profile/00145909649027905301noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-77575618613260361472009-02-27T21:07:00.000-06:002009-02-27T21:07:00.000-06:00Actually, I think I'm wrong in my prior post. I'm ...Actually, I think I'm wrong in my prior post. I'm likely thinking of coercion in the other direction, such as the definition<BR/><BR/>int x = 2.2;<BR/><BR/>in some languages. Also compares and expressions involving mixed types - you have to be intimately familiar with the conversion conventions of the language you're using. <BR/><BR/>Oh well, that's why I don't program for fun anymore, especially on my own at home when tired ;)<BR/><BR/>Point is, just use 0 when you need 0 instead of a more clever 0 (yall can tell I'm a QA puke).<BR/><BR/>Rather like my preference that theists say "I don't know" rather than "god did it, I believe"....<BR/><BR/>Sorry about the intrusion folks. Back to the regular program...<BR/><BR/>LSlshttps://www.blogger.com/profile/17901508236729383702noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-16478548243751152002009-02-27T20:18:00.000-06:002009-02-27T20:18:00.000-06:00well, one problem I see with the creative-0 exampl...well, one problem I see with the creative-0 example. 100, like any integer value will in most programming languages be treated as an integral type. <BR/><BR/>If the variable in expression<BR/><BR/>var = 100 * var / 100;<BR/><BR/>is a floating point type, implicit conversion will take place according to the rules of the language. <BR/><BR/>I'm too tired to think through any edge cases that may give unintended results here, except to say there may be unintended results in some cases ;).<BR/><BR/>So one has to be careful when doing more arcane things that rely on the more arcane rules of the language you're using.<BR/><BR/>This goes back to programming and debugging - part of the art and craft of debugging is artful/craftful programming.<BR/><BR/>I'm slightly below average in the craft of programming and far below average in the art. This is why I come home tired at the end of the day rather than energized (I'm a programmer/debugger of sorts by profession as well).<BR/><BR/>I'll monitor your blog tho I'll often be too tired to post to it hah! But still, it sounds like a great idea...lshttps://www.blogger.com/profile/17901508236729383702noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-51915187777687751332009-02-27T17:45:00.000-06:002009-02-27T17:45:00.000-06:00Can we get wider text columns here too?Can we get wider text columns here too?Johnboyhttps://www.blogger.com/profile/01428622628537697916noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-67889034424719538202009-02-27T16:43:00.000-06:002009-02-27T16:43:00.000-06:00I changed the template. Just for you, Angry Athei...I changed the template. Just for you, Angry Atheist. I hope you're satisfied now.Anonymoushttps://www.blogger.com/profile/05324968314168283095noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-18102850480509718932009-02-27T16:31:00.000-06:002009-02-27T16:31:00.000-06:00I'm a professional .NET developer. I would love yo...I'm a professional .NET developer. I would love your blog if it wasn't for the fact that the background / contrast hurts my eyes after a bottle of wine.<BR/><BR/>By the way, I'm not an alcoholic, I'm in the UK and it is 22:30 right now and the rugby has just finished.<BR/><BR/>I don't know if you are familiar with rugby. It is like american football; except harder, without padding and helmets, and it's not bad form if you punch, gouge, stamp etc and the referee doesn't see. Closer to ice-hockey I guess.John Stablerhttps://www.blogger.com/profile/16040887129341211890noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-85406179701654547312009-02-27T15:39:00.000-06:002009-02-27T15:39:00.000-06:00I'll make sure to check that out Kazim.Var = 100 *...I'll make sure to check that out Kazim.<BR/><BR/><B>Var = 100 * Var /100</B><BR/><I>"I don't know what the original coder was trying to do here, but I'm leaving it in so I can show people how dumb the guy was"</I><BR/><BR/>He's not dumb, he's brilliant! You see the code changes the 'Var' slightly, due to the floating point operation /100 * 100. Hence 'Var' != 'MyOriginalVar'. <I>Unless</I> the original value was 0, in which case it will stay the same. <BR/><BR/>So simply check for 'Var' != 'MyOriginalVar' which is equivalent to checking 'Var' == 0. In fact this is <B>better</B> since you aren't hard coding zero!<BR/><BR/>/I kid.Unknownhttps://www.blogger.com/profile/09996944574949965319noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-2603902833688570482009-02-27T14:02:00.000-06:002009-02-27T14:02:00.000-06:00@KazimI noticed you link to the greatest source of...@Kazim<BR/><BR/>I noticed you link to the greatest source of Nerd humor in the universe...I'm referring to "The Daily WTF".<BR/><BR/>In a previous job I had many samples I could have sent them... Since I was fixing all of them. One line of code looked like this:<BR/>// we were coding in VB...Sorry..<BR/>Var = 100 * Var /100<BR/>With a comment associated which said:<BR/>"I don't know what the original coder was trying to do here, but I'm leaving it in so I can show people how dumb the guy was"maddogdeltahttps://www.blogger.com/profile/17657824720032887242noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-44971608027243215712009-02-27T09:41:00.000-06:002009-02-27T09:41:00.000-06:00Another programmer here. Subscribed!Another programmer here. Subscribed!Jasonhttps://www.blogger.com/profile/04699188886328578128noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-65642550031910627862009-02-27T05:09:00.000-06:002009-02-27T05:09:00.000-06:00See, yeah, that's why I said "blessed by nerds" an...See, yeah, that's why I said "blessed by nerds" and not "blessed with nerds." Nothing supernatural going on at all.<BR/><BR/>Besides, "bless" is a <A HREF="http://www.tutorialspoint.com/perl/perl_bless.htm" REL="nofollow">perfectly respectable programming term</A>. ;)Anonymoushttps://www.blogger.com/profile/05324968314168283095noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-14796921490886809222009-02-27T01:45:00.000-06:002009-02-27T01:45:00.000-06:00RSS'd to my Google Reader. As much as I like the ...RSS'd to my Google Reader. As much as I like the topic of how wrong religions are, my main area of interest will always be in computers, particularly programming.Zurahnhttps://www.blogger.com/profile/06325048684652466640noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-63369510239228515312009-02-26T23:25:00.000-06:002009-02-26T23:25:00.000-06:00You think gods have a monopoly on blessing people?...You think gods have a monopoly on blessing people? Come on!Martinhttps://www.blogger.com/profile/17933545393470431585noreply@blogger.comtag:blogger.com,1999:blog-33241741.post-80707668085318431922009-02-26T23:07:00.000-06:002009-02-26T23:07:00.000-06:00Sounds great--I'll definitely be checking it out! ...Sounds great--I'll definitely be checking it out! But "<I>blessed</I>"???MuseSusanhttps://www.blogger.com/profile/16087552834669483980noreply@blogger.com