• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
game of thought

how to unlearn a language

11 posts in this topic

for maybe a year now i have been writing very messy code in C++. I like the language but i am beginning to encounter very big problems in my code, mainly due to the way a write it and they way i have learned it. I like C++ and i would like to "relearn". How do you suggest i do that, because i don't think it is as easy as just reading the tutorials over again.

Thank you for your time
1

Share this post


Link to post
Share on other sites
I reccomend getting a good book about C++ programming patterns and object oriented design. There is a lot of nice youtube series dedicated to solely this. Also, try to get a book updated to the neew C++11 standard and read through it. Practice every day. My goal is to make one small simulation every day that is useful using good object oriented design. Also, read the books servant of the lord mentioned. They are awesomesauce.
0

Share this post


Link to post
Share on other sites
Messy code means you have some code design issues, because most programming language have some very basic concepts in common. But every language has its own strengths and weaknesses. You have to play for what c++ offers you and for that you must know some design principles. Read [url="http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876/ref=sr_1_1?s=books&ie=UTF8&qid=1348127762&sr=1-1&keywords=Effective+c%2B%2B"]Effective C++[/url]. Hope that makes your messy programs go away :D
0

Share this post


Link to post
Share on other sites
[quote name='kazisami' timestamp='1348127810' post='4981956']
Messy code means you have some code design issues, because most programming language have some very basic concepts in common. But every language has its own strengths and weaknesses. You have to play for what c++ offers you and for that you must know some design principles. Read [url="http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876/ref=sr_1_1?s=books&ie=UTF8&qid=1348127762&sr=1-1&keywords=Effective+c%2B%2B"]Effective C++[/url]. Hope that makes your messy programs go away [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]
[/quote]
Most programming languages actually share most of their concepts not just a few basic ones, it is the syntax that's different and what's considered to be part of the Standard Library that wildly changes between languages.

For example I hadn't touched Python ever two weeks ago, but I have been programming in C++ and C# for years and I feel fairly confident about my ability to solve a non trivial problem in python after two weeks. I know Python is easy to learn(and there is stuff I don't like about the language, like duck typing and no headers), but this concept goes for other languages as well. As soon as you get fairly competent in one language switching to another one that doesn't use a different paradigm should be really easy once you get the syntax of that language.
0

Share this post


Link to post
Share on other sites
[quote name='NightCreature83' timestamp='1348141925' post='4981992']
Most programming languages actually share most of their concepts not just a few basic ones, it is the syntax that's different and what's considered to be part of the Standard Library that wildly changes between languages.
[/quote]

No offense, but have you ever heard of Lisp, Haskell etc. They are multi-paradigm language, you can do OOP, functional, generic etc with those languages, they just have the basics of programming in common with other languages, like- variables, functions etc in common. And remember, only the core of the basics are common, like- what is a class? But every language defines its own class definitions not only by differing syntax but also changing the way of doing it. Just consider that, you are a c++ programmer and you know nothing about Java, i tell you to write a class in Java and hide its implementation like a .cpp hides the implementation of a .h. If i only give you Javadocs, it is certainly not possible to do. what about pointers in Java :D

Last word, its my opinion and i believe that some things are common but they are so basic that you need to dug a little deep in every language to do something with that.
0

Share this post


Link to post
Share on other sites
I had the same problem as you OP. C++ was my first language, however after using it for quite awhile I would still have issues with what I call "macro code", or code that dictates how larger parts of a program interact. For me that encapsulated how classes should interact with each other, inheritance, doing #includes correctly, and a few other tidbits. Unfortunately I have never found a text that really teaches how to create good macro code.

Here's how I dealt with it and maybe it will help you out.

Eventually what happened is I started programming in another OOP language, C#. For C#, OOP is very much more set in stone, and after programming a medium sized project with it, I learned more about OOP than I had learned in almost a year and a half with C++. However this didn't solve my issues with learning how to prevent #include circles, I eventually said 'screw it' and switched over to C# completely.

To this day I've never had to tolerate C++'s god-awful translation unit system since then.

[spoiler]I promise I dont work for microsoft[/spoiler]
0

Share this post


Link to post
Share on other sites

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  
Followers 0