Jump to content
  • Advertisement
Sign in to follow this  
AcidZombie24

what language has least bugs in code?

This topic is 3537 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

What language help you make the least amount of runtime bugs? Most of my bugs are silly runtime bugs. The last few i remember are forgetting to push something in a stream, grabbed the wrong type of value/going into the child twice (which gave me an empty container) instead of once (which had the test values i wanted). Silly minor things like that. What language (or scripting language) is good for that?

Share this post


Link to post
Share on other sites
Advertisement
Lots of bugs in the keyboard. Must clean it regularly. And Mother tong is the best. And C cpp is T3h best! 1 |1k3 (++ f0r 64m35 4nd php f0r 53rv3r 51d3 pr06r4mm1n6.

Share this post


Link to post
Share on other sites
Quote:
Original post by AcidZombie24
forgetting to push something in a stream, grabbed the wrong type of value/going into the child twice (which gave me an empty container) instead of once (which had the test values i wanted).


I'm afraid your language choice probably isn't going to help you for those types of mistakes, if you're basically asking for the language to cover for you when you forget to do a stage of processing (pushing something in a stream).

Best thing to do would be to practice programming in the language your already using until you getter better.

Share this post


Link to post
Share on other sites
C# is probably the most programmer friendly language I'd use for gameplay programming. Other than that, it seems that your problem has more to do with code habits/design/bad practices. I code in C++ all day and hardly ever have unexpected runtime errors because I'm programming very defensively, and adding a lot of asserts/bounds checking code to detect runtime errors early on.

Share this post


Link to post
Share on other sites
Programmers for strictly typed functional programming languages such as Haskell or ML have often remarked that when the program compiles, you know it's right -- that is, that things that would be logic errors in other programming languages are compilation errors in these. I've noticed that myself, to a great extent.

Share this post


Link to post
Share on other sites
Writing tests can also help you. Do some unit tests for code you know must do specific steps and so forth.

Share this post


Link to post
Share on other sites
sometimes I feel as if I want a compiler that would automatically correct annoying little compile time bugs. Then I realise that would turn the compiler into a new version of Word. cue paperclip, "I've notice you've made an syntax error!" did you mean to type "'for(i..' or 'fork(i);'".

sorry, slight tangent there.

Share this post


Link to post
Share on other sites
Sneftel: i am going to check out Haskell.


My original post is more about two things. 1 is i am experience enough that those mistakes are the only ones i make. So which script or programming language should i use? (i use c++ 100% of the time). The other is what language is good for preventing those mistakes in general. 2) Say if i havent programmed for a long time or i am using a foreign library and multiple foreign class. I'd probably make tons of mistakes so what language is good to prevent bugs for a new programmer or a programmer that isnt experienced with the classes?

Share this post


Link to post
Share on other sites
Quote:
Original post by AcidZombie24
My original post is more about two things. 1 is i am experience enough that those mistakes are the only ones i make. So which script or programming language should i use?
Haskell would be worth a look, although unfortunately its performance and memory needs probably make it unsuitable for game development.
Quote:
Say if i havent programmed for a long time or i am using a foreign library and multiple foreign class. I'd probably make tons of mistakes so what language is good to prevent bugs for a new programmer or a programmer that isnt experienced with the classes?
C# and Java are pretty good in this regard. Java moreso: the language is so simple that it's difficult for there to be ambiguity about how the library wants you to play. Also, integrated documentation, at your fingertips in all major Java IDEs, helps out a lot.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!