How to become a better programmer: Do Not If Else

How to become a better programmer: Do Not If Else

Every young developer gets to know the most common rules in programming quickly, either by their own research or by code review comments. Write small classes and small methods/functions. Be SOLID, Don't Repeat Yourself, Keep It Simple Stupid and a lot of other programming principles.

Every young developer gets to know the most common rules in programming quickly, either by their own research or by code review comments. Write small classes and small methods/functions. Be SOLIDDon't Repeat YourselfKeep It Simple Stupid and a lot of other programming principles.

Today I would like to propose another way - one that may be a bit controversial in principle; let's call it - DNIE (read as deny) unrolled to Do Not If Else.

If's are often considered harmful. They are the source of evil and sometimes bugs. But the worst thing is that they hide abstractions.

Before we go further, I have to make an important disclaimer - I don't want to say never ever use if or anything like that. There are cases when an if statement is the easiest, the cleanest and the most appropriate solution for a problem. E.g. I cannot imagine implementing most sorting algorithms without such construction. Unfortunately if's are overused and often makes software harder to maintain.

development programming

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Developer Career Path: To Become a Team Lead or Stay a Developer?

For a developer, becoming a team leader can be a trap or open up opportunities for creating software. Two years ago, when I was a developer, ... by Oleg Sklyarov, Fullstack Developer at Skyeng company

Tracking a Developer’s Journey From Documentation Visit

Measuring website activity provides only half the story. See how to best track the developer's journey and what funnel stages makes sense for API-first products

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.

Hire Ruby on Rails Developer | Hire RoR Developer

#1 Ruby on Rails development company. Hire Ruby on rails developer or a team to build secure, scalable and complex web solutions with a quick turnaround time.