r/programming • • Nov 15 '16

The code I’m still ashamed of

https://medium.freecodecamp.com/the-code-im-still-ashamed-of-e4c021dff55e#.vmbgbtgin
4.6k Upvotes

797 comments sorted by

View all comments

Show parent comments

523

u/verydapeng Nov 16 '16

right, never hardcode anything!

307

u/ilion Nov 16 '16

I don't know... big difference between the two. This seems like scope creep and could put this out of sprint.

166

u/Razzal Nov 16 '16

Well what if we remove all safeguards and security, think you can squeeze it into a demo-able form by Friday?

148

u/ilion Nov 16 '16

Sure, we'll put a security story in the backlog to be done in Q4 where it can safely be de-prioritized eternally. I estimate it at ∞.

71

u/Atario Nov 16 '16

This thread is making me itchy

61

u/mortiphago Nov 16 '16

if you're getting agile itchiness try taking a waterfall shower

→ More replies (1)

28

u/tepkel Nov 16 '16

Please do the needful.

8

u/topaz_riles_bird Nov 16 '16

Wait, I'm not the only person who has people tell me this??? Where did this come from??

16

u/Caethy Nov 16 '16

India.

It's a part of Indian English vernacular. India's rather large IT service sector means it's spreading outside of the country. It's massively infuriating to read.

10

u/tepkel Nov 16 '16

I'm sure there's some more appropriate language to use.

Please advise.

0

u/[deleted] Nov 17 '16

[deleted]

→ More replies (0)
→ More replies (1)
→ More replies (2)
→ More replies (3)
→ More replies (1)

31

u/Dagon Nov 16 '16

Q4

Also known as "handing it to the support team to finish the remaining 50% of the work".

0

u/[deleted] Nov 16 '16

[deleted]

→ More replies (13)
→ More replies (2)

49

u/Arancaytar Nov 16 '16

Let's just write a destroyEverything() procedure to which a filter can optionally be passed as a parameter.

24

u/UTF64 Nov 16 '16 edited May 19 '18

23

u/hugthemachines Nov 16 '16

What is this "experience" you speak of? Can't you just switch around the developer-units how ever you please and get the same result?

11

u/Nefari0uss Nov 16 '16

At my previous workplace the sales team sold something to the clients that wasn't on our development road map. Then apparently the deadline is end of the year. Ummm... You cut a team of 5 down to 1 and then expect something that wasn't planned to be started to be completed in 1.5 months. Yeah this is gonna then out well.

→ More replies (8)

4

u/GogglesPisano Nov 16 '16

Do you work at the White House?

→ More replies (1)
→ More replies (6)

58

u/d4rch0n Nov 16 '16

Then you go and spend 16 hour days and finish the DestroyCity procedure and product is like... "okay great, that's good, but we were reallllly looking for a CommitGenocide"

38

u/ZeroPipeline Nov 16 '16

This is the truth. The method executes and every building, brick, sidewalk, and piece of infrastructure vanish in a faint puff of smoke, leaving only the people behind. And you take the blame for not eradicating them too because somehow hazy requirements are your fault.

5

u/js79 Nov 16 '16

Actually it would be worse - client would run this on RealWordl(tm) server skipping any testing. Then would go back furiously to sales infuriated by political problem they have now with all this people in middle of nowhere while they were trying o sell all that (now gone) infrastructure and actually have already some contracts signed.

Sales won't take any blame, client demands at least returning state of their "product" to situation before they fucked up everything and boss of your boss is blood-thirsty looking for some scapegoat. SNAFU - as usual

4

u/[deleted] Nov 20 '16

I'm currently working with a PM who stated during our introduction "I could never be a programmer it's so mind numbing."

Oh so the person who finds technical details boring is running the project? Fantastic. Wcgw?

→ More replies (1)

12

u/St_SiRUS Nov 16 '16

Hurrray for modifiability!

11

u/Njs41 Nov 16 '16

Or hardcode everything and charge extra to change things.

→ More replies (7)