LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-23-2013, 11:56 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Rep: Reputation: 32
How to approach creating applications


Can someone recommend me a book that explains how to approach actually creating programs? Not for any particular language, but just general programming. I understand loops and variables and functions and arrays and all that stuff, it's just putting it all together to form the concept I have in my head into the program I want to create that's the problem.

Thanks.
 
Old 09-24-2013, 12:14 AM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
I think that you will find that to a large extent the language will both depend on and constrain how you write your application.

For example, if it is a web application then you will probably use a completely different approach than if it is a standalone desktop application.

That said, for general development of even simple applications I find some level of UML modeling to be more than helpful. If you are not familiar with the UML then some simple searches should turn up some helpful tutorials. Many UML resources will probably seem over complicated, so look for the ones that jump off the page at you shouting, "I am simple and obvious!". Think of it as full-featured flow charting, and look for resources that take that level of view. Search for terms like "Use case", "Activity" and "Sequence" in a UML context.

A quick search turned up this one, looks about right: UML Tutorial.

The important point is this - model your application first, write code later! Without a model, what are you writing?

Also, if your application makes use of a database then you will need to decide what features are best performed in the query language and which belong in the API code.

Anything worth writing is worth building on the object model (OOP, object oriented programming, etc.), so searcch online for object model tutorials (no flames please! ).

Actually there are a number of development methodologies, and tools that use them. I usually follow what is called a Use Case Driven Mehtod - search online for that and others. It is not practical to try to master them all, so mostly do a little reading on each one that you find, explore further the ones that make most sense to you.

Also, use available tools as they are needed, but don't spend a lot of time looking for a magic development environment or something to do it all for you - there is no such thing! Learn the basics, learn the necessary languages for your project and get it going at the lowest level first, hands on, then grow your tools as you grow your project.

Good luck!

Last edited by astrogeek; 09-24-2013 at 12:21 AM.
 
1 members found this post helpful.
Old 09-24-2013, 12:37 AM   #3
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by hedron View Post
Can someone recommend me a book that explains how to approach actually creating programs? Not for any particular language, but just general programming. I understand loops and variables and functions and arrays and all that stuff, it's just putting it all together to form the concept I have in my head into the program I want to create that's the problem.

Thanks.
Start off by deciding what you want the program to do (and don't just say "play starwars" ).

Break the program down into smaller subprograms (objects or tasks - depending on what seems more natural). Figure out how you want the program to interact with the user and what you want it to do behind the scenes.

If you are writing a gui app then you have a lot more learning to do than if you stick with text.

If you give an example of what you want to write we can be more specific.

Last edited by psionl0; 09-24-2013 at 12:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some unwanted processes multiply themselves, applications time out and swap usage approach 100% blecins Linux - Server 3 01-28-2012 01:40 AM
Creating Applications Moogey Linux - Software 4 10-30-2005 03:22 PM
help creating .so and linking into other applications (c++) qwijibow Programming 3 12-09-2004 09:32 AM
creating shortcuts for WINE applications? cloids Linux - General 2 01-11-2004 04:51 PM
Creating Shortcuts for Applications Creole Red Hat 1 09-24-2003 08:42 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration