A Quote by Joshua Bloch

It is hard to write even the smallest piece of code correctly. — © Joshua Bloch
It is hard to write even the smallest piece of code correctly.
Ugly programs are like ugly suspension bridges: they're much more liable to collapse than pretty ones, because the way humans (especially engineer-humans) perceive beauty is intimately related to our ability to process and understand complexity. A language that makes it hard to write elegant code makes it hard to write good code.
Perhaps we could write code to optimize code, then run that code through the code optimizer?
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
Always think about how a piece of code should be used: good interfaces are the essence of good code. You can hide all kinds of clever and dirty code behind a good interface if you really need such code.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free.
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
The genetic code is not a binary code as in computers, nor an eight-level code as in some telephone systems, but a quaternary code with four symbols. The machine code of the genes is uncannily computerlike.
I can write for weeks or months sometimes and edit it down to a song. I feel like it's a piece of music that will hopefully stand the test of time and hopefully capture a moment in history if I'm doing it correctly and honestly.
There's a subtle reason that programmers always want to throw away the code and start over. The reason is that they think the old code is a mess. [...] The reason that they think the old code is a mess is because of a cardinal, fundamental law of programming: It's harder to read code than to write it.
Writing is a weird thing because we can read, we know how to write a sentence. It's not like a trumpet where you have to get some skill before you can even produce a sound. It's misleading because it's hard to make stories. It seems like it should be easy to do but it's not. The more you write, the better you're going to get. Write and write and write. Try not to be hard on yourself.
Piece by piece living is hard to do. It may even feel like the hardest thing. But it has this going for it: you never need to know what it is you're carrying on your shoulders.
You have to surrender to your mediocrity, and just write. Because it's hard, really hard, to write even a crappy book. But it's better to write a book that kind of sucks rather than no book at all, as you wait around to magically become Faulkner. No one is going to write your book for you and you can't write anybody's book but your own.
The word 'code' turns out to be a really important word for my book, 'The Information.' The genetic code is just one example. We talk now about coders, coding. Computer guys are coders. The stuff they write is code.
Make a living will. Talk about it. Death is going to happen to everybody. Write it down. Even if you write it on a piece of paper at home and have your family witness it, you need to write it down.
If I remember correctly, a writer is someone who wants to convey information. Language or writing is a code.
This site uses cookies to ensure you get the best experience. More info...
Got it!