• 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.
CrankyJay said:
VS 2010 is pretty clunky but coming from VS6 to this is still much better....and I really enjoy WPF. What specifically don't you like about it?

I haven't tried it too much from a programming standpoint- more from an end-user-usability standpoint.

I can't think of a single WPF application I've used that performed well. VS2010 is written in WPF too :D.
 
Mister Zimbu said:
I haven't tried it too much from a programming standpoint- more from an end-user-usability standpoint.

I can't think of a single WPF application I've used that performed well. VS2010 is written in WPF too :D.

Is it? I know Expression Blend was, but I didn't know about VS 2010.

And sure, it's easy to make WPF run like shit if you're not smart about design choices.

edit: Oh snap, it is. Good call.
 
Genesis Knight said:
I've taken a lot of classes with Java and I do some C# coding at my internship. My university doesn't even have a dedicated C/C++ class that I'm aware of.

What's funny is that C/C++ are more often offered to college level courses or as non-computer engineering electives, rather than to CSI, SEG, or CEG students.
 
TheExodu5 said:
What's funny is that C/C++ are more often offered to college level courses or as non-computer engineering electives, rather than to CSI, SEG, or CEG students.
Same thing for my university. All engineers gotta take C programming course first year except for CSI, SEG and CEG. I really feel sorry for them.
 
survivor said:
Same thing for my university. All engineers gotta take C programming course first year except for CSI, SEG and CEG. I really feel sorry for them.
I hear being a TA and marking the assignments for that course is hilarious.
 
So what text editor/IDE does everyone use? I've been using Notepad++ but last night I found Komodo Edit and fell head over heels. It was love at first keystroke.
 
Andrex said:
So what text editor/IDE does everyone use? I've been using Notepad++ but last night I found Komodo Edit and fell head over heels. It was love at first keystroke.
I was reading the description and then I saw "customizable syntax [END OF LINE] ....coloring" I was like "WHAT" for a second there
axfDd.gif


I wonder how that would work.
 
Slavik81 said:
I hear being a TA and marking the assignments for that course is hilarious.
Funny story since my friend is currently taking that class. They had to do a Tic Tac Toe assignment and somehow the majority of class got the solution to the assignment from last semester. And it was the solution posted by the professor. Most people just blindly copied it and ended up getting zeros. I mean if you gonna copy at least try to change the variables names.
 
upandaway said:
I was reading the description and then I saw "customizable syntax [END OF LINE] ....coloring" I was like "WHAT" for a second there
axfDd.gif


I wonder how that would work.

Easy, you invent your own language! :P

I've actually been toying with the syntax for my own language for a few years but I can never decide which parts I want to *cough* "draw inspiration" from other languages for.
 
While minor, I get really annoyed when I see "Array[i++]" in code. I know what it means, I get why it works, but I know it is just going to confuse people, makes it harder to read, and takes just as long once turned to assembly if it was two lines. Rarely is it used in a situation where you need i incremented at that very line.

Also, now that I think about it, I want to know, would this work?
Code:
while(something)
{
     //Move All elements of an array up 1
     Array[i++] = Array [i]
}
 
ronito said:
The problem is that a lot of companies think "Good developer==Good project manager" or "Good Project Manager == Good programming manager."

Both are disastrous. It takes a different kind of person to be able to run a technical track. Get someone who's too technical and egotistic and they'll micromanage and second guess their employees until their employees can't be efficient. Further they might be able to set good technical direction but they might be indecisive, or play favorites, or have gold fish memory.

Get someone that's not technical enough and the developers wont respect them. They'll set bad technical direction. Worst case they might be decisive but will make decisions completely divorced from reality thereby demoralizing their developers until they leave in frustration or have to keep checking for permission with the boss until they're no longer effective.

For me I find that having a project manager that's functional and an architect that's technical and having them be separate but equal tends to be ideal so long as the arch and PM mesh well. This is by far the way I prefer to run things. The architect keeps the PM rooted in reality and sets the technical direction and takes care of things that are too technical for PMs while the PM deals with the meetings and business/people decisions that the architect doesn't really care about/doesn't have the acumen to deal with. If I can't get that then great care must be taken as to who will lead because, frankly, most companies get it wrong.

Even then people forget that programming is a different beast. It's like building a skyscraper and having the location of the rooms change every couple of days. Home builders wouldn't stand for it, engineers would never think of it. But we do just that in programming as a matter of course. Further people forget the truth that in programming at your worst you can do a lot of damage, but even the best programmer cannot guarantee success.

You deserve some fine cookies for this post.
 
Kalnos said:
What do you think? Just try to step through it with a test case. It will populate the whole array with whatever the value of the first field in the array is.
I.E.

Array[0] = 1
Array[1] = 2
Array[2] = 2

Assuming the integer i started at a value of 0, That code would say:

Array[0 + 1] = Array[0] = 1
i++;
Array[1 + 1] = Array[1] = 1
i++;
etc

It does work, mostly. It doesn't wrap though.

Array[0] = Array[1];
Array[1] = Array[2];

etc

i++ returns i and then sets i = i+1 so the right side will access the next element in the array.
 
Drkirby said:
While minor, I get really annoyed when I see "Array[i++]" in code. I know what it means, I get why it works, but I know it is just going to confuse people, makes it harder to read, and takes just as long once turned to assembly if it was two lines. Rarely is it used in a situation where you need i incremented at that very line.

Also, now that I think about it, I want to know, would this work?
Code:
while(something)
{
     //Move All elements of an array up 1
     Array[i++] = Array [i]
}

Actually, this is not OK---it's undefined behavior.

See:
http://c-faq.com/expr/evalorder1.html
http://en.wikipedia.org/wiki/Sequence_points
 
Actually, this is not OK---it's undefined behavior.
So I am even more right to be upset when I see it pop up in code.

I have a question for all of you, did you go for a Masters Degree in your field, and when did you get one.
 
Drkirby said:
So I am even more right to be upset when I see it pop up in code.

I have a question for all of you, did you go for a Masters Degree in your field, and when did you get one.
Bachelors here, then straight into the work force about 3 years ago.
 
mike23 said:
It does work, mostly. It doesn't wrap though.

Array[0] = Array[1];
Array[1] = Array[2];

etc

i++ returns i and then sets i = i+1 so the right side will access the next element in the array.

Whoops, yeah.

I just remembered that i++ worked normally in array brackets, thanks. Anyway, there are much easier ways to do this for Dr. Kirby's sake. See: List<>, Vector<>, using another array for the copy, or just using a pre-defined function.

Also, to answer Dr. Kirby, I'm on a year long co-op right now and I'm nearly done (like 20/30 hours) away from a bachelors. Masters should be good though considering it's a choice between a thesis or a project (hmm, I wonder which most people choose?).
 
Drkirby said:
So I am even more right to be upset when I see it pop up in code.

I have a question for all of you, did you go for a Masters Degree in your field, and when did you get one.

Hell nah I didn't get my Masters. Plenty of dough around for those with just Bachelors. And I haven't seen a whole lot of jobs that require one.

Not knocking a Masters by any means. If someone wants one, by all means go get it, and a PhD too.
 
Drkirby said:
So I am even more right to be upset when I see it pop up in code.

I have a question for all of you, did you go for a Masters Degree in your field, and when did you get one.
I studied music.
And frankly there are SO may people out there with masters degress that unless they're from like MIT or something that it's sorta not worth it.

I had friend put it best. A masters will get you a better start on the corporate ladder. Honestly I would say I know far more master degree holders that I would never hire than ones I would.
 
I got a Bachelors degree and went straight into the work force, and then 8 years later started pursuing a Masters degree because my employer is gonna pay for it, so why the hell not?

With the economy in the crapper and a few years of crappy 3-4% raises, having them pay for school is like an extra benefit. :D
 
deadbeef said:
I got a Bachelors degree and went straight into the work force, and then 8 years later started pursuing a Masters degree because my employer is gonna pay for it, so why the hell not?

With the economy in the crapper and a few years of crappy 3-4% raises, having them pay for school is like an extra benefit. :D
Yeah I would say if your employer will pay for it. Why not?
 
Visual Studio for C#/C++
Flash for AS3
Notepad++ for HTML/CSS
Monodevelop when I'm working in Unity
 
Emacs, Xcode, Eclipse

Got a M.Eng in 2002 largely due to me not planning out my bachelors' well enough. I had more classes I had to take and couldn't afford another semester, but if I did M.Eng it would be subsidized through another program. So yeah, I'm an idiot.
 
Sorry for interrupting conversations, but I have a few questions for some of you if you don't mind.

I'm currently in high school and I'm seriously considering going into this field or animation. Unfortunately, my guidance counselors know nothing about this field and I figured I need to ask for advice elsewhere. I really want to get into the game industry, for the work environment really, but I won't limit myself to that.

Is it worth going to a school like Full Sail or the Drexel University programs? This is where my guidance counselors recommended. What are the downsides to only attending those schools? Would any non-game related business take my degree seriously? (What colleges/universities would you recommended?)

My only experience programming would be a very little HTML and Flash. Before going to a college or university what languages should I learn or become familiar with? What is the best way to learn them? With the right references I can teach myself, what references would you recommend, books, websites ect.?

Again, sorry for interrupting conversation, but I would love some answers so I don't blindly make a decision. Thanks for your help in advance if anyone can answer or help!
 
My recommendation:

Go to a normal 4 year state college and work for a degree in your choosing, which I would guess would be art related in your case. If it's programming, I would major in Computer Science, Computer Engineering, Software Engineering or Math/Physics. I would go for a degree that's general enough so that you could apply for work in many industries. Then, on your spare time, I would work on a portfolio of game related content since that appears to be your interest.

The portfolio is huge here, especially for an artist/programmer. As for what you should already know going in, it's hard to say. I feel that this field is dominated by self-driven people, so I would say that you need to do a lot of self-teaching, and perhaps never stop. Personal projects are huge.
 
Slavik81 said:
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.
I did something very similar. Prep your data, if you can, by turning the lat/Lon from floating point to integer before performing the calculations. I was able to increase performance by several orders of magnitude by doing all the work in integers, then restoring the decimal before storing the final result. Was a lot of extra work but I hit my goals.

The rant part of this is that the performance goal was ridiculous. The customer wanted all computations done in less than the time it took a tech to move from one window to the next. Because they might get bored or something and productivity would decrease.
 
I think you need to first figure out if you want to do animation or software development. They are very different, and you won't be able to transition easily from one to the other part of the way through your education.

Do a little soul searching and figure that out. Think hard about it. If you don't think that the in's and out's of how a computer works fascinate you, perhaps software engineering isn't for you.
 
poweld said:
I think you need to first figure out if you want to do animation or software development. They are very different, and you won't be able to transition easily from one to the other part of the way through your education.

Do a little soul searching and figure that out. Think hard about it. If you don't think that the in's and out's of how a computer works fascinate you, perhaps software engineering isn't for you.


Yea, I understand. I guess I need to just do a little of each before moving on to college or university.

With that note, does anyone have book/resource suggestions to teach me more about the topics (Animation or Programming) as I plan on ordering a few things from amazon, and if I need to order any books or software now would be the perfect time.
 
User complains about corrupted data because a report run last year returned different results than a report run yesterday.

Pop open the page displaying that data, Last Updated: March of this year, Updated By: The user who complained, Comment: *the exact change they pointed out as corruption* done by *username*.

Mumble mumble.
 
Bah, so how does one find out for sure if a particular game idea has already been done without potentially giving away your idea to other developers?

I've made what I think is a pretty cool concept for a game. It's in a rough playable state now, and I've been working on it in little bits at a time.

Now, I haven't seen anything else quite like it, and that's what sort-of worries me. If I do have a nice original idea on my hands, I can't just show it off because someone else may go ahead and rip it off before I ever complete it.

However, if it does already exist as a game idea, there's no real point in my continuing, as I may be making software that infringes on someone else's work.

Grumble, grumble.
 
Ecrofirt said:
Bah, so how does one find out for sure if a particular game idea has already been done without potentially giving away your idea to other developers?

I've made what I think is a pretty cool concept for a game. It's in a rough playable state now, and I've been working on it in little bits at a time.

Now, I haven't seen anything else quite like it, and that's what sort-of worries me. If I do have a nice original idea on my hands, I can't just show it off because someone else may go ahead and rip it off before I ever complete it.

However, if it does already exist as a game idea, there's no real point in my continuing, as I may be making software that infringes on someone else's work.

Grumble, grumble.
o-capcom-responds-to-maxplosion-splosion-man-controversy.jpg

Not sure what you can really do about it, unfortunately. You can copyright code, but an idea is harder.
 
Ecrofirt said:
Bah, so how does one find out for sure if a particular game idea has already been done without potentially giving away your idea to other developers?

I've made what I think is a pretty cool concept for a game. It's in a rough playable state now, and I've been working on it in little bits at a time.

Now, I haven't seen anything else quite like it, and that's what sort-of worries me. If I do have a nice original idea on my hands, I can't just show it off because someone else may go ahead and rip it off before I ever complete it.

However, if it does already exist as a game idea, there's no real point in my continuing, as I may be making software that infringes on someone else's work.

Grumble, grumble.

Interesting, I have the same situation... but I put everything on a mega design document. (The project is kinda big, and I don't have the free time to program such thing)
 
you need to share your ideas, it's the only way to improve'em.

otherwise you'll end up with a crappy product or no product at all.

on a side note, my boss finally decided that he's not in the mood for hiring someone new, so it turns out that the interview i made were a waste of my time

who am i kidding, i had a bunch of fun XD
 
Andrex said:
So what text editor/IDE does everyone use? I've been using Notepad++ but last night I found Komodo Edit and fell head over heels. It was love at first keystroke.

Kdevelop 4 if I'm doing C++,
Unity for Dudebro (because we have to)
Vim for everything else
 
Ecrofirt said:
Bah, so how does one find out for sure if a particular game idea has already been done without potentially giving away your idea to other developers?

I've made what I think is a pretty cool concept for a game. It's in a rough playable state now, and I've been working on it in little bits at a time.

Now, I haven't seen anything else quite like it, and that's what sort-of worries me. If I do have a nice original idea on my hands, I can't just show it off because someone else may go ahead and rip it off before I ever complete it.

However, if it does already exist as a game idea, there's no real point in my continuing, as I may be making software that infringes on someone else's work.

Grumble, grumble.

You can't copyright game ideas. There's almost no way you'll be infringing on anything. The worst possibility is that it might look like a rip-off or clone.
 
So what text editor/IDE does everyone use? I've been using Notepad++ but last night I found Komodo Edit and fell head over heels. It was love at first keystroke.

zend studio (with zend server) if i'm doing PHP
and xcode if i'm doing objective-c
 
Alright guys, I'm doing a Lab for my CompSci class and this is my first time using GUI's and things aren't going my way so far. Basically, I have 3 buttons at the top that will change the center background to the corresponding color and 3 radio buttons on the bottom that will change the text to that corresponding color. Now, my window shows up with all 6 buttons and the text but clicking any of the buttons doesn't do squat. i've looked through it a bunch of times but can't figure out what exactly it is that I'm doing wrong. Here is my code, and no there arent any comments right now. I only tend to add them in when I'm cleaning it up before handing it in. Sorry for the super long post

Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class ColorFactory extends JFrame
{
	private JPanel panel1;
	private JPanel panel2;
	private JPanel center;
	private JButton red;
	private JButton orange;
	private JButton yellow; 
	private JRadioButton green;
	private JRadioButton blue;
	private JRadioButton cyan;
	private ButtonGroup radio;
	private JLabel messageLabel;
	private final int FRAME_WIDTH = 500;
	private final int FRAME_HEIGHT = 300;
	
	public ColorFactory()
	{
		setTitle("Color Factory");
		setSize(FRAME_WIDTH, FRAME_HEIGHT);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLayout(new BorderLayout());
		messageLabel = new JLabel("Top buttons change the panel color and bottom radio buttons change the text color.");
		buildPanelC();
		buildPanel1();
		buildPanel2();
		setVisible(true);
	}
	private void buildPanelC()
	{
		center = new JPanel();
		center.setBackground(Color.WHITE);
		center.setLayout(new FlowLayout());
		center.add(messageLabel);
		add(center, BorderLayout.CENTER);
	}
	private void buildPanel1()
	{
		panel1=new JPanel();
		panel1.setBackground(Color.WHITE);
		panel1.setLayout(new FlowLayout());
		red = new JButton("Red");
		orange = new JButton("Orange");
		yellow = new JButton("Yellow");
		red.setBackground(Color.RED);
		orange.setBackground(Color.ORANGE);
		yellow.setBackground(Color.YELLOW);
		red.addActionListener(new ButtonListener());
		orange.addActionListener(new ButtonListener());
		yellow.addActionListener(new ButtonListener());
		panel1.add(red);
		panel1.add(orange);
		panel1.add(yellow);
		add(panel1, BorderLayout.NORTH);
	}
	private class ButtonListener implements ActionListener
	{
		public void actionPerformed(ActionEvent act)
		{
			String actionCommand = act.getActionCommand();
			if(actionCommand.equals("R"))
			{
				center.setBackground(Color.RED);
			}
			else 
			{	
				if(actionCommand.equals("O"))
				{
					center.setBackground(Color.ORANGE);
				}
				 else
				{
					if(actionCommand.equals("Y"))
					{
						center.setBackground(Color.YELLOW);
					}
				}
			}	
		}
	}
	private void buildPanel2()
	{
		panel2 = new JPanel();
		panel2.setBackground(Color.WHITE);
		panel2.setLayout(new FlowLayout());
		green = new JRadioButton("Green");
		blue = new JRadioButton("Blue");
		cyan = new JRadioButton("Cyan");
		green.setForeground(Color.GREEN);
		blue.setForeground(Color.BLUE);
        cyan.setForeground(Color.CYAN);
		radio = new ButtonGroup();
		radio.add(green);
		radio.add(blue);
		radio.add(cyan);
		green.addActionListener(new RadioButtonListener());
		blue.addActionListener(new RadioButtonListener());
		cyan.addActionListener(new RadioButtonListener());
		panel2.add(green);
		panel2.add(blue);
		panel2.add(cyan);
		add(panel2, BorderLayout.SOUTH);
	}
	private class RadioButtonListener implements ActionListener
	{
		public void actionPerformed(ActionEvent act)
		{
			if(act.getSource() == green)
			{
				center.setForeground(Color.GREEN);
			}
			else 
			{
				if (act.getSource()==blue)
				{
					center.setForeground(Color.BLUE);
				}
				else
				{
					if (act.getSource()==cyan)
					{
						center.setForeground(Color.CYAN);
					}
				}
			}
		}
	}
	public static void main(String[] args)
	{
		ColorFactory cF = new ColorFactory();
	}
}
 
BLSwagger10 said:
Alright guys, I'm doing a Lab for my CompSci class and this is my first time using GUI's and things aren't going my way so far. Basically, I have 3 buttons at the top that will change the center background to the corresponding color and 3 radio buttons on the bottom that will change the text to that corresponding color. Now, my window shows up with all 6 buttons and the text but clicking any of the buttons doesn't do squat. i've looked through it a bunch of times but can't figure out what exactly it is that I'm doing wrong. Here is my code, and no there arent any comments right now. I only tend to add them in when I'm cleaning it up before handing it in. Sorry for the super long post
First of all, one side note: use "else if" statements instead of all your embedded "else" then "if"s. It will clean it up a bit.

Second, toss in a command line debug statement into your ButtonListener and RadioButtonListener to see what ActionEvent is being received.

I'm not versed in Java or GUI code, but it also seems odd that your main just instantiates your object and then reaches the end of the control block. I'd think you'd need some sort of loop...
 
argh. Lost another good developer yesterday.
I wish him well, but a good developer is hard to come by even when you find one you have to grow them. What a waste. oh well.
 
Status
Not open for further replies.
Top Bottom