Any suggestion for the fastest way to program a simple application

depaul

Well-Known Member
OP
Member
Joined
May 21, 2014
Messages
1,294
Trophies
0
XP
2,973
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
317
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

Frederica Bernkastel

Well-Known Member
Member
GBAtemp Patron
Joined
Jan 31, 2008
Messages
3,169
Trophies
2
Age
29
Location
Hinamizawa
XP
999
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
317
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

Frederica Bernkastel

Well-Known Member
Member
GBAtemp Patron
Joined
Jan 31, 2008
Messages
3,169
Trophies
2
Age
29
Location
Hinamizawa
XP
999
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

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • AncientBoi @ AncientBoi:
    eeewww
  • K3Nv2 @ K3Nv2:
    I thought it was the toilet
  • AncientBoi @ AncientBoi:
    okies. Time to go watch YT paranormal ghost things. L8er my luvs :D
    +1
  • K3Nv2 @ K3Nv2:
    I got a massive clue
  • BakerMan @ BakerMan:
    this mf def ain't watching ghost shit, he boutta beat his meat fr
    +1
  • K3Nv2 @ K3Nv2:
    Nah he's about to be the ghost in your bedroom
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, and leave ectoplasm all over the place
  • BakerMan @ BakerMan:

    this is him being described
    +2
  • Xdqwerty @ Xdqwerty:
    Sigh
  • Xdqwerty @ Xdqwerty:
    Yawn
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I dislike the kind of drm where you have to play single player games online all the time bc of some verification bs
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Don't use games that have Easy Anti-Cheat as its been exploited many times.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, my PC can't run most AAA games so i wont
    +1
  • Xdqwerty @ Xdqwerty:
    Most of the modern AAA games
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also heard one of the Prince of Persia games was so unfinished that it required the "24/7 online" drm so a puzzle could be done and the game could be finished. And that when the Ubisoft servers were closed the (cracked) game was impossible to finish or something like that
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's extra scummy. Ubisoft nowadays ship out incomplete games like Skull and Bones which was being worked on for nearly a decade now.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, i think they have been doing that since late 2000s
    +1
  • Xdqwerty @ Xdqwerty:
    Either that or their old games were unfinished aswell but we can't notice it
  • Psionic Roshambo @ Psionic Roshambo:
    I like that games can be fixed after the fact, hate that it's being abused via beta tests... And DLC... I was a 7800 owner back in the day and loved Impossible Mission, turns out I couldn't beat it because it was actually impossible lol
  • Psionic Roshambo @ Psionic Roshambo:
    I never knew about it at the time but a fixed version was available but you had to mail in your broken copy lol
  • Psionic Roshambo @ Psionic Roshambo:
    So that version is semi rare
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, I have a rom of the ds version of impossible mission
    Xdqwerty @ Xdqwerty: @Psionic Roshambo, I have a rom of the ds version of impossible mission