Archived

This topic is now archived and is closed to further replies.

code_fx

Writers Block

Recommended Posts

I have been programming for a while now... I dont consider my self to be an advanced programmer but I am not a novice... I know that for sure... But the past few semesters in school have been terrible... Ever since I started java I have been snow balling and I when I started c++ I would program during class, after class and as a pastime, but not java... I feel like all that time I spent to learn has been taken away and replaced with java, something that I am being forced to like... I do like it, now.... but my spark is gone... any suggestions

Share this post


Link to post
Share on other sites
You need to change your opinion on java vs C++. Java is fun, is great to debug and lets you program something quick. C++ is powerfull, advanced and "the right way to do it".
If you think like that, your spark should be back in no time
I myself use both C++ and java - depending on what I am programming.

Share this post


Link to post
Share on other sites
java is easy... well easier than c++ and seems more fun to use do to the fact it cuts out a lot of things that makes c++ complicated... thanks I never thought of it like that... I just that c++ and java but using one or the other for what is best suited for....

Share this post


Link to post
Share on other sites
I dont think he wanted to turn this into a C++ vs Java thread....

Anyway, personaly I find that my enjoyment of programming ebs in and out.

I will go for a manic programming binge for a week or two and then barly do anything for another couple of weeks.

I think that the best thing to do when you just dont feel like it is just make somthing really small, simple, and that you can complete in a day or two, and that there are few problems in making. When code just flows out of you like that, its enough to get the spark back and continue with the tougher projects that really frustrate.

Prolly most people would dissagree saying that you have to stick with the project or it will fall away and you will never complete it, and while that it true, if the diversion is very small then you can smoothly translate back to your origonal project.

Share this post


Link to post
Share on other sites
learn python (c:

That should put some fun back into what you're doing and enable you to develop designs more quickly. You'll have less time to get bored.

You'll be able to translate your ideas over to other languages and keep things moving. You can replace time critical code with your other chosen languages (ie C++), or use java components with jython.

Learn 'test first' programming. 'Dive into Python' has a good chapter on unit testing. It keeps things moving, is positive feedback. The gist is you write tests first. You make sure they fail. Then you write the code to make them pass. Once they pass you can stop. It's a very positive way of working. Read articles from objectmentor.com on Test Driven Development

Then you can refactor. (c:

All these methods are what programmers are using to keep themselves interested in what they are doing and to keep being productive.

You have a common disease but there are lots of ways to cope with it.

Pete

ps I've not made links for you as keyword searches should turn them up.

edit: added links (c:

[edited by - petewood on January 6, 2004 11:23:52 AM]

Share this post


Link to post
Share on other sites
quote:
Original post by petewood
learn python (c:

That should put some fun back into what you''re doing and enable you to develop designs more quickly. You''ll have less time to get bored.

You''ll be able to translate your ideas over to other languages and keep things moving. You can replace time critical code with your other chosen languages (ie C++), or use java components with jython.

Learn ''test first'' programming. ''Dive into Python'' has a good chapter on unit testing. It keeps things moving, is positive feedback. The gist is you write tests first. You make sure they fail. Then you write the code to make them pass. Once they pass you can stop. It''s a very positive way of working. Read articles from objectmentor.com on Test Driven Development

Then you can refactor. (c:

All these methods are what programmers are using to keep themselves interested in what they are doing and to keep being productive.

You have a common disease but there are lots of ways to cope with it.

Pete

ps I''ve not made links for you as keyword searches should turn them up.

edit: added links (c:

[edited by - petewood on January 6, 2004 11:23:52 AM]


I''m not the OP but... that sounds great, I have been looking into Python (just cause it is interpreted (sp??) and that means it compiles instant ) and I will look at your links thanks





It''s Maxd Gaming, put in an underscore and I will beat you with a rubber ducky!
{ Check out my Forum } { My First Space Art (Ever) }{ My Second Space Art (Ever) }{ My upcoming space mod for Battlefield: 1942. }
Guest Anonymous Poster
quote:
Original post by petewood
learn <a href="http://www.python.org/">python</a> (c:

That should put some fun back into what you''re doing and enable you to develop designs more quickly. You''ll have less time to get bored.

You''ll be able to translate your ideas over to other languages and keep things moving. You can replace time critical code with your other chosen languages (ie C++), or use java components with <a href="http://www.jython.org/">jython</a>.

Learn ''test first'' programming. ''Dive into Python'' has a good <a href="http://diveintopython.org/unit_testing/index.html">chapter on unit testing</a>. It keeps things moving, is positive feedback. The gist is you write tests first. You make sure they fail. Then you write the code to make them pass. Once they pass you can stop. It''s a very positive way of working. Read <a href="http://www.objectmentor.com/resources/articleIndex">articles from objectmentor.com</a> on <a href="http://www.objectmentor.com/resources/listArticles?key=topic&topic=Test%20Driven%20Development">Test Driven Development</a>

Then you can <a href="http://www.refactoring.com">refactor</a>. (c:

All these methods are what programmers are using to keep themselves interested in what they are doing and to keep being productive.

You have a common disease but there are lots of ways to cope with it.

Pete

ps I''ve not made links for you as keyword searches should turn them up.

edit: added links (c:

<SPAN CLASS=editedby>[edited by - petewood on January 6, 2004 11:23:52 AM]</SPAN>


I''m not the OP but... that sounds great, I have been looking into Python (just cause it is interpreted (sp??) and that means it compiles instant ) and I will look at your links thanks

Share this post


Link to post
Share on other sites
I love Python. Love it, love it, love it. I wrote a small networked client/server app last week in c++ that took me 2 days. I re-write both the client and server apps in python yesterday morning in 15 minutes. Both were under 30 lines of python code (less than 20% of the c++ versions).

Python has definitely brought back the fun into programming :o)


daerid | Legends | Garage Games | Spirit | Hapy | Boost | Python | Google
"Doomed to crumble, unless we grow, and strengthen our communication" - Maynard James Keenan, Tool

Share this post


Link to post
Share on other sites
Or, if you want to have some real fun coding without getting too frustrated or unmotivated, buy one of the many commercial games out there that includes easy-to-use scripting abilities. Examples would be NWN, the Freespace series, every FPS released in the last 5 years, and any Blizzard RTS. They''re easy to get into and they provide relatively instant gratification (the lack of which is what causes the "I don''t feel like coding right now" syndrome ).

- Daniel Roth,
Programmer / Web Developer

(www.rothware.com, www.cwu.edu)

Share this post


Link to post
Share on other sites
I know exactly how you feel because when I first started at the university I''m at now, we were taught OOP by learning Java. I was just like you, a C++ addict, coding night and day, but when java came it somehow completely washed away. I learned to like the versaility of Java and its uses, but I still didn''t get it back.

I can''t say that your and my situations can be solved the same way but who knows? My solution? Easy. As soon as I got some spare time on the classes or at home, I''d open up my favourite Java API and learn stuff about the OpenGL extensions for it. It''s quite great, since I knew that whatever I make in the language, it will be runnable on most computers. So, when I felt I knew enough I started a small 2D OpenGL game. With Java it went fast and was pretty painless as well and fun. When I was done it was a really fun game (a top-view action game) and all my friends loved it as well.

Also, the spark takes time. Let time pass, before you know it you''ll wake up one morning with an insane urge to program. The important thing is that while you have the block you should relax and do other things that you enjoy. Don''t worry about the block, they always go away.

Share this post


Link to post
Share on other sites