r/visualbasic • u/the-mike-03 • Nov 23 '25
I want to learn to program
Hello, I am new to programming, I would like to know what language you prefer to use and what are its most common errors? Thank you very much 🫂
7
Upvotes
View all comments
Show parent comment
4
u/Mayayana Nov 24 '25
I read recently that Elon The Great says none of us will work at all in a few years. That should be fun, as sleeping Tesla drivers barrel down the Interstates doing 80, while automated software developers write automated code that's automatically injected into moving Teslas... Cool. :) Then WW3 could consist of China remotely disabling our thermostats in the middle of winter.
I still "hand-code" HTML/CSS. A few people do. I think you highlighted the pros and cons well: Automated tools are easier and potentially much faster, but they're also disempowering. When the code is too bloated and convoluted to be understood there's no way to tweak it except with the original tool.
One of my first programming projects was to make my own editor, adding all the conveniences I wanted, like syntax highlighting. I still use it today, after years of gradual tweaking. One of the things I always liked about VB6 was that I could do whatever I could handle and then gradually improve it as I gained experience. For instance, syntax highlighting in my editor started with accessing properties in a RichTextBox control. Then it moved to API messages. Then it moved to using a system RichEdit library. Then it moved to self-subclassing that library and using tokenizing code that treats the RTF text as an integer array. The original worked: RTB.SelLength=20. RTB.SelColor=vbBlue. RTB.SelLength=0. It just wasn't as fast or adaptable, and the VB6 RTB can only use RichEdit v.1.
Awhile back I took over a friend's website. The developer had quit doing web design. I had to clear out vast gobs of Wordpress muck and years worth of unused images on the server, so that I could figure out what I was working with. In a situation like that there's no way to just pick up where they left off. I had to rewrite and come up with a clean CSS file.
Just yesterday I was looking for a recipe for a cake to make for Thanksgiving. The cake and frosting were on two separate pages. The cake webpage consists of 211 files for a total of 22 MB. The webpage code is 369 KB. Much of that is gibberish CSS! And all of that is not counting the ad images from Adthrive, since I block most script and therefore never ran Adthrive's code. (And now Adthrive is in my HOSTS file. :) Nor does the 22+ MB include the spyware script from Google and Cloudflare. (My webpage editor, for contrast, totals about 1MB installed. Not long ago, 100KB of HTML was too much to load in less than 30 seconds.)
The recipe page is very informative, but noisy and hard to read, full of nonsense sidebars and obfuscated links to Amazon to get kickbacks. The woman (or bot) who seems to be the cook is doing this to make money. I wanted to have a well laid out, easy to read recipe to work with in the kitchen. The CSS alone comprised 5 files and probably 150+ KB of webpage code in the original. My CSS was 2 lines. My entire recipe HTML file, after I edited it, is 22KB, with no images needed. (Few of the images were relevant, anyway.) If I later want to edit or redesign the recipe it will be relatively easy.
That was the whole point of HTML, after all -- to be easily readable and editable. CSS was meant to save trouble and clean up code by making the design aspect separate from text and general layout. Now, automated tools make lists of CSS classes hundreds of characters long, with random names. Like: <P CLASS="abcGGth defQvFFr WeDe DeWe SttyW QddwQa....
The other day I was looking at the mess generated by Washington Post. Some of their CSS was so involved that I thought it might be the article, encrypted in CSS to force logins. But no... Actually the entire webpage was a dummy. The real article was at a different location, accessible after one is ID-ed by their spyware. Yet that useless dummy page weighs in at 1.5 MB, not counting script and ads!
To their credit, both the cake and WashPo pages actually display readably without script in Firefox. So that's something. But all of this, to my mind, is seat-of-the-pants commercial scamming. It's not web design. It's obfuscated, sleazy, bloated code designed to exploit visitors and probably dysfunctional in any browser more than 2 years old.
This is starting to look like agile programming on speed. Spaghetti code that works, but which no one understands, with the only priority being speed of production. But one can hardly even call it production. Like the dizzy Mozillians, doped up on junk food, cranking out a new Firefox every 10 days, speed itself becomes the product. There's no time for code fixes. There's certainly no time for craft. Craft is regarded as an anachronism. Yet I still use Paint Shop Pro 5, made in 1999. It never crashes, does 95% of what new graphic editors do, doesn't need updates, runs on Win10, and the total size of the program folder is under 21MB. Why? Because it was crafted rather than being a wrapper around wrappers around wrappers, turned out like Charlie Chaplin's assembly line in Modern Times.