Any suggestion for the fastest way to program a simple application

depaul

Well-Known Member
OP
Member
Joined
May 21, 2014
Messages
1,219
Trophies
0
XP
2,602
Country
France
Hi guys,

I want to program a simple database application to manage my stocks. (I prefer to program it rather than download/buy a software)

I must admit I don't follow latest programming technologies news. I know there are many complex programming languages and IDE based on Java, and ASP .Net ...etc.

Do you guys know a fast way to create this? Some friends recommend me to use Windev but I have no idea!!
 

spoonm

Can count to 3.
Member
Joined
May 20, 2015
Messages
192
Trophies
0
Website
spoonm.org
XP
299
Country
Brazil
Rather than jumping on learning a tool, I'd advise you to write down what you think you'll need for the program you're creating. Something like this:

  • I need to keep track of data here and there. It has to be stored somewhere and read when I open the program.
  • I'll need a way to pass commands into the program. Either a GUI or cli. If the latter, I will need a parser.
  • The program will run on my computer and not on a server. OR the program will run on a server and I'll connect to it for usage. OR I will write both a server and a client.
You get the gist. Now, for starters, you can go read the sticky that covers programming, or do this: PHP and Python are both easy languages for you to start with. I'm much more fond of Python than I am of PHP, so I'd tell you to go with that.

If you need a database, get used to the concept and look for libraries on the programming language you chose(or even create your own). There's sqlite, there's ConfigParser/configparser(for ini's, not really databases, but they work), etc.

If you need a GUI, look up how to make simple GUIs with available libraries on your programming language of choice. For cli: get familiar with strings and start writing your parser.

You can host a database and a program on a remote server and use a web server to handle requests. If this is all you're going to do, I recommend lighttpd, as it is much lighter than Apache and nginx. Learn to configure it for usage with Python(or PHP, up to you), then:
  • Write the script that will take care of requests.
  • Make sure to write to stdin/echo/print out the page itself, as that's what's going to be sent to the client: that'll be your GUI. Sounds easier than learning how to use a library, right?
  • Write or configure a database that your script will access, if you need to.
  • Finally, if PHP: do your best to prevent XSS attacks. (The cause of XSS vulnerabilities is one of the reasons to hate PHP and call it disgusting.)
 
  • Like
Reactions: depaul
Joined
Jan 31, 2008
Messages
3,169
Trophies
2
Age
28
Location
Hinamizawa
XP
988
Country
Japan
Agreed on much of this, however instead of reinventing the wheel with your own view and model logic, I would instead recommend learning about a PHP framework like Symfony (better) or Laravel (simpler) which do much of the heavy lifting in terms of DB abstraction, componetisation and security.
 
  • Like
Reactions: depaul

spoonm

Can count to 3.
Member
Joined
May 20, 2015
Messages
192
Trophies
0
Website
spoonm.org
XP
299
Country
Brazil
Agreed on much of this, however instead of reinventing the wheel with your own view and model logic, I would instead recommend learning about a PHP framework like Symfony (better) or Laravel (simpler) which do much of the heavy lifting in terms of DB abstraction, componetisation and security.

OP's just starting on programming, though. I feel that using existing frameworks or libraries would keep him from learning the actual language, or make him dependant on the framework. An example is jQuery.

Ask Javascript developers to write what they would on a page without using jQuery. Quite a few, who started with jQuery or got too used to it, will have a hard time implementing everything in pure Javascript.
 
  • Like
Reactions: depaul
Joined
Jan 31, 2008
Messages
3,169
Trophies
2
Age
28
Location
Hinamizawa
XP
988
Country
Japan
OP's just starting on programming, though. I feel that using existing frameworks or libraries would keep him from learning the actual language, or make him dependant on the framework. An example is jQuery.

Ask Javascript developers to write what they would on a page without using jQuery. Quite a few, who started with jQuery or got too used to it, will have a hard time implementing everything in pure Javascript.
jQuery is an example of just about everything being wrong. Instead of learning the language, or good practice in the language, they learned this god object which claimed to do everything but did most things fucking wrong. I fucking hate jQuery, and it's probably amongst my most extreme views to this date. Vanilla all the way, yo.

Why I would advocate learning a framework like Symfony is that it helps to understand sensible opinionated design patterns from the ground up, Symfony's approach to MVC is very sane and it's super easy to build an application with it whilst learning. Given how the documentation is generated, in some cases it's almost required to read through source code to fully understand behaviour, which has proven itself a great way to learn.
 
  • Like
Reactions: spoonm and depaul
General chit-chat
Help Users
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm