devpractices

14 posts
devpractices

Things you should never do

There is always a temptation to code from scratch rather than improve existing code because you may get a lot of excitement in building something grand. It is also harder to read code than to write it.…

devpractices

When DRY fails

DRY (Don’t Repeat Yourself) is about avoiding duplication of effort when writing the code. It also makes sure that when a bug is found it’s fixed across the board. Like many other principles, this one doesn’t work all the time.…

Issue67

Center stage: Best practices for staging environments

You should match staging & production as closely as possible. Use the same load balancers, security group settings, and deployment tooling.…

Issue62

All about prefetching

Four common prefetching strategies - interaction-driven, state-driven, user-driven and download everything.…

Issue58

Finding the time to refactor

Make refactoring integral to every work schedule. Take a few minutes to clean up code, as soon as tests pass, with better names and extracting private methods and classes, etc.…

Issue58

Why consistency is one of the top indicators of good code

Consistency in code allows you to make accurate assumptions and predictions about its behaviour and implementation.…

Issue56

Dogfooding in product development

Dogfooding is excellent to ensure great UX. Blogging or documenting the API puts you in the position of a first time user of a specific API. Creating significant new features is another way of dogfooding.…

Issue55

Refactoring is about features

Always refactor in the service of a feature. Find code that is frequently being worked on. Try to refactor that code.…

Issue54

Five strategies to remove single points of DNS failure

Stay aware of trends that can compromise the 13 root name servers. Keep track of expiration dates of domains and SSL certificates.…

Issue53

How to sleep at night having a cloud service: common architecture do's

Have a way of deploying your entire infrastructure as you deploy code. Build a CI/CD pipeline. Configure a load balancer.…