|
ErIog posted:Well then go do that. Go give Notch your resume. Make your own awesome super-well-coded game that nobody will ever want to play.
|
# ? Jan 8, 2011 17:21 |
|
|
# ? May 14, 2024 14:20 |
|
When I posted that code all I hoped for was a few "heh"s... not this.
|
# ? Jan 8, 2011 17:47 |
|
Mustach posted:This is completely absurd. You can't honestly believe that the only options are rushed-to-market-and-successful and well-coded-and-unplayed. You're right. I don't, which is why I didn't say that. I was only trying to state that game design and coding practices do not correlate in the way that people in this thread vehemently assume they correlate. There's lots of really well-coded games that nobody buys or aren't good, and there's lots of games filled with abominable code like Minecraft that sell a million copies that people seem to like. It's impossible to make any kind of value judgment about whether or not a game is good based on its code, and its also impossible to make a semi-related judgment about whether or not a game will be a commercial success based on its code or whether or not it is good. Zombywuf posted:Once again you fail to notice you are posting in the thread where we rip on lovely code and the people who write it. I agree with the first part, but I don't see why it needs to extend to ripping on the people. Most of the people who have ever posted in this thread have freely admitted to writing their own lovely code from time to time. Some people have posted horrors they themselves created in this thread. The software this forum runs on has been known to contain a coding horror or two in its day. If we're going to rip on any person that's ever written lovely code or any product that contains lovely code then it's pretty much going to be that anyone who has ever touched a computer is an untalented jerk that never should have been born, and nobody should really use a computer because every single piece of software ever sold is shovelware because the person who created it might have made a mistake during its creation. Standish posted:So this is why all the Minecraft threads have titles about bans/probations, thanks for clearing that up. I don't play Minecraft, have never posted in any Minecraft thread, and I believe this is probably the first conversation I've ever gotten into about Minecraft. I didn't have any problem with people criticizing the code when they were criticizing the code. I only started arguing when it spun into people's bullshit notions about whether or not they thought Minecraft was worth buying or selling or whether or not Notch should be successful; both of which are completely unrelated to the loving code. I agree with your general sentiment that this derail has produced lots of stupidity and that it shouldn't go on any longer, and so I promise not to post anything related to Minecraft in this thread again. I think it'll be pretty easy since I don't plan to play Minecraft or disassemble Minecraft's code. ErIog fucked around with this message at 18:01 on Jan 8, 2011 |
# ? Jan 8, 2011 17:52 |
|
Jesus Christ. Just loving drop it.
|
# ? Jan 8, 2011 18:26 |
|
Coding horrors: let's all post about our feelings
|
# ? Jan 8, 2011 19:18 |
|
I don't know how some lego like retro styled world game like thing (I have tried Minecraft for 5 minutes) causes such fervor in so many people.
|
# ? Jan 8, 2011 21:11 |
|
minecraft raus
|
# ? Jan 8, 2011 22:35 |
|
ErIog posted:If we're going to rip on any person that's ever written lovely code or any product that contains lovely code then it's pretty much going to be that anyone who has ever touched a computer is an untalented jerk that never should have been born, and nobody should really use a computer because every single piece of software ever sold is shovelware because the person who created it might have made a mistake during its creation. all programmers are terrible and should be rounded up and shot
|
# ? Jan 8, 2011 22:43 |
|
tef posted:all programmers are terrible and should be rounded up and shot this, but unironically \
|
# ? Jan 8, 2011 22:50 |
|
ErIog posted:...and its also impossible to make a semi-related judgment about whether or not a game will be a commercial success based on its code or whether or not it is good... I think this is an important point probably and the crux of this thread. Coding horrors are NOT merely superficial nuisances for us programmers, they are directly responsible for bad software that doesn't work. The fact that Minecraft's code is a sloppy mess IS directly related to how buggy it is. This goes for all software. At my current company, we have a guy that likes to write code like this: code:
Flash forward to 2 weeks later where there are 10 pages of code just to assign a few variables and the other developer is begging for help because there's a bug. Again, the other developer will refuse to refactor or clean up and just wants to slap a band-aid on this thing. You can't tell if a product will be a commercial success by looking at its code, but you can get a pretty good idea on whether or not the thing will work! P.S. This was my suggested refactoring, which of course got ignored: code:
|
# ? Jan 9, 2011 01:09 |
|
Outlaw Programmer posted:
quote:
code:
Brecht fucked around with this message at 01:26 on Jan 9, 2011 |
# ? Jan 9, 2011 01:16 |
|
If that's C#, you could havecode:
|
# ? Jan 9, 2011 02:03 |
Outlaw Programmer posted:
I would have ignored you too. That's a really awful way of describing what amounts to a coalescing of values.
|
|
# ? Jan 9, 2011 02:39 |
|
Brecht posted:That's pretty bad, and code reviews are definitely about making meaningful style (actually this isn't even style, it's flow control) fixes in addition to finding bugs, but this code:
|
# ? Jan 9, 2011 03:03 |
|
The main point was that there exists an effective way to choose options that doesn't involve copy-and-pasting 10 lines of code for each variable. Hell, I would have been happy if he just moved his original code and moved it into a single method. The reason he didn't, and also the reason why I try to avoid if-elseif-else constructs, is that he started doing things like this:code:
code:
condition result condition result
|
# ? Jan 9, 2011 03:13 |
|
Yeah I don't get the hate for ternary chaining, it's easily the most readable way for me to understand what's going on in that kind of situation.
|
# ? Jan 9, 2011 03:53 |
|
Brecht posted:code reviews are definitely about making meaningful style (actually this isn't even style, it's flow control) fixes in addition to finding bugs, I'd even go so far as to say code reviews are about finding bugs in addition to enforcing good style.
|
# ? Jan 9, 2011 07:19 |
|
Zhentar: that and increasing the bus-factor of projects.
|
# ? Jan 9, 2011 07:23 |
|
Janin posted:You don't need 'else' when the code is returning.
|
# ? Jan 9, 2011 11:28 |
|
Internet Janitor posted:Zhentar: that and increasing the bus-factor of projects. I'm guessing on some teams it's the short bus-factor.
|
# ? Jan 10, 2011 16:20 |
|
A habit my workplace has grown out of thankfully is increasing the bus factor of projects by having most people working on several projects at a time. Thus no-one really had their head wrapped around any project giving them all a bus factor of 0.
|
# ? Jan 10, 2011 16:28 |
|
A bus factor of zero means no one knows how the codebase works. edit: Scaevolus fucked around with this message at 20:08 on Jan 10, 2011 |
# ? Jan 10, 2011 19:59 |
|
Yes, that is what he said.
|
# ? Jan 10, 2011 20:05 |
|
Speaking of the bus factor, in the lab I work the powers that be make it a point to never have more than one person work on any given project and to never do code reviews. Metaphorically we are all encased in carbonite silos where we are encouraged to reinvent seven sided wheels over, and over. Fake edit: and this software goes on multi-billion dollar navy platforms, your tax dollars at work!
|
# ? Jan 10, 2011 23:44 |
|
quote:Somewhat typical of PHP’s API, there are actually thirteen different built-in array sorting functions. The manual page for sort says that most of those functions use quicksort, which means they’re all unstable. Prior to version 4.1.0 some of the sorting algorithms were stable, but that was changed for “efficiency reasons”. (It seems that the usort function was previously implemented as a bubble sort, the only case of that I’ve ever seen in a serious production language) From here
|
# ? Jan 11, 2011 05:44 |
|
http://thedailywtf.com/Articles/Confessions-The-Shopping-Cart.aspxquote:The project called for a shopping cart and, after reading a 30 minute "getting started" guide on SQL, I created my first database. I figured a Shopping Cart is a logical unit of data, and as such deserving of its own table. And since each Shopper had their own shopping cart, they should also have their own Shopping Cart table.
|
# ? Jan 13, 2011 00:49 |
|
I went through the same chain of logic when I was trying to write a game. "How can I make a separate table for each player?" Luckily I actually asked someone who knew their rear end from a hole in the ground about it.
|
# ? Jan 13, 2011 00:54 |
|
Aleksei Vasiliev posted:http://thedailywtf.com/Articles/Confessions-The-Shopping-Cart.aspx Well you see I wanted the database to have some warehousing features...
|
# ? Jan 13, 2011 02:46 |
|
Ryouga Inverse posted:I went through the same chain of logic when I was trying to write a game. "How can I make a separate table for each player?" This is pretty much how Screwturn Wiki works. Each wiki site creates its own set of tables in the database, prepended with the wiki name. Most tables don't have primary keys, including the page version history tables. I sometimes wonder which is worse - that, default SharePoint wikis or SharePoint wikis extended by KwizCom.
|
# ? Jan 14, 2011 03:24 |
|
Alternatively, consider using the WCF Integration Pack for Enterprise Library. It contains classes that you can use directly to enable storage of and access to the container in WCF applications, and it can be used to automatically populate dependencies in your classes. Forward-thinking documentation.
|
# ? Jan 14, 2011 23:17 |
|
Aleksei Vasiliev posted:Alternatively, consider using the WCF Integration Pack for Enterprise Library. It contains classes that you can use directly to enable storage of and access to the container in WCF applications, and it can be used to automatically populate dependencies in your classes. Coding horrors: Proggit/HackerNews reposts
|
# ? Jan 15, 2011 00:45 |
|
code:
http://stackoverflow.com/questions/4700508/why-does-the-area-come-back-as-0
|
# ? Jan 15, 2011 17:13 |
|
C++'s fault for overloading bit shifts in iostream, giving this poor guy two different assignment operators to choose from seemingly arbitrarily (because one of them is completely arbitrary). The other two errors are very forgivable. I guess what I'm saying is why shouldn't he expect the bit shift by area to be an assignment? Now I just feel bad for him. He's not the problem here. His language has failed him.
|
# ? Jan 15, 2011 17:33 |
|
and three is a pretty good value for pi
|
# ? Jan 15, 2011 17:56 |
|
pokeyman posted:C++'s fault for overloading bit shifts in iostream, giving this poor guy two different assignment operators to choose from seemingly arbitrarily (because one of them is completely arbitrary). The other two errors are very forgivable. Yeah I don't really blame him, he looks like a high school student trying to learn something and got caught in the trap of 'C++ IN TWENTY ONE DAYS'. C++ is a mess of a language even to experienced programmers, someone who is completely new would make these kind of mistakes because there's no logical distinctions. And of course the dripping pit of Aspergers, Stackoverflow, just rip into him instead of actually guiding him.
|
# ? Jan 15, 2011 18:51 |
|
This must be the coding horrors equivalent of Slow News Day.
|
# ? Jan 15, 2011 19:04 |
|
Sorry, but using int for PI is hilarious, and so is that usage of *=.
|
# ? Jan 15, 2011 19:54 |
|
This code is so broken it's not even funny any more. For starters: Do you realize that cin >> ... (and cout << ...) is a very special case and << (and >>) mean something very different in about every other context, including in pi << area? You're lucky you get 0 though, you might as well get anything. You know, instead of answering him.
|
# ? Jan 16, 2011 10:22 |
|
Wheany posted:This code is so broken it's not even funny any more. For starters: Do you realize that cin >> ... (and cout << ...) is a very special case and << (and >>) mean something very different in about every other context, including in pi << area? You're lucky you get 0 though, you might as well get anything. I'm teaching a python class for nonprogrammers, and I've seen some pretty weird stuff (people using while foo: bar; break instead of if foo: bar). But they're not programmers.
|
# ? Jan 16, 2011 10:49 |
|
|
# ? May 14, 2024 14:20 |
|
yaoi prophet posted:I'm teaching a python class for nonprogrammers, and I've seen some pretty weird stuff (people using while foo: bar; break instead of if foo: bar). But they're not programmers. How many programmers you know regularly work on radius calculation programmes?
|
# ? Jan 16, 2011 10:57 |