Skip to main content

Command Palette

Search for a command to run...

A novice programmer looks at an intimidating technological landscape

Updated
3 min read

Hi,

I started to learn PHP and therefore came in direct contact with HTML, CSS, and JavaScript.

HTML looks manageable, but even CSS requires many decisions that I can't answer as a beginner. JavaScript looks a lot scarier, and I don't even want to talk about the TypeScript hype.

Most of the time, I find answers on MDN, but as soon as it is not about language and syntax anymore, the world outside seems to want to eat me up – alive.

I found HTMLtidy, but I can hardly find any references or projects where HTMLtidy is used; it seems that HTML is solved.

CSS is already another challenge.

There is not only CSS, but also Less, Sass, SCSS, Stylus, PostCSS, CSS-next, and many more.

Some of these tools need Node.js, others Ruby. As a PHP developer, it is not answerable why I need Node.js or Ruby to use CSS. Why can't I stay with PHP to solve CSS?

Browsers don't seem to handle CSS in a very consistent way, and so I need tools that create vendor prefixes, minimize CSS, Linting, or remove unused definitions. With the latter, however, the tools often fail me. How can a tool know which CSS is used anyway?

JavaScript is a different beast, a monster like from a horror movie.

Babel, ESLint, ECMAScript, ES6, Node.js, Browserify, Webpack, Parcel, Rollup, npm, yarn, Chrome DevTools, Tree-Shacking, remove unused code, Polyfills, V8, SpiderMonkey, and whatnot.

Again, I can't answer why most tools need Node.js, Ruby, or Go and why I can't just stay in my PHP world.

The biggest websites are written in PHP. Facebook, Wikipedia, WordPress, and yet it seems that everyone tries to convince me that PHP is no longer the right choice.

I feel exhausted. And when I finally believe in making a step forward with JavaScript, this TypesScript comes along.

Now there are types, and somehow I am supposed to convert TypeScript with tsc or Babel to JavaScript, and both require decisions I can't answer.

It also seems to me that TypeScript is hyped by force. A new JavaScript project is announced on Twitter, and soon many people (trying) force the author to switch to TypeScript or do not want to use the project. Are you no longer a good developer if you don't use TypeScript?

I find countless articles on the Internet claiming that TypeScript produces better code, developers are more productive, or applications are less error-prone.

But there is no post, or I can't find a single post, that claims that TypeScript can make someone a better developer.

As a beginner, I don't know how to use TypeScript at all.

@fibric referred me here, and he said that I could learn a lot here.

I hope that I can defeat these evil monsters with your help.

Thanks!

A

I recommend you to start step by step. forget about PHP for now. just focus on the fundamental client-side technologies like CSS, JS, and HTML. just create an HTML file and start coding. when you feel you are ready for the next step start exploring other js libraries like React or Vue etc.. and stick with one of them which suits you the most. finally, explore server-side technologies you may stick with javascript for server-side logic using nodejs or preferring to learn PHP for some reasons.

1
S
Sam Dolin5y ago

I stick with PHP because the company I'm working for uses Headless Drupal which is written in PHP.

D

Welcome!

Make sure to use proper tags, otherwise, your blog might not catch enough attention.

Have fun.

2