Discussion Locked

Structured programming in C/C++ & JAVA?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I'm a new programmer and I'm having some problems with knowing how to properly structure programs, especially from data input/processing aspects. I have a few books on C/C++ and JAVA programming which don't cover the proper methodologies whenbuilding programs.

I'm looking for some good documentation or tips on "How to plan & structure" my programs in the "best and effective" manner!? There's a lot of code samples out there but I'm looking for methods and knowledge to have prior tostart coding!

I'd appreciate any of your comments/help!

thanks!

5 replies

by jay eckles

Go to your local public university or community college and take a course on structured programming (often the introductory Computer Science course) and software engineering (it might be called software engineering, software development methodology,software design methods, or something similar). It will cost a little money and take a little time, but I guarantee that you will not regret it. You can not be an effective programmer without having the right foundation.

Structured programming will teach you how to write code that's efficient and easy for others to read - basically how to avoid spaghetti code. Software engineering will teach you about the development life cycle and the steps involved in developign software: requirements gathering and analysis, design, implementation, testing, and transition. Right now you only know about implementation, and that's just one (and probably the easiest) of five major phases in software development.

Barring a class in a structured educational environment -- which I highly recommend -- search for introductory information on these topics on the web.

Good luck.

Jay Eckles

by cnmn

Hi I can give some tips as it comes to the
creation of classes:
1.Ask yourself what the program must do.(As if
you were a programmer asking a client what he
wants the program to do)
2.Find out what objects appear in your program
and ask yourself who does what to whom and what
result does it produce(e.g. clicking button
makes label turn red)
3.Based on point 2 determine what are an objects
charateristics: what does it do(methods) and
what does it have (data members)
4.Inheritance or containment:Ask yourself is the
object an object of type B or does it contain
one or none of the above (do this all and only
the objects which appear in your class.
5.Take your time
All the best!

This discussion is closed to new replies.