News for hackers. Stuff that matters.
Re:22 Years of Delphi and It Still Rocks by coldtea on Wednesday February 15, 2017 @10:42AM (#13652733)
>Now there are IMO much better cross platform tools for RAD (Python, Tcl/Tk, ...) and Delphi is showing its age

Tk is the better than Delphi RAD tool?

Re:22 Years of Delphi and It Still Rocks by ptero on Wednesday February 15, 2017 @12:55PM (#13653890)
The beauty is in the eye of the beholder (and I put IMOs liberally in my post). The OP mentioned GUI prototyping and I was viewing Tk in this context. For rapid prototyping, Tk is a better solution for me, by far.

It is a very simple, script language that allows creating dynamic GUIs on the fly. I can make a simple GUI and hang calls on buttons and menus with a few lines of text. No compiling. No library mismatches to deal with. Whiteboard sketch to a working prototype often takes less than an hour, almost never more than a day.

It is cross platform and text based, so we can email prototypes around for people to try it on their Windows, Linux and Mac machines, click on buttons and report what they want to change. It is text, and does not require installing software. This is a noticeable advantage in locked-down environments, where installing Tk once and running 10 scripts is much easier than installing 10 revs of software.

Due to the language simplicity we had people who said they have no idea about it (and no plans to learn it -- they just wanted a prototype) making and sending back mods within a few days of getting the prototype. This is great -- then we know that this is what they want.

Tk is long in the tooth and has many limitations, but for rapid GUI prototyping it is one of the most useful tools for me.

Re:22 Years of Delphi and It Still Rocks by coldtea on Wednesday February 15, 2017 @01:03PM (#13653960)
>It is a very simple, script language that allows creating dynamic GUIs on the fly.

Very limited ones. And ones clients will have a shock when seeing. And still coding it all together.

With Delphi you can drag and drop great looking (and more full featured) prototypes in zero time.

It will be limited to Windows, though, I'll give you that.

Re:22 Years of Delphi and It Still Rocks by ptero on Wednesday February 15, 2017 @01:34PM (#13654207)
Clients having a shock after seeing a prototype says a lot about the author and very little about the language the code was written in.

Can you clarify "coding it all together" part. I have no idea what you meant.

Re:22 Years of Delphi and It Still Rocks by barrkel on Wednesday February 15, 2017 @02:35PM (#13654724)
Delphi GUI building is drag-and-drop - no coding.

Of course for more than trivial built-in behaviours you'll be writing code, but for a UI prototype, especially if it's just CRUD forms etc., you can get it built in a few minutes with no code. Drop a database connection component and set the connection properties, and you'll get live data and properly typed and bound controls on the form too.

Compilation takes fractions of a second, so that's not an impediment to design iteration - but you don't need to compile or run to see what it looks like since it's effectively a WYSIWYG form designer.

Re:22 Years of Delphi and It Still Rocks by dfox on Wednesday February 15, 2017 @04:32PM (#13655529)
Problem with Delphi-style RAD tools is that there is huge step in complexity between things that can be done in the designer and these that can not. And this invites particular style of "programming" that consists of searching the internet for existing components and connecting these components together with horrible hacks. It is perfectly possible to write well-structured application in Delphi, but most are not.

[Edit: hit reply too soon] Tk model of UI programming does not promote this that much, because causing stuff to happen by writing code is the default way. Also Tk-style approach of writing GUI definitions in code and letting the toolkit to deal with details like positioning (in fact, using HTML for UI is mostly similar) is more productive.

Re:22 Years of Delphi and It Still Rocks by barrkel on Thursday February 16, 2017 @10:01AM (#13660332)
I don't really want to get into a long-winded discussion, but (a) the GUI definition in Delphi is also code (specifically: there's a declarative syntax for constructing a tree of components with property values); and (b) positioning is handled by the VCL. Typically you specify things like alignments and borders in the designer, and the VCL takes care of keeping things positioned.

I really wish HTML was as easy to design with as the VCL designer. Trying to e.g. create vertically centered children is far, far easier in the VCL than in HTML + CSS.

Re:22 Years of Delphi and It Still Rocks by vintagedave on Wednesday February 15, 2017 @04:44PM (#13655632)
> It will be limited to Windows, though, I'll give you that.

Rather, it'll be limited to Windows, macOS, iOS and Android. :)

Re:22 Years of Delphi and It Still Rocks by nomel on Wednesday February 15, 2017 @12:55PM (#13653892)
I'm assuming this person hasn't actually used Delphi...or Python Tcl/Tk.

I can throw together a very nice looking GUI app in one sitting in Delphi, where laying out the elements and binding and defining events is absolutely trivial.

In Python, with Tcl/Tk, I don't. I use C#, qt, or even flask. Tcl/Tk is absolutely not appropriate for RAD GUI development, unless it's at some hello world level of complexity.

Re:22 Years of Delphi and It Still Rocks by fithisux on Wednesday February 15, 2017 @02:28PM (#13654668)
For my scientific needs, it was more than adequate, and scientists are a big part of programmers (but not necessarily professionals). However in that league eye candy does not count, instead saving lives or making our world better are of bigger priority. Tcl/TK or in its incarnations ScicolsLab/Tkinter/ Ocaml-Tk have saved the day very often.
Re:22 Years of Delphi and It Still Rocks by rkeene2 on Thursday February 16, 2017 @03:34PM (#13663339)
For Tcl/Tk, there's vTcl which resembles Visual Basic 3.0 (for Windows) as far as laying things out. It supports all three of Tk's geometry managers (grid, pack, place) and you can simply drag-and-drop your way to a GUI in seconds if you're into that kind of thing.

Further, there are several experimental projects that support running Tcl/Tk over HTTP/HTML rather than X11, Win32, SDL, the current Mac OS X/macOS GUI system.

TkWeb and WubTk are examples of this.