There's always time to refactor - 123dev #60

#60・
99

issues

Subscribe to our newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy and understand that Skills, stories, and software every dev should know will receive your email address.

There's always time to refactor - 123dev #60
By Justin Garrison • Issue #60 • View online
The code you end up with often looks nothing like what you started with.

An iceberg flips on its side
An iceberg flips on its side
Comments
Refactoring
  1. Make it work
  2. Make it beautiful
  3. Make it fast
This is a common saying for software developers. It doesn’t matter if your starting a new project or fixing a bug in an established project.
Make it work means you write code that does what it’s supposed to and you write code that keeps your code working.
Make it beautiful so other people can read your code. Working code isn’t useful if no one can maintain it.
Make it fast should always be the last step. Don’t optimize when you don’t know what will be slow.
Enterprise Open Source
Lots of people don’t know what it takes to open source software from within an enterprise. Smaller companies might require peer review, an internal form, and maybe a license review.
Large enterprise will have all of that and include tooling so you can track transitive dependencies, an open source office review, multiple lawyer meetings, and maybe a patent assessment.
Refactoring enterprise, open source code isn’t straight forward either. While there is some freedom once the code is available under a permissible license there is still a lot of value from neutral governing bodies and foundations.
Links
I use to hate make because I didn’t understand it. Not only could I not make sense of all the weird variables and Makefile syntax, but it was hard to search for tutorials and examples.
I’ve learned a lot over the years from reading other Makefiles and many, many hours failing to make make do what I wanted. This tutorial and examples is something I wish I had years ago. I’m glad I found it last week because I still struggle.
I may have shared this before but that’s OK because there’s a lot of new subscribers and if I forgot, you may have too.
Earthly is like make + Docker. I’ve written a lot of Makefiles that use Docker to give repeatable, portable builds. Earthly takes that one step further and integrates them directly.
Earthly - Better Builds
I like embedded circuits. The reason I wanted to be a developer was to make lights blink. This website makes programming physical lights as easy as drag and drop.
Adafruit Circuit Playground Express - Blocks / Javascript editor
Did you enjoy this issue?
Justin Garrison

1 gif, 2 comments, and 3 links to make you a better developer and person

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue
Los Angeles, CA