DEV Community

Goodwish Matyila
Goodwish Matyila

Posted on • Edited on

JavaScript frustrations for developers

thinking in javascript

Thinking in JavaScript

When you dive into JavaScript for the first line of code, You should not have other distractions, getting comfortable with the JavaScript programming language is based on an individual, it is important to understand clearly the objective of the project, then apply your skills to solve the problem without making noise.

Thinking patterns

All projects are started to solve a problem or as a new concept,
throw every possible scenario on the table, as a problem solver you should be able to define what the problem is, get to the core of the problem you are trying to solve with JavaScript, as a language of choice for your project, the questions should be answered by the way you integrate, iterate your solutions through conditionals.

Redefine strategies

Most of the complex parts should now be out of the way, getting started with your core mission plan, what should be solved and how? Focus on the problems that are easy to spot, isolate predefined structures of your code when applying a solution, these methods should conclude themselves in other words, the code itself should be easy to read, group every task by functionality and purpose.

It does not matter how good you are with JavaScript if you follow good coding practices including programming paradigms and patterns. You are all set to solve serious concepts, stop thinking in JavaScript that is the tool, focus on the solutions you want to try to solve using the tool, redefine your approach to the language.

This "New thing" vs "Old thing"

LTS (Long-term support) is your starting point, when you think in JavaScript you want to try every little thing you have learned, when you think in solutions your mind targets the problems, LTS to UWYM (Use what you master) is simply a thing of the past, new features being rolled in are not making the language JavaScript any harder, this simply means there are problems you have not encountered yet.

The new thing: extends what already exists, think of “Classes” in JavaScript, this is a crazy idea, if you want to write JavaScript, the language has a tone to it and its called “Proto” with chained “Objects” ending with a “NULL” which points to nothing, learn the core of the language starting from ES 5, the is more power and control about being “Strict mode” tech-savvy.

The old: will teach you the advanced concepts themselves, the structure you problems so that they are easy to approach with code, let the JavaScript language solve the problem don’t duplicate problems, this is not the same as a DRY concept meaning do not repeat yourself, just DDP (Don’t duplicate problems), solve the problem first before applying the solution, do not re-create the problem in code then try to iterate to solve it.

Adapted from nextjob.co.za – CEO Revision

Top comments (0)