5 ms·
One of the best aspects of Delphi is how quickly you can whip together simple GUI applications. The main issue nowadays is finding helpful resources on the inte
by panki27 4y ago
One of the best aspects of Delphi is how quickly you can whip together simple GUI applications.
The main issue nowadays is finding helpful resources on the internet, as hardly anybody writes Delphi anymore.
For the interested, a free Delphi IDE exists (comes with FreePascal compiler):
https://www.lazarus-ide.org/ https://www.lazarus-ide.org/
- hengheng 4y agoAsking as someone who last saw Delphi in computer class at school, what would be the modern equivalent? Something that lets me draw a window with two number fields and a button that says "return sum", but it's two minutes of work and self-explanatory.
- CRConrad 4y ago> Asking as someone who last saw Delphi in computer class at school, what would be the modern equivalent? As the GP said, FP / Lazarus.
- the_only_law 4y ago> As someone who last saw Delphi in computer class at school, what would be the modern equivalent? Maybe hard pressed to call it modern, but WinForms is still my go to for quickly making a UI, at least in Windows.
- Joker_vD 4y agoSame here. I've tried to pick up WPF but holy fatcats, what an explosion of XAML files in exchange for... pretty much nothing, really. It's a shame, really.
- the_only_law 4y agoI would almost like XAML, if it wasn’t for styling. If it had some CSS like DSL, I’d use it more, but unfortunately overcrowding styles invokes nasty blobs of XML boilerplate often having to override stuff that doesn’t seem relevant to what you want to do.
- Fire-Dragon-DoL 4y agoIsn't wpf deprecated too? I wish there was an official way to make apps in windows...
- pjmlp 4y agoNot really, I doubt WinUI will ever match it in features, so most enterprises will keep ignoring it. Basically Win32, Forms, WPF for .NET, Win32/MFC for C++, or web stuff like ASP.NET, possibly with Blazor. Even though UWP did not went away, and they keep at the N interaction of it with WinAppSDK, I would lose any sleep over it.
- spfzero 4y agoSame feeling about WPF. XAML just never caught on with me and I stayed with Forms for a long while after WPF came out. With XAML, it seemed like they were trying a bit too hard on declarative. Now working in SwiftUI, which is declarative but in a more understandable way, with a View building mechanism behind it that ties things together so that you understand what you're doing a bit better. Not sure I'm explaining that well... Not good enough at it yet to build anything fast, but I could see that being the case after a few more months with it.
- fomine3 4y agoYou can ignore XAML if you make WPF app as like WinForms, just use GUI designer and absolute layout. It's not considered to good but it should work.
- Joker_vD 4y agoBut in that case, why even use WPF if I can just keep using WinForms? Besides, judging by the news and announcements on the Microsoft site, it would seem that WinForms is still being sort of developed while WPF is... pretty much dead.
- fomine3 4y agoYou can easily adopt WPF features later, compared to migrate WinForms to WPF. I think both WinForms and WPF are being sort of developed, but WinForms is old so it have more developing needed area, like accessibility and HiDPI.
- gduke 4y agoDelphi's FireMonkey is in many ways similar to WPF in the way you can manipulate UI elements, except all the fluff and cruft WPF/XAML has. On the plus side, FireMonkey is multi platform too. VCL is still the tried and tested UI framework for Windows only applications though, nothing beats its flexibility.
- badsectoracula 4y agoThe linked Lazarus. Here is a quick screencast making a window with two fields and a button that sums them (though i forgot the "return sum" caption :-P) in ~45 seconds: https://i.imgur.com/cATdmhY.mp4 https://i.imgur.com/cATdmhY.mp4
- aidenn0 4y agoIs that Afterstep you are running? I'm having flashbacks to 1999...
- jkaptur 4y agoI get a little frustrated, because the web is AMAZING for this. Type this in anywhere. Anywhere! <input id=foo></input> <input id=bar></input> <button onclick="sum()">sum</button> <div id=result></div> <script> function sum() { result.innerText = parseFloat(foo.value) + parseFloat(bar.value); } </script> That's full of "bad practices" but for the use case you're talking about, who cares?
- arghwhat 4y agoUnfortunately, nobody codes web apps like that. If they did they web probably wouldn't be that bad. Instead they whip out React and because native browser elements apparently are the devil they add tailwind/material design/bootstrap/whatever on top. Once you do it that way, the web approach honestly ends up as complex or worse than many of the alternatives...
- hasperdi 4y agoThat way doesn't scale well. Things become very messy and unmaintainable really quickly. This is how people code in the past, and there are good reasons why people moved on.
- arghwhat 4y agoCode becomes unmaintainable when it was organized poorly and grows or if discipline was not maintained during growth. React projects are just as susceptible to that, and "modern" web development is quite frankly a larger maintainability headache due to the dependency hell they bring.
- SCLeo 4y agoActually I do. Whenever I need a small tool like a calculator for a video game or a simple GUI program for processing images, I always go for a barebones single html file web application. For example, this is a simple visualizer for different numerical integrators that I wrote in a day or two for a college course: https://scleox.github.io/integrator-visualizer/index.html https://scleox.github.io/integrator-visualizer/index.html. The the source code is just one single html file: https://github.com/SCLeoX/integrator-visualizer/blob/master/index.html https://github.com/SCLeoX/integrator-visualizer/blob/master/...
- zozbot234 4y ago> Something that lets me draw a window with two number fields and a button that says "return sum", but it's two minutes of work and self-explanatory. Tcl/Tk would be the most straightforward choice. Even easier than Lazarus. It's not really a native look, but practically nothing is truly native these days.
- bri3d 4y agoFor something trivial and cross platform: Tcl with Tk or Python with wxpython. Java with Swing does still exist and works too. It's harder (IMO) to "scale" a Tcl/Tk or wxpython project though as there aren't great built-in patterns and especially with wxpython, the API is a bit clunk and boilerplate heavy. For a bigger project that you don't need to be cross-platform, you can still make a Windows Forms C# project in Visual Studio. It still works pretty well even, although Visual Studio seems to get slower and farther from this use case each year.
- runjake 4y agoWindows Forms is probably the closest modern RAD equivalent of what you remember: https://docs.microsoft.com/en-us/dotnet/desktop/winforms/ https://docs.microsoft.com/en-us/dotnet/desktop/winforms/
- tdeck 4y agoFolks mentioned a few good options already, but another one is using C# and visual studio's built in form designer. It's very easy to get started with if you've seen a similar language before (e.g. Java).
- gduke 4y agoDelphi still exists and is available as a free Community Edition too. There are plenty of resources and new books being written. You can find a collection at https://learndelphi.org https://learndelphi.org
- kwanbix 4y agoNowadays they have a free option. Community edition or the like.