Two Plus Two Publishing LLC Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > Sports and Games > Puzzles and Other Games

Notices

Puzzles and Other Games Discussions about Puzzles and other non-gambling games

Reply
 
Thread Tools Display Modes
Old 09-07-2010, 01:50 PM   #76
help me help you
 
Chips Ahoy's Avatar
 
Join Date: Apr 2007
Location: up-at-dawn, pride-swallowing siege
Posts: 21,354
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by Zurvan View Post
  1. **** repeating data,
  2. **** highly coupled code,
  3. **** impenetrable naming schemes,
  4. **** copy/paste code
2, 4, 1, 3

Relevant to your interests: Working Effectively with Legacy Code.
Chips Ahoy is offline   Reply With Quote
Old 09-07-2010, 01:51 PM   #77
Retired
 
Zurvan's Avatar
 
Join Date: Apr 2005
Location: On the front porch, yelling at kids
Posts: 32,269
Re: The POG Programmers Containment Thread

lol legacy code

This was written probably in the last 6 months. Definitely after November, because that's when the guy that wrote it started
Zurvan is offline   Reply With Quote
Old 09-07-2010, 02:00 PM   #78
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: Montana
Posts: 49,771
Re: The POG Programmers Containment Thread

I was working a bug on Friday that can be summed up as

a) We have a bunch of meta data about the database that a bunch of generalized APIs use to do various things.

b) The metadata is maintained in C in a server product, and an XML export of it is used in a C# client

c) The code that generates the client version had a bug in it so that some of the data was wrong on the client side, and it was making it difficult to fix some other issue

d) So I want to fix that

e) Developer who owns said metadata generation code says I can't fix it, points to previously solved-as-will-not-fix bug where they explain they won't fix it for reasons that amount to "Gosh, we'd have to test all this stuff to make sure we don't accidentally break anything where customers are depending on the current broken version

f) I go FUUUUUUU

g) Developer gets bright idea and says "Wait, no, you can totally fix that, you just have to test all this stuff so I don't have to

And I still prefer that than fixing it with some other hack where the client code has logic that's like "In this special case the metadata is wrong therefore..."
well named is offline   Reply With Quote
Old 09-07-2010, 02:08 PM   #79
Retired
 
Zurvan's Avatar
 
Join Date: Apr 2005
Location: On the front porch, yelling at kids
Posts: 32,269
Re: The POG Programmers Containment Thread

And your manager is where on this? I'd honestly be in my bosses office and ranting about that on a daily basis until he got the lazy **** to fix it, or he told me to take care of it myself.

But I'm generally a pain in the ass, so ymmv
Zurvan is offline   Reply With Quote
Old 09-07-2010, 02:14 PM   #80
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: Montana
Posts: 49,771
Re: The POG Programmers Containment Thread

my manager and I both think it's pretty funny, but really it's not a big enough deal to bother complaining about. And to be fair when the issue first came up there wasn't really any customer impact so I sort of understand why that team was like "eh, nah, let's not do that"

And since I'm already working it I'd rather get credit for fixing it anyway :P
well named is offline   Reply With Quote
Old 09-07-2010, 02:35 PM   #81
Retired
 
Zurvan's Avatar
 
Join Date: Apr 2005
Location: On the front porch, yelling at kids
Posts: 32,269
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by Zurvan View Post
Bump because I've been working on the same bug since Thursday afternoon, I still haven't solved it, and I'm about 99% sure that if the guy who had setup this section of the app had ever heard of database normalization, I wouldn't be having this problem.

**** repeating data, **** highly coupled code, **** impenetrable naming schemes, **** copy/paste code

RAGE
Update: I WIN
Zurvan is offline   Reply With Quote
Old 09-07-2010, 03:47 PM   #82
Carpal \'Tunnel
 
kokiri's Avatar
 
Join Date: Feb 2006
Location: without squirrel
Posts: 31,636
Re: The POG Programmers Containment Thread

i would just like to thank you all for generating a nc thread i wont have top 5 posts in: thankyou.

As you were
kokiri is offline   Reply With Quote
Old 09-07-2010, 05:36 PM   #83
Carpal \'Tunnel
 
clowntable's Avatar
 
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by Zurvan View Post
Yes, bad code and terrible data design are the sole domain of PHP. If only we wrote it in python, then everything would be perfect
It's obviously all dependant on the programmers but PHP just attracts (and imo especially with their history also encourages) horrible programmers with bad habits. I'm more than willing to wager that Python code written by some mediocre coder is tons and tons less cludgy than PHP code written by some mediocre programmer

Everytime I wanted to rip my eyeballs out when reading code it was PHP. SQL all over the place, copy/paste used everywhere, single namespace issues back in the day
There's simply a history of failure associated with the language (which is also a strong suit since lots of people learn/pick up the language)
clowntable is offline   Reply With Quote
Old 09-07-2010, 05:43 PM   #84
Retired
 
Zurvan's Avatar
 
Join Date: Apr 2005
Location: On the front porch, yelling at kids
Posts: 32,269
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by clowntable View Post
It's obviously all dependant on the programmers but PHP just attracts (and imo especially with their history also encourages) horrible programmers with bad habits. I'm more than willing to wager that Python code written by some mediocre coder is tons and tons less cludgy than PHP code written by some mediocre programmer

Everytime I wanted to rip my eyeballs out when reading code it was PHP. SQL all over the place, copy/paste used everywhere, single namespace issues back in the day
There's simply a history of failure associated with the language (which is also a strong suit since lots of people learn/pick up the language)
If this is true, and not your usual trolling, then you haven't read a whole lot of non-python/php code
Zurvan is offline   Reply With Quote
Old 09-07-2010, 05:48 PM   #85
Carpal \'Tunnel
 
clowntable's Avatar
 
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 39,784
Re: The POG Programmers Containment Thread

Actually I have been spoiled to work with really good programmers most of the time. I was probably in the bottom 10% of coding skill on most projects I've worked on (which is exactly why I worked on them)
clowntable is offline   Reply With Quote
Old 09-07-2010, 06:02 PM   #86
help me help you
 
Chips Ahoy's Avatar
 
Join Date: Apr 2007
Location: up-at-dawn, pride-swallowing siege
Posts: 21,354
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by clowntable View Post
It's obviously all dependant on the programmers but PHP just attracts (and imo especially with their history also encourages) horrible programmers with bad habits.
This sounds like a language that has succeeded at lowering the barrier to entry. That's a good thing.

Quote:
Everytime I wanted to rip my eyeballs out when reading code it was PHP.
You are lucky.
Chips Ahoy is offline   Reply With Quote
Old 09-07-2010, 06:04 PM   #87
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: Montana
Posts: 49,771
Re: The POG Programmers Containment Thread

I have written terrible code in many languages afaik
well named is offline   Reply With Quote
Old 09-07-2010, 06:19 PM   #88
ɹǝʍoʇpunoɹ
 
RoundTower's Avatar
 
Join Date: Feb 2005
Location: soah made my profile
Posts: 13,926
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by kokiri View Post
i would just like to thank you all for generating a nc thread i wont have top 5 posts in: thankyou.

As you were
you have a load of posts in the politics thread? my opinion of you just went way down.
RoundTower is offline   Reply With Quote
Old 09-07-2010, 06:27 PM   #89
Eternal Unknowable Mesmerizing
 
amplify's Avatar
 
Join Date: Sep 2005
Location: elenctic aporia
Posts: 66,057
Re: The POG Programmers Containment Thread

Quote:
Originally Posted by RoundTower View Post
you have a load of posts in the politics thread? my opinion of you just went way down.
Who Posted?
Total Posts: 6,113

Zurvan 772
amplify 764
DustinG 733
clowntable 575
kokiri 544
amplify is offline   Reply With Quote
Old 09-07-2010, 06:29 PM   #90
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: Montana
Posts: 49,771
Re: The POG Programmers Containment Thread

I have 250 posts in that thread. How did that happen?
well named is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 09:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Copyright © 2008-2010, Two Plus Two Interactive