Jump to content
  • Advertisement
Sign in to follow this  
Hazardx

Data Types

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

When programmers use data types in their codes do they usually have charts explaining memory size and value for it or when programmers get skilled enough they are able to memorize them? Like i have to keep constantly look at a chart. Another question i have is do you have a chart or what kind of thing do you use to help you for this?

Share this post


Link to post
Share on other sites
Advertisement
Well, it does get tricky when you start doing visual C++. You gotta learn new data types that are far more complicated then our regular data types in C++.

Share this post


Link to post
Share on other sites
You have your engine guys typedef all the little things, like u32 s32 f32 f64 VEC3 etc. so that you have a set
grouping of data types that you know what all the sizes are. And then you have coding standards that include things like
marking every 16/32/64 bytes of a struct with a comment.
This gets important on some of the bigger structures, and really important so you can keep track of any padding you might need
to force (for save files and the like).

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!