Your Code Assumes Every UUID Is Random
For years a UUID meant version 4. One hundred and twenty two random bits, and a few fixed ones saying what kind it was. So code grew up around that…
Latest Programming news from Tech News
For years a UUID meant version 4. One hundred and twenty two random bits, and a few fixed ones saying what kind it was. So code grew up around that…
It is four in the afternoon. The bug is close. You have been reading the same stack trace for forty minutes. Your eyes feel gritty. The lines start…
The support assistant had a long system prompt. Be polite. Stay on topic. Never mention competitors. And near the bottom, a paragraph for the hard c…
The feature was an import. Suppliers upload a product feed as XML, and the screen shows a preview. Name. Price. Description. A tester sent a feed wi…
Marketing wanted a list. Every customer who had never placed an order. The query was short and read like English. Select from customers where id is…
The check was one line. If the customer on the order is the customer on the session, let them see it. Two Long values, compared with a double equals…
The sprint plan has your name against the migration. It is also your week holding the pager. Everybody agreed to this without noticing, because the…
There was a Tuesday two years ago when everything worked. You understood the problem by half past nine. The design fell out of it. The tests went gr…
Time the loop you are really in. Save the file. Run the thing. Find out whether you were right. For a great many people that round trip is a little…
You pasted the file and asked why the totals are wrong. The answer came back confident and slightly beside the point. You went round three times, sh…
For two years the worst thing it could do was tell you something untrue. You read it, you doubted it, you checked. A wrong answer cost you a minute…
The report said forty percent of customers had opted out of marketing. Forty percent had not opted out. Forty percent had never been asked, because…
You reviewed every line of that feature. Two of you read it. Then somebody typed install, and four hundred packages nobody has ever read joined the…
The build is green. It has been green all week. That is the part you should have found suspicious. Somebody renamed a directory in a tidy-up commit…
The demo cost four pence. You ran it thirty times while building it, glanced at the total, and stopped thinking about it, because four pence is not…
Somewhere in your system the same fact is stored twice. A count in a column and the rows it is counting. A status on the order and a status on the p…