News for hackers. Stuff that matters.
Re:The Worst API Ever Made by userbinator on Tuesday August 01, 2023 @12:35AM (#36952347)
I have the exact opposite experience --- I've been programming in win32 for about as long as it existed, and did win16 before that. There's no better way to make super-efficient single-EXE applications that can run on every version of Windows since Win95 (and if you try a little harder, you can get to Win3.11 with Win32s.) Everything newer has felt far more bloated and complex.

That said, some parts of Windows API are horrible; everything COM-related comes to mind.

Re:The Worst API Ever Made by pyeri on Tuesday August 01, 2023 @01:38AM (#36952728)
Instead of dabbling with the windows API directly, a better option is to use the .NET WinForms API. You can use any CIL language like C# or VB.NET. Granted that it is a framework or toolkit like many others but one of the most efficient and relatively easiest to use that I've found so far. I've tried hello worlds with many other frameworks like Java Swing/AWT/SWT, Python Tkinter/PySide, Electron.js framework, etc. and none came close to WinForms API, especially when it's powered using the super efficient Visual Studio Community Edition.
Re:The Worst API Ever Made by namdnay on Tuesday August 01, 2023 @03:54AM (#36953520)
Wasnt there an issue with your apps then needing the user to install the “.NET runtime” or something? I remember it being the main reason why people stayed on win32 for so long
Re:The Worst API Ever Made by pyeri on Tuesday August 01, 2023 @04:36AM (#36953763)
The .NET runtime usually comes pre-installed on all machines above Windows 7. It's just that if your app needs some advanced feature, you need to upgrade runtime version in those cases, this is pretty much how other runtime based systems like Java and Python also work.

Most people who stayed with win32 for long were C programmers who preferred the "purist way". But those who wanted developer productivity soon switched to the frameworks of .NET, Java, Python, etc.

Re:The Worst API Ever Made by pjmlp on Tuesday August 01, 2023 @08:29AM (#36955133)
.NET runtime comes pre-installed since Windows XP.

Also many of us already in the 16 bit days would rather use C++ frameworks than raw C.

One really needs to be quite masochist to use pure C in Windows.

Re:The Worst API Ever Made by namdnay on Wednesday August 02, 2023 @07:09AM (#36969320)
nah, windows 7 maybe, but I definitely have memories of people having to install ".NET 3.5 runtime" all the time on XP
Re:The Worst API Ever Made by pjmlp on Wednesday August 02, 2023 @08:45AM (#36970133)
Moving goalposts?

So no longer .NET, rather .NET version XYZ.

https://en.wikipedia.org/wiki/.NET_Framework_version_history

=> NET Framework 1.0 is an integral component of Windows XP Media Center Edition and Windows XP Tablet PC Edition. Installation CDs for the Home edition and the Professional edition of Windows XP SP1, SP2 or SP3 come with .NET Framework 1.0 installation packages.

Re:The Worst API Ever Made by namdnay on Wednesday August 02, 2023 @09:19AM (#36970500)
I'm not really trying to prove anything, I jsut remember that at the time, doing something with windows forms was a guarantee of getting people saying "ah it tells me i have to download .NET"
Re:The Worst API Ever Made by veave on Tuesday August 01, 2023 @05:22AM (#36954053)
+1, to me the Win32 API makes a lot of sense. It may be too low level, but that's a consequence of the time when it was created.
Re:The Worst API Ever Made by pjmlp on Tuesday August 01, 2023 @08:28AM (#36955125)
COM is a very good idea, very badly executed, ignoring VB 6, .NET Native and C++/CX attempts at improving it.

Unfortunely WinDev seems blind to how it is perceived from outside Redmond, is keen in sabotaging DevDiv efforts to make it usable, and keeps pushing it everywhere, moreso after Longhorn.