A Newbie's Perspective - Developing Structured Programs
Welcome!
Hello again my fellow noobs! Let's talk about developing structured programs. What is this that I speak of??? Well structured programs are programming paradigms that facilitate the creation of programs. If we recall back to the previous blog I wrote about Java, we got to learn about object-oriented programming (OOP). Since we know OOP's is a paradigm to designing a program using classes and objects, it is safe to say that we can use this to develop structured programs with readable code and reusable components. When trying to figure out what codes to use, it is first important to understand algorithmic design and data structure techniques as they both work together. Algorithmic design uses sets of instructions to perform tasks while data structure organizes, processes, retrieves, and stores data.
But what techniques are worth mentioning when developing? Programs consist of a lot of coding and some algorithms and data structure designs may be better than others but it all comes down to what works for you, the team or the product. For instance, for a company that sells goods, they would prefer last in, first out method for handling data structures because it helps account for how inventory is being sold and helps record the most recently produced items as sold first. For the same company that sells goods, they would prefer first in, first out method for handling data structures because it helps cycle through stocks, keeping the newest and freshest always on top. With both these methods in mind, it is important to understand what the purpose of the program is being used for. Once you find out what that purpose is, you can then add in the coding that helps bring that certain program to life.
References
Geeksforgeeks(2022). FIFO (First-In-First-Out) approach in programming. Geeksforgeeks. https://www.geeksforgeeks.org/fifo-first-in-first-out-approach-in-programming/
Geeksforgeeks. (2022). LIFO (Last-In-First-Out) approach in programming. Geeksforgeeks. https://www.geeksforgeeks.org/lifo-last-in-first-out-approach-in-programming/
Lysecky, R., Vahid, F., Lysecky, S., & Givargis, T. (2015). Data structures essentials. zyBooks.
Comments
Post a Comment