• Hey Guest. Check out your NeoGAF Wrapped 2025 results here!

GAF Devs Thread - a thread about programmer's rants

Status
Not open for further replies.

nickcv

Member
i made a search before opening this thread and i couldn't find one.

If you are a developer you are welcome inside this thread, no matter what's your programming language.

This thread is for rants! Your project manager made you rewrite for the 12th thousand time the same application because he has no clue about what does he wants?
your client keeps changing his mind because he read about the new trends on his 8th years old daughter magazine?

share with us!

just please don't use this thread to ask advices about coding!


_________________________

i'll go first.

at work we were working on an intranet software for a local company.
this company, among other things, does certifications classes for other companies and wanted a new software to manage all the classes, registration, test correction and everything else.
We spent months customizing this thing, also because they wanted it to be integrated with their current management software that is coded in COBOL(!!!!!).

In the last few weeks we didn't get any news from that company, so after losing my health after this thing my boss decided that we need to do something with this software and decided to sell it to another company.

Next week we'll have a meeting with those guys because they of course need some customization to make it work in their current intranet environment (and with my luck will be running with software written in fortran)
 
man I could write a book. And someday will.
Here's one:

"We need you to find out with this code right away!"
It was 32 pages long.
There was one, ONE, comment.
It came right before a huge 3 page for loop. It said:
//for loop
 
Did it at least have meaningful variable names? Or was it stuff like "Temp" "X" "i" "stuff" "function5"
 
Comments are for poor coders. Really REALLY good code is self-documenting. Small functions. Good function names.

edit: Which is not to say the code ronito was scanning was anything but garbage.
 
Drkirby said:
Did it at least have meaningful variable names? Or was it stuff like "Temp" "X" "i" "stuff" "function5"
Oh no, of course not!

Myvar1
Myvar2
Myvar5

And nothing was strongly typed.
 
CMSs. Every goddam one. Also Facebook's social APIs are a piece of shit. I spent an entire work day getting a Like button to work because they cache the page data improperly and it breaks my shit.
 
ronito said:
Oh no, of course not!

Myvar1
Myvar2
Myvar5

And nothing was strongly typed.

the best thing is when inside the same script you find the same variable used to contain different kind of values across the script

line 1
Result (boolean value)

line 240
Result (string containing the result)

once i read an article about how to make the code unreadable
 
ronito said:
Oh no, of course not!

Myvar1
Myvar2
Myvar5

And nothing was strongly typed.

It's really not that hard to have decent variable names, if you're to lazy to even think up a decent variable name then you shouldn't be programming anything.
 
Same name variables in different scopes of the same class. Awesome ensues.
Hopefully i wont code (for a living) no more.
 
I'm a developer, but not in the industry, can I join the thread?


I've fortunately not met many bad cases, but we did have once software from other company with global variables all over the place, it was a nightmare.

I really love programming, and I love games, I guess one day I'll do something about it, but it seems is the worst job in the industry, and its a terrible job in any area for that matter, you only do it out of love for the craft honestly.
 
nickcv said:
the best thing is when inside the same script you find the same variable used to contain different kind of values across the script

line 1
Result (boolean value)

line 240
Result (string containing the result)

once i read an article about how to make the code unreadable
Oh this idiot did just that.

And another one.
I was on a project that decided to outsource their development. So they took our designs which had the pseudo code. When time came for testing nothing worked. About 60% of the code they just copy/pasted the pseudocode in.
 
Three simple rules for variable scoping:

_varName <= internal class-scoped variable
VarName <= public property or method
varName <= local variable

Remember this or I'll kill you.
 
ronito said:
Oh this idiot did just that.

And another one.
I was on a project that decided to outsource their development. So they took our designs which had the pseudo code. When time came for testing nothing worked. About 60% of the code they just copy/pasted the pseudocode in.

Oh man...I could tell some stories.
 
nickcv said:
how did you get your soul back?
I had to quit, i worked as gameplay programmer for 6 years (Two different studios. Each with crazy stories)
Looking for a game designer job now.
 
one year ago in the company i was working in we got two young guys (a boy and a girl) that had to stay with us for a University Stage
(here in Italy when you are on your second year of college you are forced to make some experience working for free somewhere)

they of course where majoring in IT.

They were working on a simple scrapper that had to grab some data from a webpage (not something we needed, but we had to give'em something to do!).

All of a sudden we lost our internet connection, so i told em to run their apache server locally and keep testing there.

After about ten minutes one of them comes to my desk saying:
"apache is not working"

so i follow him back to his seat and read in the firefox windows:
"firefox is in offline mode."
 
Here is an example of horrible code I wrote today.
it's for coursework though so who cares

bool Date::setDate(string date)
{
string day;
string month;
string year;​

if (date.size() == 10)
{
string::iterator iter = date.begin();

// dates are hard formatted dd/mm/yyyy at the moment
// horrible I know, sue me.

day.push_back((*iter));
++iter;
day.push_back((*iter));
++iter;
++iter;


month.push_back((*iter));
++iter;
month.push_back((*iter));
++iter;
++iter;


year.push_back((*iter));
++iter;
year.push_back((*iter));
++iter;
year.push_back((*iter));
++iter;
year.push_back((*iter));​
}​
 
I remember my first 'sleeping in the office' experience.
Do you guys remember your first crunch?

It was pretty awesome the first time, i was young and i rocked 14-18 hours days for weeks.
But then it became the norm =/
 
At work, the actual code itself is written fairly well.

When getting into our SQL database though, all hell breaks loose. Configuration tables, shitty naming conventions for tables and stored procedures, needing to update datatypes at later times (bit to integer), etc, etc.

Seriously, working on the front-end forms and logic that processes stuff from the database is awesome, but the database work is the pits due to shitty practices we have.


BigNastyCurve said:
Comments are for poor coders. Really REALLY good code is self-documenting. Small functions. Good function names.

Also, this is only partially true. I would agree that people comment shit that doesn't need commenting.

Bullshit:
I.E. Function LoadImage() //This function loads images

There are cases in difficult logic where commenting can help the reader understand what the fuck is going on, though.
 
Fersis said:
I remember my first 'sleeping in the office' experience.
Do you guys remember your first crunch?

It was pretty awesome the first time, i was young and i rocked 14-18 hours days for weeks.
But then it became the norm =/
I don't even remember my first crunch. I do remember my worst one. Actually I wrote about it in one of the creative writing challenges. Urine was involved.

BigNastyCurve said:
Oh man...I could tell some stories.
Well that's what this thread is for.
 
BigNastyCurve said:
Comments are for poor coders. Really REALLY good code is self-documenting. Small functions. Good function names.

edit: Which is not to say the code ronito was scanning was anything but garbage.
True, and the code doesn't necessarily do what the comments say.
 
Somnid said:
Three simple rules for variable scoping:

_varName <= internal class-scoped variable
VarName <= public property or method
varName <= local variable

Remember this or I'll kill you.
For C++ I like:
varName_
anyFunction
localVariable
ClassName

Mostly, I prefer trailing underscores for member variables.

It looks nicer, and it's less similar to reserved symbols (double leading underscores, underscore capital, or any leading underscore at global scope).

Though consistency is more important.
 
Edited because its bad practice for the newcomers.
 
CrankyJay said:
True, and the code doesn't necessarily do what the comments say.
That's a little weird.

Code isn't commented very often at my place of work. There is usually a paragraph description at the beginning of a file and then that is it. Sometimes people are nice and write a some more in that header file. Company is somewhat young so its not too hard to track down the person that wrote it.
 
Fersis said:
I remember my first 'sleeping in the office' experience.
Do you guys remember your first crunch?

It was pretty awesome the first time, i was young and i rocked 14-18 hours days for weeks.
But then it became the norm =/
OH man. So glad I gave up programming after my first year of high school.
 
dogmaan said:
Here is an example of horrible code I wrote today.
it's for coursework though so who cares

First rule of programming GAF:

Use the damn
Code:
 tag!
 
Zoe said:
First rule of programming GAF:

Use the damn
Code:
 tag![/QUOTE]
Wrong the first rule of programming GAF is "My language is better than your language" 

;)

[QUOTE=nickcv]once my brother while trying to debug some code wrote in the middle of it
"print(i love pu**y)"
[/QUOTE]
I invented a magic word 'BABABOO', i think that some games will be released this year with BABABOO inside their binary files.
 
Fersis said:
Edited because its bad practice for the newcomers.

once my brother while trying to debug some code wrote in the middle of it

print(i love pu**y)

he couldn't find the problem so he mailed the code to another division inside the company, and of course he forgot to remove the print.

That's a little weird.

Code isn't commented very often at my place of work. There is usually a paragraph description at the beginning of a file and then that is it. Sometimes people are nice and write a some more in that header file. Company is somewhat young so its not too hard to track down the person that wrote it.

you'll have a lot of fun in a couple of years when the person who wrote it left the company :P
 
nickcv said:
you'll have a lot of fun in a couple of years when the person who wrote it left the company :P
I'm an intern so not my problem haha
but yeah, I said the same exact thing to my boss. But most of that code that is reused is written by some high profile people there and by now I think there are lots of experts on it. Still kinda weird imo.
 
This thread is a depressing vision of my future.
 
Fersis said:
I remember my first 'sleeping in the office' experience.
Do you guys remember your first crunch?

It was pretty awesome the first time, i was young and i rocked 14-18 hours days for weeks.
But then it became the norm =/
I've been in a bunch of startups, some successful, some not, and I have never ever slept in the office.

A good night (or sometimes, day) sleep is worth more than whatever you lose on your commute (though it should be noted that I've never lived too far from my workplace).

Like most super-crunch measures, it's counterproductive.
 
Halycon said:
This thread is a depressing vision of my future.
Do you like programming? Thats whats all about.
Working on something you like must be a blessing.
 
Halycon said:
This thread is a depressing vision of my future.

It's all about the company man. I have only ever had to work overtime once, but I'm at a small company of about 12 employees, so we are actually treated like human beings.

^Also what he said, if you like programming you will be fine, if you hate it then you will hate it.
 
Kalnos said:
if you like programming you will be fine, if you hate it then you will hate it.
I don't hate programing, but I don't like it all that much either.
It's fine as a job, but I don't code in my spare time or anything.

I did however have enough real jobs in my life to realize how lucky I am to have a well paying job that is no more physically taxing than browsing for porn.
 
Kalnos said:
It's all about the company man. I have only ever had to work overtime once, but I'm at a small company of about 12 employees, so we are actually treated like human beings.

^Also what he said, if you like programming you will be fine, if you hate it then you will hate it.

that's the main point.
it's kinda like being a doctor.
if you don't truly have the vocation don't do it.


even with all the horrible things that happen from time to time i still love my job.
 
Chichikov said:
I don't hate programing, but I don't like it all that much either.
It's fine as a job, but I don't code in my spare time or anything.

I did however have enough real jobs in my life to realize how lucky I am to have a well paying job that is no more physically taxing than browsing for porn.

That's cool, I don't see many people take your position though. It seems to usually be either a like it or hate it deal from my experience.
 
Somnid said:
Three simple rules for variable scoping:

_varName <= internal class-scoped variable
VarName <= public property or method
varName <= local variable

Remember this or I'll kill you.
Just for this time, do the opposite of this man's tag.
 
Someone convince me the cross-origin browser restriction isn't completely useless.

ronito said:
man I could write a book. And someday will.
Here's one:

"We need you to find out with this code right away!"
It was 32 pages long.
There was one, ONE, comment.
It came right before a huge 3 page for loop. It said:
//for loop

Yeah I remember there was another thread you had some great (sad) stories, would love to read a book of them.

Somnid said:
Three simple rules for variable scoping:

_varName <= internal class-scoped variable
VarName <= public property or method
varName <= local variable

Remember this or I'll kill you.

What if there is no class scoping? :P
 
nickcv said:
once my brother while trying to debug some code wrote in the middle of it

print(i love pu**y)

he couldn't find the problem so he mailed the code to another division inside the company, and of course he forgot to remove the print.
This is why I use lyrics from Queen songs.
 
dogmaan said:
Here is an example of horrible code I wrote today.
it's for coursework though so who cares

bool Date::setDate(string date)
{
string day;
string month;
string year;​

if (date.size() == 10)
{
string::iterator iter = date.begin();

// dates are hard formatted dd/mm/yyyy at the moment
// horrible I know, sue me.

day.push_back((*iter));
++iter;
day.push_back((*iter));
++iter;
++iter;


month.push_back((*iter));
++iter;
month.push_back((*iter));
++iter;
++iter;


year.push_back((*iter));
++iter;
year.push_back((*iter));
++iter;
year.push_back((*iter));
++iter;
year.push_back((*iter));​
}​
Please don't get a job as a programmer. Especially since this was for your school work.
 
Kalnos said:
That's cool, I don't see many people take your position though. It seems to usually be either a like it or hate it deal from my experience.
There are definitely more people who love to code in the business than people like me, I agree.
I was just making the point that you don't need to love coding like a hobby in order to be a successful programmer.
 
Chichikov said:
There are definitely more people who love to code in the business than people like me, I agree.
I was just making the point that you don't need to love coding like a hobby in order to be a successful programmer.

but i think that you need to love it to survive in the industry in the long run.

otherwise you are going to have a meltdown (or change job)
 
nickcv said:
but i think that you need to love it to survive in the industry in the long run.

otherwise you are going to have a meltdown (or change job)
I don't want to date myself here, but I've been doing this for over a decade.
Still going strong.
 
So what's everyone working on? At work (if you're allowed to talk about it) or on your own time?
 
Somnid said:
Three simple rules for variable scoping:

_varName <= internal class-scoped variable
VarName <= public property or method
varName <= local variable

Remember this or I'll kill you.


For C++ I like:
varName_
anyFunction
localVariable
ClassName

i do something in between:

_varName <= internal class-scoped variable
VarName <= class name
anyFunction <= any function
var_name <= local variable

and of course

VAR_NAME <= constant
 
Andrex said:
So what's everyone working on? At work (if you're allowed to talk about it) or on your own time?
Goal: Transforming 11 million lat/lon/altitude coordinates into cartisian space in under a second to within a meter of accuracy.

Looking at CUDA/OpenCL.
 
Slavik81 said:
Goal: Transforming 11 million lat/lon/altitude coordinates into cartisian space in under a second to within a meter of accuracy.

o_0 Godspeed, man.
 
Andrex said:
So what's everyone working on? At work (if you're allowed to talk about it) or on your own time?
Currently unemployed but on my own time im coding:
- Fighting Game Engine. (Just to learn more about my favorite genre)
- Basic FPS Engine. (Just to train myself at designing levels)
- Helping on some open source project. (Because the lead guy helped me before)

But im not into coding as much as before, in fact i want to drop it for good once i get a design job.
 
Status
Not open for further replies.
Top Bottom