News for hackers. Stuff that matters.
Re:PureBasic switches to a C backend by Koshkin on Tuesday August 17, 2021 @05:50PM (#28215274)
I fondly remember Visual Basic 6 as one of the best general purpose development tools for Windows I have ever seen.

As to the “use case”, it still seems like a nice interpreted language for tiny computers based on microcontrollers and for embedded platforms in general.

Re:PureBasic switches to a C backend by jamesdwilson on Tuesday August 17, 2021 @08:18PM (#28216318)
20 year developer here who's touched many many different software stacks.

Still to this day, nothing has lived up to the hype that was actually delivered by VB5 and VB6. Insane productivity.

Re:PureBasic switches to a C backend by icedchai on Tuesday August 17, 2021 @09:46PM (#28216894)
It is sad to think we gave all that up for HTML/CSS/JS. Now, with "modern" tools, it takes a whole village to build and submit a simple form.
Re:PureBasic switches to a C backend by littlecranky67 on Wednesday August 18, 2021 @05:27AM (#28219140)
Its not HTML/CSS/JS that killed the RAD tools from the 90s/00s - it is security, multi-user and networking.

I remember how quickly you can put together apps and forms using VB6 + visual designer. But security/permissions were mostly based on your Windows account user. I remember an ERP software that hardcoded the MySQL connection string with a god-mode user+password in a config file and relied on Windows permissions that only the ERP software itself (written in Delphi) could open it. User permissions were then encoded in that DB. Basically, one disassembly of the machine and extracting the config file from the harddrive would have allowed you full access to the db.

Today, we use service layers (REST & Co.) to ensure permissions and access - something that would be equally complex when using VB/Lazarus today.

Re:PureBasic switches to a C backend by icedchai on Wednesday August 18, 2021 @12:11PM (#28223325)
I'm not convinced RAD tools couldn't have been made to work with REST services or something else, like SOAP. SOAP probably would've been better for this. As much as I hated the complexity of SOAP, being able to generate clients from a WSDL was pretty cool.
Re:PureBasic switches to a C backend by pjmlp on Wednesday August 18, 2021 @02:57AM (#28218358)
More insane are the younger generations that grew up with the Web, have no idea how productive native tooling can be and then give us Electron based crap.
Re:PureBasic switches to a C backend by resoluteteeth on Tuesday August 17, 2021 @08:48PM (#28216529)
> Still to this day, nothing has lived up to the hype that was actually delivered by VB5 and VB6. Insane productivity.

People seem to say this a lot but I don't really understand it, because if you use c# with winforms in visual studio it's basically the same thing but better.

Re:PureBasic switches to a C backend by laumars on Wednesday August 18, 2021 @03:36AM (#28218575)
Depends on the domain. C# is undoubtedly a lot more powerful and C# runs faster, but your average C# program requires writing a hell of a lot more boilerplate code than your average VB6 program.

Visual Basic had its warts. C# is a better language from an academic perspective. But VB filled a niche that nothing else has come close to: it made desktop application software writing ridiculously quick and easy. While still being maintainable, readable, and fun.

Electron is probably the closest thing we have to that in the desktop world these days but somehow that performs even worse than VB6 did. Python or Go is probably the most analogous, if you think about command line programs.

Re:PureBasic switches to a C backend by teh_klev on Wednesday August 18, 2021 @07:17AM (#28219729)
> but your average C# program requires writing a hell of a lot more boilerplate code than your average VB6 program

Not actually true. I just created a new C# Windows Forms application in VS, dragged a button onto a form, double clicked and it took me right to the event handler ready for me to do something. There's no additional boilerplate or ceremony required.

Now sure there may be a whole bunch of code sitting in the "Form1.Designer.cs" partial class, but that's for the designer to manage, not you. And VB had this as well but the VB environment hid this until you went looking for it.

Writing Windows Forms apps in C#/VS2019 is as easy as it was back in the VB5/6 days. I say this as a former VB4/5/6 (and, cough, ahem, MS Access) user knocking out all sorts of stuff back in the 90's.

Re:PureBasic switches to a C backend by laumars on Thursday August 19, 2021 @02:36AM (#28231034)
There’s more to writing software than just dragging a button onto a form ;) at some point you’re going to want to write your own classes, or manage the existing automatically generated ones.

I’ve written sizeable software in both VB6 and C# (both professionally too) and yes, what I said is true about C# being a more verbose language. This isn’t intended as a criticism of C# either. It’s just a natural side effect of C# giving the developers more control.

Plus there’s also a C vs ALGOL type argument with regards to which is easier for a newbie to read and write. C# might produce highly readable code to those already familiar with C-syntax but VB6 is ostensibly executable pseudocode. That alone counts for a lot when talking about the accessibility of programming languages.

Re:PureBasic switches to a C backend by teh_klev on Thursday August 19, 2021 @06:19AM (#28232169)
> There’s more to writing software than just dragging a button onto a form

Clearly, but that wasn't my point. C# isn't a more verbose language, if anything it's more concise. My point was to refute your assertion that "your average C# program requires writing a hell of a lot more boilerplate code than your average VB6 program"...which isn't true.

The C vs ALGOL type argument doesn't really stand up for me. I have junior devs on my team who've arrived straight out of bootcamps, college, self-taught etc with a broad spectrum of shallow language skills (PHP, VB, VBA/Script, Java, Javascript), and none of them have trouble dropping into C# world when they've never used it before. C# isn't any more difficult to learn than VB or PHP. Getting up to speed with the .NET framework is a much larger challenge for them than picking up C#.

Re:PureBasic switches to a C backend by laumars on Thursday August 19, 2021 @10:56AM (#28234638)
I think we are going to have to agree to disagree on this.

But FYI, VB6 isn’t .NET. You might be thinking of VB.NET. And if you were, your arguments would be correct. VB.NET is an utterly pointless language. But VB6 is a different beast entirely (and predates .NET by several years)

Re:PureBasic switches to a C backend by teh_klev on Thursday August 19, 2021 @03:02PM (#28237877)
I know exactly what the differences are between VB5/6 and VB.NET and also saw the futility of adopting VB.NET for greenfield projects. I am no spring chicken.

In the 90's I was neck deep in the land of COM/DCOM and CORBA. Our proof of the pudding, for the stuff we were building to talk to CORBA endpoints, was whether our VB5/6 apps could consume our bridge libraries and start passing sane data backwards and forwards with some janky J2EE horror show. And then we did the same with .NET1 (beta) via COM Interop to those libs etc etc. This is why I know the subject matter well, even if it is 20+ years ago.

Anyhoo, that's my appeal to authority, but I'll agree to disagree.

Re:PureBasic switches to a C backend by laumars on Thursday August 19, 2021 @05:45PM (#28239763)
I was a freelancer back then. So worked across several different stacks. VB6 was my goto for RAD. Delphi for performance. Wasn’t keen on C++ back then and the less said about Java (with regards to desktop applications) the better. I remember hating .NET v1 beta but I can’t for the life of me remember why. C# has definitely grown on me since but ironically these days I don’t touch Windows (nor even write GUI applications).
Re:PureBasic switches to a C backend by teh_klev on Thursday August 19, 2021 @06:25PM (#28240131)
Aye, I rarely touch desktop stuff these days. Most of my efforts now get deployed into our Azure environments these days, which I have to confess I bloody love. I used to work for an ISP and Webhoster back in the 2000's building out provisioning and billing apps. With Azure I sure don't miss having to manage fleets of physical servers any more, even the big iron VM boxes we ran.
Re:PureBasic switches to a C backend by spullara on Wednesday August 18, 2021 @12:08AM (#28217689)
Using Microsoft's Jview JVM COM-Java integration (this is like '98 time frame) you could more easily run VB 6 apps against Java application servers because you only needed to distribute the client jar to the VB app. Since there was no early binding you didn't need the code you were going to call remotely on the client, it could just download the classes at runtime and use reflection to make the required calls. Drastically reduced any sort of jar/dll hell.