Niraj Shrestha·Nov 19, 20215 Tips to Master the Art of Clean CodeGood programmers write boring code. Great programmers write really boring code When I came across this quote on the internet, sometime in the past year, it introduced me to the concept of clean code. What is Clean Code exactly? In simple terms Clean Code refers to a codebase that is easy to read and understand…Tips4 min readTips4 min read
Claudynn Lee·Mar 14, 2022What the f*** is clean code?“Even bad code can function”. This quote comes from a book written by famous American engineer — Robert Cecil Martin, Clean Code. Some of you may know him as Uncle Bob. In his book, he goes on to explain a few practices which help produce code that is simple, maintainable…Programming3 min readProgramming3 min read
Ari Joury, PhDinGeek Culture·Feb 23, 2022Member-onlyDon’t follow best programming practices. Do this insteadBest practices are for idiots. Learn pragmatism instead — Here on Medium, many articles are what I would call success porn. I made 10 million dollars last week and so can you with these 17 simple steps. Sure, bro. I don’t believe you but I’ll click your headline anyway because my monkey-brain is going haywire at the thought of…Programming8 min readProgramming8 min read
Šimon TóthinITNEXT·Dec 29, 2021Five steps to perfect softwareIt is the end of the year, so it’s the perfect time to refresh on the basics. This article will go through the five steps to perfect software that you should never skip. To clarify, I will be zooming in to the “unit level” as most of you will not…Software Engineering4 min readSoftware Engineering4 min read
Jamie BullockinBetter Programming·Jan 24, 2020Member-onlyClean Code: 5 Essential TakeawaysKey points from a must-read book for programmers — I recently wrote about “5 Books That Changed the Way I Code.” In the comments, several readers recommended “Clean Code” by Robert C. Martin. As a result, I’ve now read the book and found it worthy of an in-depth review. About the Book “Clean Code” was published in 2008, and over recent years…Programming6 min readProgramming6 min read
Marko MilojevicinLevel Up Coding·Nov 22, 2021Member-onlyPractical SOLID in Golang: Dependency Inversion PrincipleWe continue a journey through the SOLID principles by presenting the one which has the most significant impact on unit testing in Go — The Dependency InversionPrinciple. — Learning a new programming language is often a straightforward process. I often hear: “The first programming language you learn in a year. The second one in a month. Third one in a week, and then each next one in a day.”. Saying that is an exaggeration, but it is not…Software Development8 min readSoftware Development8 min read
A LadyinDev Genius·May 11, 2021Member-only11 Clean Code Tips That Will Assist You to Be a Top ProgrammerImprove your coding style — Clearly, coding is the responsibility of a good programmer so that everyone can read and understand his code. “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” ― Martin Fowler 11 Tips about clean code I have discussed below Clean code means not about code only; it’s also about writing…Programming5 min readProgramming5 min read
Andrew Zuo·Aug 15, 2021Member-onlySingle Responsibility Principle: Why Do People Still Defend This Garbage Idea?A Garbage Idea For Brainless Programmers Incapable Of Independent Thought — Single responsibility principle. Single, responsibility, principle. Single. Responsibility. Principle. It should be obvious from that one line why I hate the single responsibility principle so much. But in case it isn’t here’s an entire article just elaborating. It’s The Slogan So recently we’ve seen some pretty questionable slogans. I mean there’s ‘defund the…Single Responsibility5 min readSingle Responsibility5 min read
Jozef Lami·Oct 6, 2021Member-onlyDo Not Write “DRY” CodeUncle Bob’s SOLID principles are famous in the programming world. Almost every developer at least heard about them. They are considered common knowledge and you are told to follow them but I think these rules should not be followed blindly. I often find myself disagreeing with the “Do not repeat…Programming3 min readProgramming3 min read
Warsha Kiringoda·Aug 18, 2021TypeScript Best Practices 2021TypeScript(TS) has proven to be a better option to write client side scripts without using JavaScript (JS). And to write it in a more cleaner way. To make the most of it, it is important to follow the best practices when coding with TS. Here are 11 TypeScript best practices…Typescript6 min readTypescript6 min read
Kamran AhmadinBetter Programming·Feb 16, 2021Member-onlyIn Python, Don’t Look Before You LeapAdvice for cleaner and better Python code — In this article, we’ll be taking a look at two common coding styles that programmers use to handle scenarios where a piece of code might fail: “Look Before You Leap” (LBYL) and “Easier To Ask for Forgiveness Than Permission” (EAFP). If you aren’t familiar with the LBYL vs. EAFP debate…Programming4 min readProgramming4 min read
PrathabinSpectro Cloud·Jan 20, 2021Decorating Go ErrorsGo is powerful and popular — projects such as Kubernetes were implemented in Go. One interesting property of Go is that its multi-value returns capability provides a different error handling approach than other programming languages. Go treats the error as a value with a predefined type, technically an interface. However…Go4 min readGo4 min read
EntreprogrammerinJavaScript in Plain English·Oct 6, 2021Member-only10 Signs That You Are Writing Bad codeMost programmers even don't know that they are writing bad code — If you are a programmer, I am sure you use something like Github to store your code. Just look at the old code you wrote a year ago or more. …Programming7 min readProgramming7 min read
Meghna BhaveinBetter Programming·May 24, 2021Member-onlyOne Habit To Become a Better DeveloperAnd it’s something that you probably do anyway — In my line of work, I read code all day, every day, be it code reviews of new features or making out head or tail of old ones. If you’re like me, you might even be going through code bases over decades old. That’s almost three centuries in the computer…Programming5 min readProgramming5 min read
Marko MilojevicinLevel Up Coding·Oct 30, 2021Member-onlyPractical SOLID in Golang: Open/Closed PrincipleWe continue a journey through the SOLID principles by presenting the one which gives flexibility to applications — The Open/Closed Principle. — Many different approaches and principles provide a long-term improvement in our code. Some of them are well-known in software development society, and some are somehow under the radar. My opinion is that is the case with The Open/Closed Principle, which stands for the letter O in the word SOLID. …Technology5 min readTechnology5 min read
Fernando DoglioinBits and Pieces·Oct 27, 2021Dependency Injection in JavaScript — the Best Tool You’re Not Using for your TestsLet me introduce you to your new testing best friend — Dependencies in your code can be anything, from a 3rd party library that you’re using to perform a validation to the database where you save all your data. They’re part of our everyday tasks, but when writing unit tests, we tend to forget that they can’t be part of them…JavaScript7 min readJavaScript7 min read
Khuyen TraninTowards Data Science·Oct 27, 2021Member-onlyWrite Clean Python Code Using PipesA Short and Clean Approach to Processing Iterables — Motivation map and filter are two efficient Python methods to work with iterables. However, the code can look messy if you use both map and filter at the same time. Wouldn’t be nice if you can use pipes | to apply multiple methods on an iterable like below?Pipeline5 min readPipeline5 min read
Anh T. DanginGeek Culture·Oct 25, 2021Member-onlyFamous Quotes About Software Engineer Everyone Should KnowUnlocking everyone to make the impossible possible — Quotations are drops of thoughts that sometimes reach deep into our souls and give us insights that a hundred books cannot. I looked at various sources and found them, happy to share with everyone. Human “I’m not a great programmer; I’m just a good programmer with great habits.” by Kent Beck. …Software Development5 min readSoftware Development5 min read
Šimon TóthinITNEXT·Sep 28, 2021You are doing code reviews wrongDoing code reviews correctly is hard. In this short article, I will guide you through the goals of code reviews and talk about the incremental levels of implementing code review at your organisation. The non-goals of code reviews I will start with what code reviews are not. Code reviews are not design reviews. If you…Programming5 min readProgramming5 min read