• 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.
iapetus said:
Picked up a nice new programming book recently. I suspect the author holds slightly strong opinions on some issues.



He's not wrong.


It's one of my worst habits as a programmer. When I decide to change the way something works, I comment out the old code and usually leave a note saying when/why I commented it out.

Then, even if I love the new code, I usually either forget to remove the commented code, or I'll leave it there on purpose in case I need to grab bits of it again later. Now, how often I actually end up re-using that old code is something I should probably take a good long look at, but I've done it at least a few times in my current project.
 
Zoe said:
IExLS.png
Even worse when the person asking the question replies that he has solved the issue, but don't include the solution.
 
marcurius said:
Even worse when the person asking the question replies that he has solved the issue, but don't include the solution.

And then the mods lock the thread.
 
Is there a free tool out there that will map out class relationships for C# projects?

I'm looking to get a nice map made that shows which classes in my game reference other classes. For example, my GameScreen class has a PlayerInformation class. PlayerInformation has a Rings class, and so on and so forth. I'd just like a visual map of how things are hooked together.

This deals with the question I posted at the bottom of the last page where I asked if anyone would be interested in shooting the shit with me for a bit about my game.
 
Ecrofirt said:
It's one of my worst habits as a programmer. When I decide to change the way something works, I comment out the old code and usually leave a note saying when/why I commented it out.

Then, even if I love the new code, I usually either forget to remove the commented code, or I'll leave it there on purpose in case I need to grab bits of it again later. Now, how often I actually end up re-using that old code is something I should probably take a good long look at, but I've done it at least a few times in my current project.

I do the same thing, though I'm usually good at eventually getting rid of it if I come by it again. Sure, if I delete it outright, I can pull it from the version history in source control if I need to, but (at least in Team Foundation Server), it's a huge pain in the ass to revert to previous versions of a file.

My *really* bad habit is ten times worse though- If I quickly need to comment out a larger block of code, and it already contains block comments, that's getting wrapped in an if(false). I feel dirty whenever I do that.
 
Mister Zimbu said:
I do the same thing, though I'm usually good at eventually getting rid of it if I come by it again. Sure, if I delete it outright, I can pull it from the version history in source control if I need to, but (at least in Team Foundation Server), it's a huge pain in the ass to revert to previous versions of a file.

My *really* bad habit is ten times worse though- If I quickly need to comment out a larger block of code, and it already contains block comments, that's getting wrapped in an if(false). I feel dirty whenever I do that.
Does that even get removed at compile time or will your code be sat in memory? Sounds like a horrible thing to do!
 
Zoe said:
And then the mods lock the thread.
Like clockwork!

Ecrofirt said:
Is there a free tool out there that will map out class relationships for C# projects?

I'm looking to get a nice map made that shows which classes in my game reference other classes. For example, my GameScreen class has a PlayerInformation class. PlayerInformation has a Rings class, and so on and so forth. I'd just like a visual map of how things are hooked together.

This deals with the question I posted at the bottom of the last page where I asked if anyone would be interested in shooting the shit with me for a bit about my game.
Visual Studio has the option to view a class diagram if you right-click your project in the Solution Explorer. I'm unsure if this feature is available to all versions of VS though, as I'm using Ultimate.
 
Ecrofirt said:
Is there a free tool out there that will map out class relationships for C# projects?

I'm looking to get a nice map made that shows which classes in my game reference other classes. For example, my GameScreen class has a PlayerInformation class. PlayerInformation has a Rings class, and so on and so forth. I'd just like a visual map of how things are hooked together.

This deals with the question I posted at the bottom of the last page where I asked if anyone would be interested in shooting the shit with me for a bit about my game.
Visual Studio does this but if you are really interested in static code analysis I think you can download a free trial of Understand.

http://www.scitools.com/
 
The Friendly Monster said:
Does that even get removed at compile time or will your code be sat in memory? Sounds like a horrible thing to do!
Yes, the preprocessor will excise the code before it is compiled. It's really not all that bad, as far as I'm concerned, when it comes to disabling a block of code. I do the same thing (well, #if 0) when block commenting a bit of code that contains a block comment.
 
Why is graphics programming so complicated ? All current rendering technologies seem to me like just a collection of hacks to perform fast rendering on current cpus instead of creating simple elegant solutions for upcoming faster computers.
 
Oozinator said:
Why is graphics programming so complicated ? All current rendering technologies seem to me like just a collection of hacks to perform fast rendering on current cpus instead of creating simple elegant solutions for upcoming faster computers.

I dunno why you're singling out graphics, that pretty much describes any sort of programming you do. :P

Zoe said:

This is depressing simply because of how true it is.
 
I'm not quite sure this is the best place for this but what do you guys think about a Master's degree vs a Bachelor's in Computer Engineering/Science.. I'm a bit distraught about what to do when I graduate. I have about one and a half years of experience at a co-op job and it's possible that they would hire me straight out with a Bachelor's, would it be preferable to start working and then go back for the Master's if and when I need it?
 
deadbeef said:
Visual Studio does this but if you are really interested in static code analysis I think you can download a free trial of Understand.

http://www.scitools.com/

Herp derp.

I didn't know Visual Studio did that! All I could ever find was a Class Diagram.


I'm playing around with it in VS, and I'm not sure how to get it to display exactly what I want.

I don't want it to show me when a class references another class at any point. I just want it to show me links between classes on a field level.

For example, my GameScreen has a PlayerInformation field. The PlayerInformation field has a Ring field. The GameScreen itself doesn't have any Ring fields, but the graph still shows a connection between the two classes because a method in the GameScreen class uses a Ring.
 
I'm not quite sure this is the best place for this but what do you guys think about a Master's degree vs a Bachelor's in Computer Engineering/Science.. I'm a bit distraught about what to do when I graduate. I have about one and a half years of experience at a co-op job and it's possible that they would hire me straight out with a Bachelor's, would it be preferable to start working and then go back for the Master's if and when I need it?

If you can get hired on, I say take the job and go back for the masters later if you feel like you need it. I would only do the masters immediately as a last resort.
 
I hate DLL references in Visual Studio. Completely backwards and nonsensical.

I have a Business Layer project, and a DLL in the GAC I want to reference. Great. However, I want a website project- which references the Business Layer project- to get a copy of the DLL in its bin folder, so the web server doesn't rely on having the dependent software installed.

You'd think this would happen automatically- or at least have a process for even doing it manually without having to edit post-build steps- but you'd be wrong.
 
I'm not quite sure this is the best place for this but what do you guys think about a Master's degree vs a Bachelor's in Computer Engineering/Science.. I'm a bit distraught about what to do when I graduate. I have about one and a half years of experience at a co-op job and it's possible that they would hire me straight out with a Bachelor's, would it be preferable to start working and then go back for the Master's if and when I need it?

I know this post is old, but I wanted to weigh in.

If you start working immediately after a Bachelor's, it may be tough to give up the money and/or free time to get a Master's. Also, there are plenty of fantatic jobs offering good money that don't require a Master's degree.

If you're an academic type that wants that extra degree, I recommend getting the Master's now. Of course, this is advice from some random internet guy with his own personal experience. Be sure to talk this over with your counselors. Good luck.
 
*headdesk* *headdesk* *headdesk*

Wrote simple XNA code, published it with an installer that gets all the requisites, tried it on 4 machines: works fine on the win7 machines (both x32 and x64), crashes without giving any useful information on the winXP machines. All it tells me the faulting assembly is XNA, but that doesn't help me... at all.

Edit: okay, so apparently, VS decided to just ignore me and force a debug build every time. -_-

*headdesk* *headdesk* *headdesk*
 
*headdesk* *headdesk* *headdesk*

Wrote simple XNA code, published it with an installer that gets all the requisites, tried it on 4 machines: works fine on the win7 machines (both x32 and x64), crashes without giving any useful information on the winXP machines. All it tells me the faulting assembly is XNA, but that doesn't help me... at all.

Edit: okay, so apparently, VS decided to just ignore me and force a debug build every time. -_-

*headdesk* *headdesk* *headdesk*


I remember some of my friends having issues with a prototype of the game I was working on. It turned out that I had my application set to some sort of high quality mode that was supposed to use DX10. I turned it down to the low quality setting and everything was OK for them.

Speaking of, I really need to get back to working on that game. More time. I need more time.
 
*headdesk* *headdesk* *headdesk*

Wrote simple XNA code, published it with an installer that gets all the requisites, tried it on 4 machines: works fine on the win7 machines (both x32 and x64), crashes without giving any useful information on the winXP machines. All it tells me the faulting assembly is XNA, but that doesn't help me... at all.

Edit: okay, so apparently, VS decided to just ignore me and force a debug build every time. -_-

*headdesk* *headdesk* *headdesk*

This link might help:
http://blogs.msdn.com/b/shawnhar/archive/2010/03/12/reach-vs-hidef.aspx

I had to put my game into "Reach" mode in order to get it to work on other people's PCs. It was weird, as I wasn't doing anything special. Just 2D with spriteBatches and whatnot.
 
PHP is a vile language and I'll be glad I never have to touch it again after this class.
 
PHP is a vile language and I'll be glad I never have to touch it again after this class.

Feel my pain. I had to learn it and use it for work related projects all within 4 months.

Glad I'm done with it. And it doesn't look like my school uses PHP either. I think we use Java for the server side stuff in my web development class lol
 
imfUkFBIjkquq.png


EDIT: SOLVED. Fuck the stateless web, useless piece of shit.
 
Anybody have some tips for interviewing? I haven't interviewed in 3 years so probably a bit rusty. It's for a Mobile Apps position using HTML5, CSS3 and JavaScript. I was interviewed by a non coder for the job I currently have so I am not exactly sure what to expect. Any advice is greatly appreciated.
 
Nevermind. ;)

OK, guys. I need your help.

I'm searching for someone, who has a full version of VisualDSP++ 5.0 on his PC/at work and could test a program for me. My problem is that the debug and the plot functions of the free 90 day trial version won't work for me. Now I can't test the code of my project for university.

Please help me :(
 
Today I discovered someone competent who's working on combining two third-party libraries. This was a wonderful discovery since I'd already done a bit of that, and have wanted to improve upon my work for a while. He released what he had thus far into the public domain and it's already an improvement in a number of respects (though it's missing some others that I had developed).

Unfortunately, I'm entirely forbidden from contributing any code or giving any code-related help to him. It seems that we must own every line of code I write.

I gave him a few pointers and went on my way. Hopefully this guy finishes the whole thing by himself. *sigh*
 
PHP is a vile language and I'll be glad I never have to touch it again after this class.

"Organic" PHP, or PHP with all the frameworks and such? It's not bad at all, the problem with is that anyone can write it (I don't think there's anything bad with that though). If you look up frameworks such as Zend, CakePHP, or Symfony, it's much more cleaner than using PHP by itself. It's still object oriented and can perform just as well as any other dynamic language.

Put in short however, if you apply solid OOP practices (ex: SOLID principles), I think any OOP language can feel much better to use.
 
You know what I hate?
I hate when you get tasked into doing complicated stuff that's utterly no value, in fact it'll probably lose the company money, but instead of going out and doing valuable you get stuck doing something that's utterly worthless and you know they're going to nitpick at everything that could possibly go wrong.

I always try to get these things killed (it's partially my job to do so) but every once in a while I'll come across a scenario where I'm overridden and it totally sucks. I don't mind doing really complicated stuff at all. But when it's all that effort into a stupid use. It's infuriating.
 
*headdesk* *headdesk* *headdesk*

Wrote simple XNA code, published it with an installer that gets all the requisites, tried it on 4 machines: works fine on the win7 machines (both x32 and x64), crashes without giving any useful information on the winXP machines. All it tells me the faulting assembly is XNA, but that doesn't help me... at all.

Edit: okay, so apparently, VS decided to just ignore me and force a debug build every time. -_-

*headdesk* *headdesk* *headdesk*

I've never had that problem before, but it wouldn't hurt to run dependency walker on your executable.
 
First playable demo due tomorrow-ish.

Current project on the repo is still the same as it was last week.

Welp, I guess it's crunch time tonight.
 
I just need to get this tank rendering on the screen (done already) and have it conform to terrain (not done) and have the camera follow it around (also not done).

Following this tutorial to speed things up: http://rastertek.com/tertut06.html

(The overall goal is a snowboarding game featuring tanks instead of snowboarders. It's a semester long group project designed to build teamwork abilities but all I've learned from it is that if you can't rely on others you have to do everything yourself.)
 
So my contract never expired. I ranted back in August that I only had 3.5 months left. Well, they extended that by a year (first by six months, then by six more). I got an 11% bump in my rate from my recruiter, so I'm content for now.

We're also rewriting the application from scratch. So it's at least interesting, because we get to right all the past wrongs.

Except that we won't.

Have you ever in mid-sentence wondered to yourself why are you even talking to someone? Trying to explain something that you know he can't possibly understand, you metaphorically see the words as they leave your mouth fly right past and over that guy's head?

We have someone like that on our team now. Was hired not too long ago, and is basically an idiot. I don't know how else to phrase it. I wish it were different, it just isn't. You can explain something to him. He will nod at all the appropriate points, give you all the verbal and non-verbal cues that he is completely on board with whatever concept you happen to be talking about, and then he will return to his desk and do the complete opposite of what you asked him to do, or completely misuse the concept that you just explained, or otherwise do nothing even remotely close to what you desire him to do. Every coding standard that you have put into place? The ones he helped craft? Seemingly oblivious. "Don't do A, B, or C in your code. We will kill you during code review if you do." And during code review, we have to kill him for doing A, B, and C. "Do X, Y, and Z if you want to live." And he apparently doesn't care so much for this world, because he doesn't do X, Y, or Z. "Whatever you do, under no circumstances, do not, ever, don't even think about, are you following me?, just don't touch this code right here. Leave it alone, code around it. We will tackle that later. Do you understand? Are we clear?" And he says yes. And then he comes to me because he is having a problem tackling that code.

His code:

sYYgS.gif


All you can do:

59Vt6.gif
 
Who the fuck names a database table CertPartner but calls the primary key PartnerCertID!?!?! That is literally the most confusing way to do that possible.
 
My coworker is opposed to the Single Responsibility Principle. Of course, he doesn't know it's called that because he doesn't understand OOP at all, even though we're working in C#. (he doesn't know what an interface is or what static means, just as an example).

He asked for help in writing some code that reads data from a database, sends it to a server, and deletes it once the server confirms it has it. He was struggling putting all of that functionality into his one monolithic class. Since he's reading several different types of data, from different places, and they need to be read and deleted in different ways, I suggested that he make a class just for uploading, instantiate one for each type of data, and that it should depend on a class to do the selecting and a class to do the deleting. I drew out what I meant on the whiteboard since using words doesn't leave us on the same page. (and by draw I mean I wrote the code for the whole class on the board since he doesn't understand any kind of diagrams)

He does not like the idea of code being "hidden behind classes." He believes it makes it harder to find what a class does. He believes that having too many classes (more than 1..) makes code super complex and hard to read. He really dislikes the idea of a class having only one responsibility, and letting other components worry about their job. He thinks that is "just passing the buck". He wants all the code in one file, in one class. "without all the class garbage."

I am just tired of it. He has 10 years of experience, which he loves to remind me of, and yet he still doesn't understand anything. He refuses to learn, because he thinks anything that he doesn't already understand is stupid. He has a really bad attitude (the definition of toxic employee fits him perfectly).

Sorry, had to rant. I feel better now.
 
My coworker is opposed to the Single Responsibility Principle. Of course, he doesn't know it's called that because he doesn't understand OOP at all, even though we're working in C#. (he doesn't know what an interface is or what static means, just as an example).

He asked for help in writing some code that reads data from a database, sends it to a server, and deletes it once the server confirms it has it. He was struggling putting all of that functionality into his one monolithic class. Since he's reading several different types of data, from different places, and they need to be read and deleted in different ways, I suggested that he make a class just for uploading, instantiate one for each type of data, and that it should depend on a class to do the selecting and a class to do the deleting. I drew out what I meant on the whiteboard since using words doesn't leave us on the same page. (and by draw I mean I wrote the code for the whole class on the board since he doesn't understand any kind of diagrams)

He does not like the idea of code being "hidden behind classes." He believes it makes it harder to find what a class does. He believes that having too many classes (more than 1..) makes code super complex and hard to read. He really dislikes the idea of a class having only one responsibility, and letting other components worry about their job. He thinks that is "just passing the buck". He wants all the code in one file, in one class. "without all the class garbage."

I am just tired of it. He has 10 years of experience, which he loves to remind me of, and yet he still doesn't understand anything. He refuses to learn, because he thinks anything that he doesn't already understand is stupid. He has a really bad attitude (the definition of toxic employee fits him perfectly).

Sorry, had to rant. I feel better now.

I'm feeling you, bro.

I. Am feeling. You.
 
I seem to get this more from IT people, but I catch crap for working on scripts in gedit because it isn't vim or nano or whatever.

Also, fuck dynamic typing.
 
Status
Not open for further replies.
Top Bottom