• 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.
Zoe said:
^ Think about the return type of System.out.print
So basically, get rid of system.out.print? Ugh, these stupid mistakes.

Ok, now I have this:
Code:
public String toString()
	{	
		String str; 
		String str1;
		str ="The sorted values are: ";
		for (int i = 0; i < data.length; i++)
		{
			str = str + data[i] + ", ";
		}
		str1 = str + "\n" +
				" and the mean is: "+ mean;
		return str1;
	}
got rid of the variable ing because it had the error that it wasnt initialized. Is there a better way of sorting the array values in descending order and then putting it all in a string? Normally this wouldn't be too hard for me as sorting arrays isnt too bad but this whole having to return everything in a string is fucking me up.
 
ronito said:
perl is known for regular expressions and it's fantastic for parsing files. But that's really about it. VBS? I haven't seen it used seriously.

we use perl (mod_perl) to power our websites, becoming a rarity though in the webdev industry.

upandaway, i'd just move on to somethin else, unless you want to make perl your 'get shit done language' for quick scripts and hacks.
 
Does anyone else write jokes for a future reader in code that you will likely be the only one to ever look at, and are unlikely to even load up again? I also love commenting on some of the pitfalls. "Yeah, if the name isn't found, it will return NULL. There is nothing to handle this error though, so try not to screw up the input file!"

Also, is it odd of me to use +=1 and -=1 instead of ++ and --? I tend to do that when ever I am working with items passed by reference in C, it could of been a syntax error on my part but I recall the last time I did ++ it affected the address instead of the value.

Still need to get better with commenting code, going over an assignment one last time adding comments so I know what everything does, and updating other comments and notes that don't reflect changes, for when I need to reference the code again. With any luck though, this should be the last time I have to code in C90, or even C, for quiet a while.
 
Good morning, it's rant time (i.e. compiling)

Meetings. Fucking meetings that I'm invited to that involve nobody in my group, over purchasing decisions for off-the-shelf hardware for next year.

I hate wasting my time. I want to be working on my features, not listening to you stammer about insignificant decisions for an hour.

Also, you smell like stale farts and I dislike you.
 
Celsior said:
I know this is web related but fuck IE6, fuck it to hell. Update you old bastards, that is all.

Most of the projects here use dedicated applications, but the last project I worked on they made everything browser-based. It was such a pain repeatedly telling the client that the problems they were seeing were because they were still running IE6.
 
Zoe said:
Most of the projects here use dedicated applications, but the last project I worked on they made everything browser-based. It was such a pain repeatedly telling the client that the problems they were seeing were because they were still running IE6.

Our biggest client still has IE6 as a suitable browser for employees to use. So we have to make sure everything works with it. Fucking terrible.
 
I hate making database deployment scripts.

Doing database programming (MSSQL) is fun. But building the scripts to do deployment to other installations of the software in an extensible manner (checking for objects already existing, etc.) is just so boring and repetitive.

It's not hard. Just mindless busywork that takes forever.

Cleaning up the atrocious unreadable code generated by Management Studio's "create database scripts" function is annoying too.
 
ultron87 said:
Our biggest client still has IE6 as a suitable browser for employees to use. So we have to make sure everything works with it. Fucking terrible.

Chrome frame that beyotch.
 
WHY WOULD ANYONE CHOOSE TO STORE SOMETHING'S START TIME IN AN NVARCHAR COLUMN INSTEAD OF IN THE STARTDATE FIELD THAT IS ALREADY A DATETIME!??!?!?!
 
how about autotools? the sucky build system to build nightmare configuration files for another sucky build system. i swear i've worked on projects where the autotools configuration files are 20x more complex than the actual source code. and 90% of the time when i grab some open source package, the autoconf/make utterly falls flat on its face and fails, leaving me in the hellish position of figuring out why. it exacerbates the very problem it's supposed to solve. which is typical of *nix tools.

which could lead into another 20 page rant about linux in general. i joke about making an auto-autotools system to auto build autotools scripts, and i bet within a year it would be a linux standard package, as long as i make it as complicated and unintuitive as possible. that seems to be general *nix mentality.
 
poweld said:
Good morning, it's rant time (i.e. compiling)

Meetings. Fucking meetings that I'm invited to that involve nobody in my group, over purchasing decisions for off-the-shelf hardware for next year.

I hate wasting my time. I want to be working on my features, not listening to you stammer about insignificant decisions for an hour.

Also, you smell like stale farts and I dislike you.

Around here managers love to reserve the available meeting rooms for pretty much everything they can, it goes like this:

Manager:
"There was an important change in requirements, all the members of the team must attend"
= Irrelevant field needs to be increased in size but as I'm a massive waste of resources for the company, making people waste their time makes me look like I'm doing something, oh and I feel important.
=> 8 hours meeting
=> "Don't worry about the already idiotic/impossible to fulfill scheduled I made. I'll do my project magic, so you guys won't have to run -more- at the end"
= Manager wastes 1 entire week playing with project.
=> New meeting: All of you screwed up, project is heavily delayed. It has nothing to do with all those useless meetings I make you do that take countless hours and are never considered in the schedule... don't mind that the sum of all those hours easily exceed the delay. And because all of you are a bunch of nonproductive code monkeys, you'll have to work a retarded amount of extra hours that won't be payed (because it's your fault).
=> Even more meetings to ensure the "proper progress" of the project.
 
Why is it that there's no IDE for any language but Java that matches Eclipse? It's just so far and away better than anything else and it's somehow free!
 
Zoramon089 said:
Why is it that there's no IDE for any language but Java that matches Eclipse? It's just so far and away better than anything else and it's somehow free!

I think Visual Studio is best in class. Eclipse is OK but I've always had performance issues with it, and I never cared much for the look and feel.
 
I'll never forget meeting one of my mentors.
He came in and said, "Get me a list of all your recurring meetings."
We did that and gave him a list.
He replied with "These are all canceled. Recurring meetings within a department are symptoms of poor communication."

That man was a brilliant, brilliant man.
 
Andrex said:
I think Visual Studio is best in class. Eclipse is OK but I've always had performance issues with it, and I never cared much for the look and feel.

Truth. Visual Studio destroys Eclipse in every way I can think of. I agree that Eclipse is decent though.
 
ronito said:
I'll never forget meeting one of my mentors.
He came in and said, "Get me a list of all your recurring meetings."
We did that and gave him a list.
He replied with "These are all canceled. Recurring meetings within a department are symptoms of poor communication."

That man was a brilliant, brilliant man.

That man is a genius!

Sadly, none of my mentors were project managers... maybe that's why I consider them as the only reason why projects fail around here.
 
What are some of the Features normal Visual Studio has over Express? I have a key for the full version but still haven't gotten around to actually installing it.
 
tafer said:
Around here managers love to reserve the available meeting rooms for pretty much everything they can, it goes like this:

Manager:
"There was an important change in requirements, all the members of the team must attend"
= Irrelevant field needs to be increased in size but as I'm a massive waste of resources for the company, making people waste their time makes me look like I'm doing something, oh and I feel important.
=> 8 hours meeting
=> "Don't worry about the already idiotic/impossible to fulfill scheduled I made. I'll do my project magic, so you guys won't have to run -more- at the end"
= Manager wastes 1 entire week playing with project.
=> New meeting: All of you screwed up, project is heavily delayed. It has nothing to do with all those useless meetings I make you do that take countless hours and are never considered in the schedule... don't mind that the sum of all those hours easily exceed the delay. And because all of you are a bunch of nonproductive code monkeys, you'll have to work a retarded amount of extra hours that won't be payed (because it's your fault).
=> Even more meetings to ensure the "proper progress" of the project.

Don't forget the post mortem where these issues are identified, then never actually fixed for the next roject.
 
Code:
int  num; // number of consecutive ports
Oh, thanks, glad you so thoroughly thought through the name of that variable.

RRRRRAAAAAAAAAAAAGE :)
 
flippeh said:
Don't forget the post mortem where these issues are identified, then never actually fixed for the next roject.
I actually sat in a post mortem meeting where one of the issues identified was that they "didn't fix the issues from the last post mortem."

Funny thing, no one fixed them even after that.
 
Drkirby said:
What are some of the Features normal Visual Studio has over Express? I have a key for the full version but still haven't gotten around to actually installing it.
You can install plugins. VisualAssistX is a must for C++.
 
Dumb question: I'm a student and I've coded sort of 'modernized' version of the old Asteroids formula - slow mo, homing missiles, etc - and I was wondering if there are any precautions I should take. As in, are Java .class files easily decompiled? Do I need to copyright or otherwise legally protect my code in any way?

I'm not trying to be arrogant like my game is awesome (it's not), I was just wondering what the proper procedure was and I knew it didn't deserve a new thread.
 
Genesis Knight said:
Dumb question: I'm a student and I've coded sort of 'modernized' version of the old Asteroids formula - slow mo, homing missiles, etc - and I was wondering if there are any precautions I should take. As in, are Java .class files easily decompiled? Do I need to copyright or otherwise legally protect my code in any way?

I'm not trying to be arrogant like my game is awesome (it's not), I was just wondering what the proper procedure was and I knew it didn't deserve a new thread.

You could ofuscate your code, so even when decompiled it'll not be readable. But you should not worry too much about your code actually. Even more if you are doing a asteroid clone in Java, maybe protect your assets and idea, but not your code. If anything you should choose with which license your game will be released.
 
Programming GAF:
Code:
if (foo){
doFoo();
}
or
Code:
if (foo)
{
doFoo();
}
 
mike23 said:
Truth. Visual Studio destroys Eclipse in every way I can think of. I agree that Eclipse is decent though.

What? I hate Visual Studio...unless it's significantly different from Visual C++ which is what I'm using right now. It's just...so poor. It takes so long for it to show the popup for possibly functions/fields, and for some reason it keeps saying I have errors then they disappear without me doing anything. What's that about?

Also I just find Eclipse's interface to be easier
 
Halycon said:
Programming GAF:
Code:
if (foo){
doFoo();
}
or
Code:
if (foo)
{
doFoo();
}
I'm fan of the first one. I was using the second method in the beginning but looking back it made my code look ugly. Now with the first way, it just looks nicer.

Though I don't know which one is more professional. My first teacher used the second one while my second teacher used the first one
 
Indent tags don't play well with code tags :(

I was taught:
Code:
if (foo)
{
[INDENT]doFoo();[/INDENT]
}
Seeing open bracket on the same line as if clauses and class declarations in college blew my mind. It's so ugly I don't know why anyone would do it. And some IDEs even have it as the default auto-format.
 
Halycon said:
Programming GAF:
Code:
if (foo){
doFoo();
}
or
Code:
if (foo)
{
doFoo();
}


The second one. The idea is that the brackets line up vertically so you can see what it encloses rather than the if. Most IDEs have brace highlighting so you can just scroll up/down to find it rather than having to look off to the side.
 
Halycon said:
Programming GAF:
Code:
if (foo){
doFoo();
}
or
Code:
if (foo)
{
doFoo();
}

First one is required if you do JavaScript, so I choose that to keep things consistent.
 
deadbeef said:
You put tabs in your code? AUGGHHHHHH

Uh you don't? Representing one character is much better, easier to work with, and cuts down on file sizes.
 
Andrex said:
First one is required if you do JavaScript, so I choose that to keep things consistent.
I did not know that.

the_more_you_know2.jpg
 
Genesis Knight said:
Dumb question: I'm a student and I've coded sort of 'modernized' version of the old Asteroids formula - slow mo, homing missiles, etc - and I was wondering if there are any precautions I should take. As in, are Java .class files easily decompiled? Do I need to copyright or otherwise legally protect my code in any way?

I'm not trying to be arrogant like my game is awesome (it's not), I was just wondering what the proper procedure was and I knew it didn't deserve a new thread.
Under the Berne convention, you don't need to do anything to have your code copyrighted for as long as you live plus 50 years in all signatory countries. Basically, by the time your copyright expires, everyone you've ever known will probably be dead, there's not going to be a single machine capable of actually running your program, and your program's probably already going to be lost forever anyway. So you're good on that front.

In terms of obfuscating your code to make it less understandable upon decompiling, the real question is 'why?' Unless you're trying to sell your game and you have copy-protection, I don't think there's much point in obfuscating your code. If it doesn't protect you from harm, it's just wasted effort.
 
Andrex said:
Uh you don't? Representing one character is much better, easier to work with, and cuts down on file sizes.

Smaller files sizes for code? What is this, 1970?

But seriously, I'm a space person. Tabs aren't a set width so when you move from one computer to another the file can look terrible. With spaces it'll always be the same.

Zoramon089 said:
What? I hate Visual Studio...unless it's significantly different from Visual C++ which is what I'm using right now. It's just...so poor. It takes so long for it to show the popup for possibly functions/fields, and for some reason it keeps saying I have errors then they disappear without me doing anything. What's that about?

Also I just find Eclipse's interface to be easier

I only use it for C# so I can't comment on it's C++ abilities, but for C# it's certainly way better than eclipse is for java.
 
Andrex said:
Uh you don't? Representing one character is much better, easier to work with, and cuts down on file sizes.
Tabs are displayed inconsistently across different editors. I prefer spaces for that reason. That said, consistency is most important.

Personally, I start with the Google C++ Style Guide and deviate if I think something's dumb.
 
So year one of school is done. I now have a bit of experience with languages (C++, C#, SQL), web dev (HTML, CSS, no Javscript until next semester) and Unix. I feel absolutely as though this was a right decision for me. But I still don't feel like I can do anything, we've only dabbled in anything GUI related, and the websites I can make are mediocre at best - what should I do this summer to keep myself sharp? I feel as though if I don't practice I'll lose my way.

Also,

Code:
if(i > x)
{
       x++
{

Is the only way I can read code now, anything else gives me heartburn.
 
Make a game?

XNA has some starter kits you can use with C#. They're not all in one place though, you might have to hunt for them.
 
Status
Not open for further replies.
Top Bottom