Click here to Skip to main content
15,891,981 members

Paths to learn Web Application development?

Source: CodeProject     Posted by Kent Sharkey    Thursday, March 23, 2023 6:00pm    
A journey of a thousand web pages begins with a single angle bracket

I think I'm jumping guns here and look at things that are too advanced and I'm always missing some steps and that blocks me.



Back to all news items

 
AnswerLearn the basics first Pin
bantling24-Mar-23 3:05
bantling24-Mar-23 3:05 
Don't go hog wild learning Angular and React on the front end, or large complex frameworks like Spring and JPA in the Java world on the back end, or the NoSQL store of the day.

Instead, I would start with the following:
- PostgreSQL for a data store. Most web apps still use SQL.
- Create tables, functions, triggers, views, primary keys, foreign keys, unique keys
- Function based indexes, full text searching
- Unicode collations (eg a Latin Accent- and Case-insensitive collation)
- Surrogate key pattern
- One to one (parent row has column for child id)
- One to many (child row has column for parent id)
- Many to many (bridge table that has columns for parent and child ids where combination is unique)
- Go for backend coding
- Plain old encoding/json package to translate json -> struct and struct -> json
- Plain old database/sql package to connect to db and run queries
- Plain old net/http package for listening to http connections
- Store queries in plain .sql text files with placeholders (Postgres uses $)
- Load these .sql files at startup into global vars
- Try using the html templating system to generate web pages

Learn plain old HTML that you write by hand, and translate that HTML into a template.
Do as much as possible without any JS, and add only a little hand-coded JS as needed.

Figure out Postgres using a tool like dbeaver, then write code for your queries.
Use docker or podman to run Postgres in a container.

Write a simple Makefile to build your project into an executable.
Learn how to use provided Go linter and formatter.
Use a docker/podman container to run the Makefile, and use a multi stage build to producer an image that just runs your binary. Then use docker run to fire it up and test it out.

That's a lot of stuff, but in the easiest, simplest fashion to learn, in a backend language that is quite popular for back end apps.

Have fun Smile | :)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.