Sign in to follow this  

Recovering lost skills

This topic is 1776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I used to be a game programmer. But two years ago life forced me to walk its hard way. My pc was blasted, I was poor as fuck and I had to work for money. So I quit programming.

Two years has passed, I have enough money to get a decent laptop. In fact I just bought one. Yesterday I turned on my laptop, got myself a cup of coffee, relaxed my hands on the keyboard. I fired up VS2010. Ready to rock. But then I just stared blank at the LED screen. I felt so weird. I seemed to have forgotten all my coding skills. I just couldn't get in touch anymore with the beautiful IDE. What's wrong with me?

Anyone ever felt the same? what should I do to get my game programming skill back? all my reference was hardcopies. And they've rotten in the warehouse :(

Share this post


Link to post
Share on other sites
If you've really lost how to develop, perhaps a refresher of the basics.

Implement a linked list container. Implement a generic sorting algorithm. Implement the FogBuzz problem. Etc.

These are simple problems that should get your brain back into a programming mentality.

Share this post


Link to post
Share on other sites
thx for all the suggestions, seems I just need to warm up again with some simple projects. I kinda get the hang of this now. Btw what is the up to date library that people use for handling input, windowing, setting up opengl? I used sdl back then. I heard its development was stopped in some way.

Share this post


Link to post
Share on other sites

SDL 1.2 is dead, SDL 2.0 is in fully active development. Beware that it isn't compatible, though, so if you check tutorials and such make sure to check for which version are they. Nowhere near as big of a change as was with Allegro however...

Edited by Sik_the_hedgehog

Share this post


Link to post
Share on other sites

If you've really lost how to develop, perhaps a refresher of the basics.

Implement a linked list container. Implement a generic sorting algorithm. Implement the FogBuzz problem. Etc.

These are simple problems that should get your brain back into a programming mentality.

What's FogBuzz?

Share this post


Link to post
Share on other sites

If you've really lost how to develop, perhaps a refresher of the basics.

Implement a linked list container. Implement a generic sorting algorithm. Implement the FogBuzz problem. Etc.

These are simple problems that should get your brain back into a programming mentality.

What's FogBuzz?

Sorry, I had two things on my brain at the time I typed it up.  FogBugz is a software company started by Joel Spolsky, who ran a regular column of things that included programmer tests and notes on being a great programmer, finding good companies, etc.  It was called "Joel On Software", and was a great column.

 

The problem is actually FizzBuzz:

 

Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

 

For those who are tempted to write the solution and post it, please don't post your solutions.

 

Some people can write out a correct solution in 5-10 lines of code.  Other people struggle with this problem for hours.  It is a good exercise.

Share this post


Link to post
Share on other sites

Due to the unreadability i don't think this will spoil it to anyone who can't write it :

 

<3 LINQPad

 

Enumerable.Range(1,99).Select(i=> (i%3 == 0 || i%5 == 0) ? ((i%3 == 0 && i%5 == 0 ) ? "fogbuzz" : ((i%3 == 0) ? "fog" : "buzz")) : i.ToString()).Dump()

Share this post


Link to post
Share on other sites

For those who are tempted to write the solution and post it, please don't post your solutions.

 

Due to the unreadability i don't think this will spoil it to anyone who can't write it :


<3 LINQPad

Enumerable.Range(1,99).Select(i=> (i%3 == 0 || i%5 == 0) ? ((i%3 == 0 && i%5 == 0 ) ? "fogbuzz" : ((i%3 == 0) ? "fog" : "buzz")) : i.ToString()).Dump()

 

Lol.

Share this post


Link to post
Share on other sites

 

If you've really lost how to develop, perhaps a refresher of the basics.

Implement a linked list container. Implement a generic sorting algorithm. Implement the FogBuzz problem. Etc.

These are simple problems that should get your brain back into a programming mentality.

What's FogBuzz?

Sorry, I had two things on my brain at the time I typed it up.  FogBugz is a software company started by Joel Spolsky, who ran a regular column of things that included programmer tests and notes on being a great programmer, finding good companies, etc.  It was called "Joel On Software", and was a great column.

 

The problem is actually FizzBuzz:

 

Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz".

 

For those who are tempted to write the solution and post it, please don't post your solutions.

 

Some people can write out a correct solution in 5-10 lines of code.  Other people struggle with this problem for hours.  It is a good exercise.

Cool, thanks.  Sounds like a fun assignment for me to solve in Lisp :) .

Share this post


Link to post
Share on other sites

Due to the unreadability i don't think this will spoil it to anyone who can't write it :

 

<3 LINQPad

 

Enumerable.Range(1,99).Select(i=> (i%3 == 0 || i%5 == 0) ? ((i%3 == 0 && i%5 == 0 ) ? "fogbuzz" : ((i%3 == 0) ? "fog" : "buzz")) : i.ToString()).Dump()

I think you underestimate the legibility of that code.  although it is a very nice one-line for the solution.

 

also, that problem just seems to be an exercise in understanding the mod operation, I think any programmer who understands it's use would understand how to write a trivial solution.

Edited by slicer4ever

Share this post


Link to post
Share on other sites

that problem just seems to be an exercise in understanding the mod operation, I think any programmer who understands it's use would understand how to write a trivial solution.

Seemingly so, yes.

However in the hundreds of places it has been posted online and the thousands of responses by people who cannot resist posting their solution attempts, it has shown to be much more difficult in practice than it seems at first glance.

It is surprisingly easy to get your solution wrong on the first attempt.

Share this post


Link to post
Share on other sites

It's a bit of a specific problem as i can see it being obvious to game programmers but many other programming fields deal surprising little with any form of operations on numbers, even the most trivial ones (most LoB apps for exemple).

I'm fairly sure if i asked my previous coworkers some of them wouldn't even know about the % operator.

Share this post


Link to post
Share on other sites

This topic is 1776 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this