Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 9, 2020 02:00 am GMT

Top Mistakes That Developers Make

Subscribe to my email list now at http://jauyeung.net/subscribe/

Follow me on Twitter at https://twitter.com/AuMayeung

Many more articles at https://medium.com/@hohanga

Even more articles at http://thewebdev.info/

Its easy for developers to make mistakes, but we can prevent them if we know them beforehand.

In this article, well look at mistakes that developers make.

Trusting Users Input

We should never trust users input into any software. Instead, we should assume that theyll enter invalid data.

Letting them enter invalid data will contribute to corrupted data in our systems and well run into problems later on.

Therefore, we should never trust them and validate any data that are entered by users.

This includes both client-side and server-side validation. Client-side validation is used to tell users that what they entered is invalid. But we also need server-side validation to prevent bad data from being saved to our systems since bad data can be entered easily.

Manual Tests

Manual tests should be minimized since they take so much time. Its just annoying to test all features of our apps manually.

It takes a long time and its boring and repetitive. Computers are good at doing repetitive tasks. Therefore, we should let them do it.

We should write unit tests to test small parts of a system like functions and classes.

Also, we should write some end-to-end tests to test the behavior of the full system to see if they work well.

Skipping Documentation

Without documentation, no one would know how to do anything. We have to write documentation so that people will know how to do things like setting up a project locally.

Also, we need documentation for our product so that people know what its supposed to do.

More importantly, we should make sure that documentation is up to date so people wont be misled by outdated documentation.

Skipping Logging

We got to log activities that are done by our systems so that we know what its doing and we can find out what things are causing issues when things go wrong.

With error logging, we can check for recurring errors and fix them faster.

Also, we need an audit trail so that we know what users are doing is what we expect and no malicious activity is going.

Being Careless as a Privileged User

Any privileged user has more power to do things. An admin makes have the power to mess up databases by modifying or deleting data.

Therefore, we should always think twice before doing that. Even if we have backups, itll be a pain to fix issues with data after we screw them up.

Also, we should be careful with any server operations. Even though many apps are hosted in sandboxed containers, we may still mess things up if we arent careful or if we dont know what were doing.

Scattered Configuration

Configuration files should be in one centralized location so that we dont have to look for them everywhere.

This way, we can find them easily and keep track of them easily. Making changes will also be easier if theyre in one place.

Its also easier to safeguard things if theres only one place to safeguard our configuration.

Hard Coding Values

We shouldn't hard code values that are constants. So we shouldnt have values written in our code as magic numbers.

Instead, we should put them in as constants so that we know what theyre for.

Photo by Ricardo Gomez Angel on Unsplash

Burnout

To prevent burnout, we should always take breaks. Taking breaks lets us recharge and think about things in a different way.

We always need a vacation and theyll be more productive than working nonstop since its easy to screw up if we work too long.

Not Learning More

Computer and software change all the time. We should learn more things so that we can use them later.

Sooner or later, well have to learn them so we should just take the plunge now. Learning it fast will be a lot harder and more stressful since therere probably deadlines.

Without deadlines, learning things is more comfortable, since we can learn at our own pace.

Conclusion

We shouldnt make mistakes about when developers. If were too fixated at our jobs, then well make these mistakes fast.

Theyll stifle our success since theyll affect us negatively in one way or another. For instance, messing up users data is definitely bad and we cant let that happen.

Letting our skills get outdated is also bad since we may become unemployable in the future.


Original Link: https://dev.to/aumayeung/top-mistakes-that-developers-make-2260

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To