Live data from Hacker News

A TLS 1.3 stack written in Visual Basic 6

github.com

61–70 of 101 posts

Re: A TLS 1.3 stack written in Visual Basic 6

#61
post #54

Earlier quoted context omitted.

It's called try { doSomething(); } catch(e) {} these days. :)

I'm still programming in VBA today. I name the error handling labels try: and catch: and finally: :). My attempt to introduce some modernity into the language (the'try:'-label is obviously obsolete and is a mere indicator).

I've always preferred On Error GoTo Hell

Re: A TLS 1.3 stack written in Visual Basic 6

#62
post #19
post #14

Earlier quoted context omitted.

Don’t tell anyone, but I still think we’ve been terrible at UIs since VB6 and Hypercard. We mostly gave up on 2D grids as device resolutions evolved. We made HTML, then made HTML5 as if everything was a blog or newspaper with a navigation bar, semantically (and you still have to learn that the nav contains a bulleted list?) Unfortunately, it became a 3-hour or 3-year or 30-year process for someone to learn “how do I…

I completely agree. I've played with VB6 a few times recently and it feels so fast and natural to make a UI compared to modern frameworks. A bit part of it feels like a dedication to highly polished developer tooling. A strong GUI editor that works with (mostly) zero configuration is a big feature of VB6 to me.

I don't speak for everyone, but in the end what bothered me of VB6 was that it was simply very slow. But nothing compares with the joy of loading some obscure .dll and finding out you now had some neat and fully functional component ready to lay out in your app.

Re: A TLS 1.3 stack written in Visual Basic 6

#63
post #57
post #29

Are there still working and available ide and compilers for vb6? Any open source ones? After working on vba for MSAccess for a few years I came to both appreciate and hate it. It’s fast, small in features compared to modern languages, but a pleasure to hack around and find ways to expand its capabilities. I made simple ORM with it, autogenerating classes from a database, went into the rabbit hole of modernising the d…

I heard GAMBAS is one. Not tried it. Was mentioned on HN recently and in the past too.

Gambas is not compatible with VB. Similar capabilities in many ways but it can't compile VB.

Re: A TLS 1.3 stack written in Visual Basic 6

#64
post #29

Are there still working and available ide and compilers for vb6? Any open source ones? After working on vba for MSAccess for a few years I came to both appreciate and hate it. It’s fast, small in features compared to modern languages, but a pleasure to hack around and find ways to expand its capabilities. I made simple ORM with it, autogenerating classes from a database, went into the rabbit hole of modernising the d…

The VB6 IDE can still be installed on Windows 10 and probably 11.

See https://www.vbforums.com/showthread.php?898205-Can-Visual-St...

I don't think Microsoft will come after you for doing it even if you use a pirate copy.

Re: A TLS 1.3 stack written in Visual Basic 6

#65
post #55

This is probably the cleanest VB 6 I've seen. Do notice Option Explicit. That is like disabling 90% of the magic that causes unmaintainable code.

I remember the feeling when you see a module and it has an "On Error Resume Next" at the start.

In my first job, I was given a VB6 project to maintain which had a mixture of "Option Base 1" and "Option Base 0" (or unspecified, this being the default), with occasional "On Error Resume Next". This specifies the index value for the first item in an array, i.e. you could choose the default European building floors (ground floor is 0) or American floors (ground floor is 1) -- per module!

I had to convert everything to "Option Base 0" before I could start fixing the reported bugs, it was far too confusing following the arrays passed between modules being indexed starting at 0, then 1, then 0 etc.

Re: A TLS 1.3 stack written in Visual Basic 6

#68

Ah,VB6 - that's how I started programming. There was a book literally called "Visual Basic for Kids" and I got it when I was....12? I think? Anyway it got me into making all kinds of basic games, then I started reading books about C and C++, started programming for the Playstation Portable, went to university to study CS and got a job in the games industry after that. I 100% credit Visual Basic 6 for me being a progr…

Close enough, I found a free pdf on Windows Vista ~2008 and there was a chapter with VBScript. You could write these and just double click them to run, spent many hours in notepad making dialogs and small calculator apps etc. Was pretty shocked when I picked up cpp shortly after and the tutorial told me I needed something called a compiler.

Re: A TLS 1.3 stack written in Visual Basic 6

#69
Scanning "Visual Basic 6" in the title instantly triggered a strong haptic feedback in my heart!

VB6 is how I learned to speak to the computer and make it do anything I wanted it to do.

I was in high school when I built a simple, yet funny, game in VB6. I was a novice, but the game was working like a charm. The concept was basic, the alphabet letters, randomly falling down the screen from top to bottom, and you had to press the corresponding key on the keyboard before the letter totally disappeared at the bottom of the screen. When you hit the letter, it would explode with a nice animation while playing an "explosion.wav" sound file. When missed, the screen would get a red flash with an alert sound. I then took a step further by introducing "levels", which were basically a mix of falling speed and adding extra characters, like UPPERCASE letters, where you should hold the SHIFT key when pressing the letters, numbers on the keypad, and even special characters that have a special combination on the keyboard.

Sometime later, one of my elder brothers was studying at a broad university (in Europe to be precise), and as a final project of his studies, he was required to build something using programming — anything that runs on a computer! He reached out for help, and I told him I'd built a game, He asked me to send it over, and when he pressed the F5 key on his keyboard and ran it, he was amazed at how funny it was. He had a tiny challenge, though, he was obliged to explain how he built it in presentation. I can’t forget how I explained the code to him and what each function meant. I was in a public park, and the people were staring at me like I was not OK! I was yielding on the phone: "read that IsPressedLetterOnScreen function", "check that class", "go to line 99", "make a break point here", "press CTRL+F5".. you know..

In the end, he fully understood how it was working, presented the game, wowed the evaluators/teachers and, per his claims, got the highest score among all of his colleagues. Hearing that his (I mean, my) game was the best project presented that year made me the happiest person living on the planet that day..

That's my story with VB6.. in a nutshell, and that's why I felt the haptic feedback in my heart!

Re: A TLS 1.3 stack written in Visual Basic 6

#70
post #69

Scanning "Visual Basic 6" in the title instantly triggered a strong haptic feedback in my heart! VB6 is how I learned to speak to the computer and make it do anything I wanted it to do. I was in high school when I built a simple, yet funny, game in VB6. I was a novice, but the game was working like a charm. The concept was basic, the alphabet letters, randomly falling down the screen from top to bottom, and you had t…

Love the story! It almost makes me feel good about academic fraud, no sarcasm intended.

I sincerely hope your nick is not PII though or you might have incriminated your brother.

Post reply on HN