Back to Blog
📖 Tool Tutorials 管理员 · · 3 minutes · 5 Views

AI Is Getting Better at Writing Code, So Why Are Veteran Programmers Still Checking ASCII Tables for Characters?

AI is getting better and better at writing code, but veteran programmers still can't do without the ASCII table. The reason is simple: AI is good at generating code, but it often crashes on character encoding details. Whether a newline is \r\n or \n, hidden \u00A0 spaces, 0D 0A in hexadecimal, these pitfalls aren't necessarily something AI can recognize. Checking a table of 128 characters can locate the problem in seconds, much faster than going in circles with AI. The ASCII table is like a programmer's multiplication table: it looks simpl

A few days ago, I saw someone in a tech group complaining: AI is already so powerful at writing code, with Copilot and Cursor open, code flows out like tap water, so why are there still veteran programmers flipping through ASCII tables? Isn't that stuff from ancient times? The group immediately exploded with a bunch of people, some agreeing, and one guy calmly replied: "Wait until you debug until 3 a.m. someday, then you'll know why."

To be honest, the ASCII table really does look unremarkable. One table, 128 characters, from 0 to 127, each number corresponding to a character. You type a space and it's 32, a newline is 10, uppercase A is 65, lowercase a is 97. That's all there is to it, probably even covered in elementary school computer class. But the problem is, when you're actually doing the work, it matters far more than you think.

AI is indeed great at writing code. Ask it to generate a sorting algorithm, and it writes one for you in a second, complete with comments. Ask it to write a REST API, and it even adds error handling for you. But AI has a flaw: sometimes it "makes things up." Especially when dealing with character encoding, it may generate code that looks fine and runs without errors, but the result is just wrong. For example, if you ask it to process a text file, it matches newlines as \n, but the file actually contains \r\n. The code runs fine on Linux, but goes haywire on Windows. What do you do then? Flip through the ASCII table. 13 is carriage return, 10 is line feed. You look at that string of 0D 0A in a hex editor and immediately understand where the problem is.

There are even more hidden cases. For example, when you're debugging an old system, a field in the JSON returned by the API looks empty, but the program just won't judge it as empty. You print it out and see there's a \u00A0 inside. This thing is called a non-breaking space, corresponding to 160 in the ASCII table. You can't see it with the naked eye at all, but the code logic is stuck because of it. At this point, you pull out the ASCII table and check: oh, 160, not 32. Change the condition, problem solved. If you relied only on AI, it might take you around in a big circle, and in the end you'd still have to check the table yourself.

Veteran programmers flipping through ASCII tables doesn't mean they don't know how to use AI. It means they know that some things can't be relied on AI for. AI excels at pattern recognition and code generation, but when it comes to grasping low-level details, sometimes it really isn't as solid as a table. The ASCII table is like a programmer's multiplication table: it looks simple, but it can save your life at critical moments. Once you've written code for a long time, you'll find that many bizarre problems ultimately come down to character encoding. Garbled text, truncation, comparison failures, regex mismatches, nine times out of ten they're related to ASCII codes.

And flipping through the table itself isn't hard. Open your browser, search for ASCII table lookup, and it takes a second. Or just memorize a few common ones: 32 is space, 48 to 57 are digits 0 to 9, 65 to 90 are uppercase letters, 97 to 122 are lowercase letters. Remember these, and when you're looking at hexadecimal data normally, you'll feel more confident. Veteran programmers aren't rejecting new tools; they just know that some fundamentals can't be abandoned. No matter how powerful AI is, it's still just a tool. The one who really makes the judgment still has to be a person. If you can't even figure out character encoding clearly, would you dare put the code AI generated for you directly into production?

So don't laugh at veteran programmers for flipping through ASCII tables. What they're flipping through isn't a table, it's experience, it's confidence. One day, when you've been tormented by a hidden \r or \u00A0 until you start doubting life, you'll also quietly open that table.

5 Views · 3 minutes

🔗 Related Tools

Try these practical tools related to this article

📝 Related Posts

You might also like these articles

tool-tutorials

Before Putting on Autumn Weight at the Autumn Equinox, Calculate First: Your BMI Might Be Sweeter Than Mid-Autumn Mooncakes

Before putting on autumn weight at the Autumn Equinox, take a minute to calculate your BMI. Weight in kilograms divided by height in meters squared; a result between 18.5 and 24 is normal, over 24 needs attention, and over 28 should be taken seriously. In autumn your appetite is good, mooncakes and crabs take turns showing up, and before you know it, you've got a little belly. Calculating BMI isn't to make you feel bad, but to give you a sense of where you stand, so you can have some moderation when eating. If it's normal, don't indulge; if it's high, don't be anxious. Eat a little less and walk a little more, and that's better than anything.

09-16
tool-tutorials

My Colleague Leaves Work on Time Every Day Thanks to AI, While I'm Still Up Late Editing Drafts

My colleague leaves work on time every day while I stay up late editing drafts to the point of breakdown. After asking around, I found out she uses an AI writing assistant—throws materials in, gets a first draft in seconds, then polishes and adjusts for double the efficiency. Turns out it's not that I'm not working hard enough—I've just been using brute force. Learning to leverage tools means weekly reports, copy, and emails can all start with an AI foundation, saving time to breathe. Working smart really is more important than working hard.

09-16
tool-tutorials

Insights from Apple's Launch Event: Small Icons Are the First Gate to Brand Recognition

What's most worth pondering about Apple's launch events are actually the small details. That inconspicuous Favicon on browser tabs is the first checkpoint of brand recognition. When a user opens a bunch of tabs, why would they spot you at a glance? It's all thanks to that little icon. A blurry, distorted icon makes users feel you're unreliable, while a clear and concise icon makes people remember you. Use a Favicon generator to get all the size adaptations done in ten minutes—don't let this little square hold your brand back.

09-15