![]() That said, it’s possible to create unspeakable monsters. The language itself enforces some level of white space discipline and the built in APIs are plentiful and fairly consistent. Assuming we judge a programming language by how well it facilitates writing good code (it should at least be one of the top criteria, anyway), any programming language can be “good” or “bad” depending on how it is used (or abused).Īn example of a language that by many is considered “clean” and readable is Python. In any programming language, it is possible to write good code or bad code. Any engineer worth their pay can produce code that “works” what distinguishes a superb engineer is that they can write maintainable code efficiently that supports a business long term and have the skill to solve problems simply and in a clear and maintainable way. I’m far from the first person to write that the primary audience for your code is not the compiler/computer, but whoever next has to read, understand, maintain, and enhance the code (which will not necessarily be you six months from now). Tweet Commandment #1: Treat Your Code the Way You Want Others’ Code to Treat You The following are some things I’ve discovered in my career as an engineer at big companies and small, in the USA and abroad, that seem to correlate with maintainable, “good” software. Specifically, “good code” is code that is easily and readily maintainable by an organization (not just by its author!) and will live for longer than just the sprint it was written in. While these are all laudable goals for software developers, however I venture to throw another target into the mix: maintainability. Others will say it’s super fast and has a killer performance and will run acceptably on 10-year-old hardware. ![]() Some will say “good code” is code with 100% test coverage. ![]() Compared to most arts and sciences, computer science is in many ways still just a toddler, walking into walls, tripping over its own feet, and occasionally throwing food across the table.Īs a consequence of its relative youth, I don’t believe we have a consensus yet on what a proper definition of “good code” is, as that definition continues to evolve. Humans have only been grappling with the art and science of computer programming for roughly half a century. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |