Earlier quoted context omitted.
Why would you want to build a restaurant accounting/billing app as a desktop app instead of a browser app?
Because you can do more with a desktop app than a browser app. Not everything is or should be in the goddamned cloud.
Turkey buys Delphi licenses for an estimated one million students
321–330 of 352 posts
Re: Turkey buys Delphi licenses for an estimated one million students
#322Earlier quoted context omitted.
Depends on the Delphi version. Delphi 2 (what i used and still use sometimes) creates a VCL app at around 200KB. Later versions added a bit, but i think it wasn't until after Delphi 7 that sizes ballooned. However i have a feeling that MrGilbert refers to using the Windows API directly without VCL in which case you can create very small executables.
Yes, exactly - sorry I didn't clarify. There were folks out there who created stripped down versions of Systems32 classes, so you had a basic skeleton running. Maybe I should write a progam like that, just for the fun of it. It still works nowadays. I might even get away with FreePascal. I'll give it a try. :)
https://i.imgur.com/bFGIVSU.png
(that 82KB executable uses almost all of the API's functionality, including type registration, dynamic instantiation and object streaming)
Though i never did anything with it, i mainly wrote it for fun. The OWL 1.0 API isn't really that better than using raw Win32 :-P. But perhaps now that Free Pascal added support for Win16 in the trunk i could port it there.
Re: Turkey buys Delphi licenses for an estimated one million students
#323Earlier quoted context omitted.
> Professional programmers scoff at "old" languages like this Old languages? Delphi is a lot newer than C. C in a mostly modern form dates from about 1977; Delphi is from 1995. If you want to just write code in a box and have it run, maybe you should use http://sketchpad.cc/ or https://jsfiddle.net/ . Or code.labstack.com, intervue.io, codepad, codiva.io, paiza.io, compilr, ideone, onlinegdb, repl.it, rextester, myco…
I love the fact that you completely ignore that a large percentage of people do not have internet access, and even if they do it can be very slow. Just because Delphi isn't cool doesn't mean it's not useful. It can teach many concepts that students can build on if they desire to. Heck, you're acting like the first language you learn is even important. I learnt using Visual Basic 6 and it's not like I didn't go and le…
Re: Turkey buys Delphi licenses for an estimated one million students
#324Earlier quoted context omitted.
> Rust [...] everything is web-based Correction: Rust's help and documentation is HTML -based, and getting a local, automatically updated copy is trivial. > even "local" docs launch in a web browser Uh, so what? Can you name a better format for programming language documentation that's also ubiquitously supported?
With Go, the ability to instantly read docs for anything (even just pulling docs for a single function) in terminal is extremely helpful and far superior to a HTML-only approach. "go doc net/http.Client" pulls up the docs for the http client type. It's one of the features I miss most as I code Rust, and the lack is very detrimental to the coding experience, as pulling up a browser is a massive context switch.
Re: Turkey buys Delphi licenses for an estimated one million students
#325I wonder how much Delphi/Idera bribed the head of the Ministry of Industry and Technology for this boondoggle. Allahallah, and they wonder why 10% of our country is illiterate. Every single decision by the government is made from the perspective of "how can I make a lira off of this" MIIT chief Faruk Özlü just bought himself a new mansion in Mugla over the summer. Just saying.
Re: Turkey buys Delphi licenses for an estimated one million students
#326This reminds me of a few ( I then found out that they were being taught to use Borland Turbo C . I suspect the case for this is similar: Some person who once upon a time learnt to program and then never practiced nor developed their skills somehow got a job teaching programming, and is now trying to apply the ancient tools they were taught somewhere around the time when some fish decided to walk on land because its a…
Re: Turkey buys Delphi licenses for an estimated one million students
#327Earlier quoted context omitted.
> Info format. I said "ubiquitously supported". There are several orders of magnitude difference between info format support and HTML support. > Emacs is the most ubiquitous of IDE's That's laughably wrong.
Well, it may be on everyone's machine (just type 'which emacs') but that hardly makes it the most commonly used IDE, which I think is what's hard to stomach.
Re: Turkey buys Delphi licenses for an estimated one million students
#328Earlier quoted context omitted.
The mistake is assuming Delphi is bad and stupid. Delphi is MUCH better than C and C++. Miles ahead. Pascal is what we need, but C is what we deserve. Billons of dollars wasted in it. What it have bad is the massive mismanagement of the owners, and that translate to lack the influx of talent to it. Note: I'm moderator in a Delphi forum and use it for years. I'm now in rust, and is great yet: - Some of the problems th…
The problem I had with Delphi was Embarcardero's pricing. At the time I was looking into it there was no express license or anything similar so it would've been a few hundred dollars to just try and learn. Contrast that with Visual Studio Express which was free and allowed me to learn C#. There was a significant cost to learning Delphi. Since then, however, I discovered Free Pascal and its ability to support multiple…
Re: Turkey buys Delphi licenses for an estimated one million students
#329Earlier quoted context omitted.
> has a lot of anachronisms Such as?
It's not garbage collected, but also, not completely manually memory managed either. I can't quite recall how it works but it's mostly some sort of ref counting + some manual. When teaching, non-GCd languages just get in the way. You don't want students apps to be segfaulting constantly because they're running into memory errors whilst you're trying to teach them something else. Learn programming and get confident wi…
How would automatic garbage collection help in a scenario where you are deliberately accessing an object that you haven't created or have destroyed already?
Re: Turkey buys Delphi licenses for an estimated one million students
#330Earlier quoted context omitted.
I fondly remember using Delphi to create native Windows GUIs. It was really great for this. The reason I stopped using it was that I discovered that there are many more program types than Windows GUIs - and there, C++ (or sometimes C) is really the best. High performance lock-free lists? Support for obscure network protocols? Containers with custom allocators? Delphi does not really work there.
That is an effect of ecosystem, not language. Is interesting to note that you can see "High performance lock-free lists" in many langs, but near none have good GUIs builders. Good GUIs builders are harder, and your "High performance lock-free lists" is easy, also you can use C/C++ libraries in Delphi too...