Programmers should never trust anyone, not even themselves
carbon-steel.github.io
Programmers should never trust anyone, not even themselves
1–10 of 163 posts
Re: Programmers should never trust anyone, not even themselves
#2Re: Programmers should never trust anyone, not even themselves
#3Re: Programmers should never trust anyone, not even themselves
#4This is true, but incomplete. All unicode encodings take linear time, not just utf-8.
That's because a character can contain multiple code points. Utf-32 allows for random access of code points in constant time, but not characters.
Utf-16 has variable length code points so it is the same as utf-8 in that regard.
Re: Programmers should never trust anyone, not even themselves
#5>> Random access of a character in a text buffer could take constant time (for ASCII) or linear time (for UTF-8) depending on the character encoding This is true, but incomplete. All unicode encodings take linear time, not just utf-8. That's because a character can contain multiple code points. Utf-32 allows for random access of code points in constant time, but not characters. Utf-16 has variable length code points…
Re: Programmers should never trust anyone, not even themselves
#6> Read more documentation than just the bare minimum you need
I wish I practiced this before, I'd be as good and quick as some of my brilliant colleagues.
Re: Programmers should never trust anyone, not even themselves
#7But then you say "trust, but verify" in the post.
Re: Programmers should never trust anyone, not even themselves
#8Re: Programmers should never trust anyone, not even themselves
#9If only :)
Far too often I find myself working with tests that patch one too many implementation details, putting me in a refactoring pickle
Re: Programmers should never trust anyone, not even themselves
#10Nope. In reality the money doesn't exist. Amazing how many people think that somewhere a cartload of money is physically moving every month when they get paid. When was the last time you deposited anything in a bank? The abstraction is even higher than that. It's just numbers in a computer system. The abstractions work because banks are "too big to fail".