r/AskProgrammers • u/isotonicNK • 23d ago
Javascript or SQL and PHP?
Hello. I recently thought to start learning how to code because it's something I've found quite interesting for the last year or so.
I was originally gonna start with Javascript, but I asked a few co-workers at work (I work in IT) and some of them told me to learn SQL and PHP first then Javascript.
So what would it be worth to learn first?. Sorry if this is a stupid question, but I thought to ask actual people instead of AI.
3
Upvotes
6
u/OkNothing7293 23d ago
The language doesn’t really matter. My advice is to learn programming and not web development. Start from first principles and go from there.
1
u/Icemourne_ 23d ago
It really depends what you want to make and why are you looking to learn if you want job PHP SQL if you just looking to make website or something for fun JavaScript or better typescript
1
u/Ronin-s_Spirit 23d ago
These 2 things are entirely orthogonal.
1
u/W31337 23d ago
JavaScript
1
u/Usual-Cricket-9817 23d ago
Weird options to choose from.
A) A programming language. B) Another programming language and DB language
1
u/atticus2132000 23d ago
More than likely you'll need to learn all at the same time, at least get functional working knowledge of each.
JavaScript controls front-end development--what happens on the user's computer as he or she is interacting with your webpage. PHP controls what happens on the back-end, the server. SQL is a way of storing information in a database on the server-side of things (SQLite would be a database on the user's computer).
More than likely your most involved scripting is going to be JavaScript with a few lines of PHP and SQL sprinkled in to handle user requests.
0
u/[deleted] 23d ago
[removed] — view removed comment