Severin Perez

Archive (p. 2)

Maintainable Code and the Open-Closed Principle

September 18, 2018
In part 2 of the SOLID series, we discuss what happens when an object needs to change. As with responsibility changes, this poses a challenge for the maintenance of downstream objects that could inadvertently be affected by the change. One way to reduce the impact of this challenge is to adhere to the second of the SOLID principles: the Open-Closed Principle (OCP).

Reflections on Clean Code

September 10, 2018
One of the most important elements of a software engineer’s personal development is reading. In a field so vast, and so varied, constant reading is important both for building foundational knowledge and exploring branch knowledge. And as in any profession where the written word plays a large role, software has it’s 'must read' books. One of those, is Clean Code, by Robert C. Martin.

Writing Flexible Code with the Single Responsibility Principle

September 07, 2018
If you’ve been around software for a while, then you’ve almost certainly heard of the SOLID principles. In short, these are a set of principles intended to help developers write clean, well-structured, and easily-maintainable code. In software, as in any intellectual and creative endeavor, there is quite a bit of debate about the “right” way to do things. Different practitioners have different ideas about what is “right”, depending on their individual experiences and inclinations.

Learning New Programming Languages by Building on Existing Foundations

September 04, 2018
One of the things about being a developer is that you’re never done learning. You might have a favorite language, or framework, or library, but in all likelihood you won’t be able to use those exclusively. You may love JavaScript, but the project you’re working on may demand Python. You may be great with Perl, but your company’s codebase may be in C++. To new developers, the idea of learning a new language can be very daunting, especially if there are deadlines hanging over your head. That’s the bad news. The good news is that learning a new language doesn’t have to be hard.

Graceful Error Handling in JavaScript

August 15, 2018
If there’s one thing that every programmer knows for sure, it’s that nothing ever works perfectly, every time, all the time. Errors are a part of daily programming life and learning to deal with them gracefully is an important part of writing good code. Like most fundamental concepts in coding, error-handling is an immense topic full of complexity; however, we can learn a lot just from understanding the basics.

JavaScript Data Types and Mutability

August 08, 2018
One of the most fundamental concepts in programming is the idea of *data types*. It’s a concept that is shared near-universally across major programming languages. In short, data types are instructions to a program’s compiler (or interpreter) regarding how it should handle a given value.

Making Sense of Closures in JavaScript

August 01, 2018
One of the most powerful features of JavaScript is the concept of closure. It is this feature that lets us do things like create private data and define application interfaces. However, for new JavaScript programmers, the idea of closures, and how to use them, can be a bit confusing.

Archive (p. 2)
© Severin Perez, 2020