Author Topic: Why are most programmers young?  (Read 1902 times)

xairbusdriver

  • Storm
  • *****
  • Posts: 3127
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Why are most programmers young?
« on: May 29, 2017, 12:15:30 AM »
I think I've discovered one reason. Here's a scrap of text from a recent METAR file:
Code: [Select]
PK WND 02053/0412 LTG DSNT ALQDS RAB09 TSB02 OCNL LTCICCG N TS N MOV SEMy parsing code didn't seem to recognize the "Occasional Lightning North" part. It should have displayed as: "Occasional Lightning Intra Cloud, Cloud to Ground North."

The code that handles this string of text first tests for the length of the piece that starts with "LTG". It should have 'seen' seven characters. It was passing that test.

But there is a second test in the same line of code that double-checks that the first thee letters are "LTG". It was failing that test! [banghead]

I wasted at least 30 minutes trying to figure out what the problem was. Have any of you noticed the difference in the two instances of 'LTG' in the Code section above? The font you use helps. I'm using one that is recommended for use in BBEdit, but it was not helping me in this case. The problem was not with my code, except I was not checking for typos! The METAR is manually typed my a humanoid, sometimes with fat fingers? This time it used a "C" instead of a "G". [rolleyes2]

This 74 y.o. just couldn't see the difference at my normal distance from the monitor. That's why I think there are few old programmers! cmu:-) [banghead]
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Dear X-Air and WeatherCat data processors,

I think I've discovered one reason.

. . . .

The problem was not with my code, except I was not checking for typos! The METAR is manually typed my a humanoid, sometimes with fat fingers? This time it used a "C" instead of a "G". [rolleyes2]

This 74 y.o. just couldn't see the difference at my normal distance from the monitor. That's why I think there are few old programmers! cmu:-) [banghead]

Your "maturing" vision is an understandable reason for typos.  However, judging from the text I'm seeing on the larger of the Buick forums there is a new cause for typos that could give programmers of younger generations - fits.

Texting has become a sort of new "language" where being speedy in responses is the key.  Increasingly on the Buick forum, people are writing in a blur that mixes English and texting "code" resulting in posts that are extremely difficult to understand.  It stands to reason that programmers to text a lot might also suffer from mixing the two "languages" unintentionally.  A compiler will catch syntax errors, but if the error doesn't violate the language syntax, it might a lot of debugging to find the mistake.

Cheers, Edouard