UrbanPro

Learn Java Script Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

At what point does learning JavaScript (possibly after the basic syntax) get messy enough to the point that programmers dislike it?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

I'd say it can become messy during basic syntax itself (consider you get to work on someone's code where variable names make no sense, e.g. var t = 70932; no sense in this variable at all"). Let's come back to your question when it becomes messy. Considering that by basic syntax you are pointing to essential...
read more

I'd say it can become messy during basic syntax itself (consider you get to work on someone's code where variable names make no sense, e.g. var t = 70932; no sense in this variable at all").
Let's come back to your question when it becomes messy. Considering that by basic syntax you are pointing to essential client-side interaction code (like calling some function on button click, getting and displaying input value tc.). After basic syntax, let's say your application needs to be connected with server to fetch data, at this moment you would jump the primary coding border and dive into all those ajax calls, validating data and rendering it to your UI for end-user consumption. Here you (or anyone for that matter) can make the code messy by:

1. Not commenting what each method is supposed to do (just like "t" variable example I gave above).

2. Writing function definition inside the loop. I've seen this many devs doing especially during "success" event handler where they run through the retrieved data and writing event handler inside the loop.

3. Adding dynamic nodes to DOM. It is another terrible thing you will see where (again) after getting server data, to display it on UI, developers start adding dynamic nodes to DOM (nothing wrong in it) but most of the time they ignore the fact that where these elements are getting attached. Where in DOM hierarchy they are supposed to be, about their sibling's nodes etc. and this ignorance comes back when your data starts appearing awkwardly on UI and dev start debugging CSS (setting position, z-index, margin etc.)

4. Not respective MVC guidelines. I feel that at times, the code becomes complicated because of situations like project escalations, early release, untimely delivery where the developer is forced to do the work in a hurry. That's where developers start ignoring the fact that not writing correct code at right place might backfire eventually (and most of the time it does happen, speaking by experience). Keep your objects, UI and logic separately. It helps a lot!

5. Naming conventions are ignored (most of the time). As project life increases, team size and faces change. Old people get shifted to other projects, or they leave, and new minds take place. A couple of KT (Knowledge Transfer) sessions are never enough to understand every bit of the code, and the only favour a new coder expects from the old one is to get logical naming conventions, be it a file, variable or function.

6. Last but not least, ignoring the power of "strict mode", these two words alone can do what lines and lines of code can't do; it tells you your sin's beforehand.

There are many more factors which cause messy code and practically not all of them can be thought of, but above are the essential parameters which if prevented can help you live quite easy life at your workplace.

I hope this helps!

read less
Comments

IT Professional Trainer with 18 years of experience in IT Industry

It all depends on what are you trying to program and the intensity level of your code
Comments

Related Questions

What is an Array?

An array is a collection of (same or different type of) items.In Java and C#, etc., the elements inside the array should be of the same type (e.g. ) while in languages like JavaScript and Python. The elements can be different types also(e.g. )
M
How to learn Javascript?
I would say, https://developer.mozilla.org/en-US/docs/Learn/JavaScript is the best place to learn if you want real good knowledge in Javascript. Have a little bit patience and put some effort in learning...
Ramya
What types of jobs are available for those that know just HTML/CSS and JavaScript?
Front-end developer, web designer, UI/UX developer, freelance web developer.
Pritty
0 0
5
Want to learn javascript jquery and angular with live demo
Yes you can join me, i will provide you teaching with real life example,
Sandeep
0 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Always keep learning
If you are in IT, in order to survive you have keep reading and keep polishing your skillsets and this you can do everyday by taking small steps like learning and implementing them. There are so many...

Five exercises on numbers that will help you develop your logic
If you want to become a programmer (web developer) you need to have good logical thinking skills. Programming is all about planning and building logic. Here is a set of exercises that will help you develop...

Mark And Sweep Algorithm in Javascript Memory Management
This algorithm reduces the definition of "an object is not needed anymore" to "an object is unreachable". This algorithm assumes the knowledge of a set of objects called roots (In JavaScript, the root...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Advantage of Node.js over Angularjs
i. Nodejs helps a user to develop scalable network applications. It delivers efficiency along with with event-driven, non-blocking I/O model, which has been proved ideal for real-time data-intensive applications....

Recommended Articles

Here are the top 6 must have skills for every Web Designer : Technical Skills Web designers undoubtedly require very strong technical skills. They must have hands on using Web designing software and tools, such as Adobe Dreamweaver, Fireworks, Photoshop, Flash etc. In addition to the knowledge of design...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Looking for Java Script Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Script Training Classes?

The best tutors for Java Script Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Script Training with the Best Tutors

The best Tutors for Java Script Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more