Nearly all of Go’s distinctive design decisions
were aimed at making software engineering simpler and easier.
We’ve said this often.
The canonical reference is Rob Pike’s 2012 article,
“Go at Google: Language Design in the Service of Software Engineering.”
But what is software engineering?
Software engineering is what happens to programming
when you add time and other programmers.
Programming means getting a program working.
You have a problem to solve, you write some Go code,
you run it, you get your answer, you’re done.
That’s programming,
and that’s difficult enough by itself.
But what if that code has to keep working, day after day?
What if five other programmers need to work on the code too?
Then you start to think about version control systems,
to track how the code changes over time
and to coordinate with the other programmers.
You add unit tests,
to make sure bugs you fix are not reintroduced over time,
not by you six months from now,
and not by that new team member who’s unfamiliar with the code.
You think about modularity and design patterns,
to divide the program into parts that team members
can work on mostly independently.
You use tools to help you find bugs earlier.
You look for ways to make programs as clear as possible,
so that bugs are less likely.
You make sure that small changes can be tested quickly,
even in large programs.
You’re doing all of this because your programming
has turned into software engineering.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
My post “Floating-Point Printing and Parsing Can Be Simple And Fast” depends on fast unrounded scaling, defined as: The unrounded form of , , is the integer value of concatenated with two more bits: first, the “½ bit” from the binary repres
Introduction A floating point number has the form where is called the mantissa and is a signed integer exponent. We like to read numbers scaled by powers of ten, not two, so computers need algorithms to convert binary floating-point to and
Introduction Donald Knuth wrote his 1989 paper “A Simple Program Whose Proof Isn’t” as part of a tribute to Edsger Dijkstra on the occasion of Dijkstra’s 60th birthday. Today’s post is a reply to Knuth’s paper on the occasion of Knuth’s 88t
These are the posts in the “Floating Point Formatting” series, which started in 2011 and continued in 2026. “Floating Point to Decimal Conversion is Easy” (2011) “Pulling a New Proof from Knuth’s Fixed-Point Printer” (2026) “Floating-Point
I have been debugging some code I did not write and was reminded of this technique. I’m sure it’s a very old debugging technique (like bisection), but it should be more widely known. Suppose you have one test case that’s failing. You can ge