Earlier quoted context omitted.
You may love or hate js but it makes great language to start with, runs in your browser and has infinite labyrinths of complexity in every direction - perfect for students to play with. Why nobody is using it to teach?
Because it's a nightmare with ridiculous missing hunks, like the fact that you can't put anything but primitive types in a Set usefully. Why would you use it to teach?
Turkey buys Delphi licenses for an estimated one million students
341–350 of 352 posts
Re: Turkey buys Delphi licenses for an estimated one million students
#342Earlier quoted context omitted.
None of that matters to someone learning how to implement a stack, a linked list, quick sort, etc.
It does though, if you mix near and far pointers, you are going to be getting crashes. Pointer equality and comparison are non-trivial. Whereas on a modern 32-bit CPU you don't have any such distinction.
Re: Turkey buys Delphi licenses for an estimated one million students
#343Earlier quoted context omitted.
They also were quick compilers and fit in a floppy.
If the old harware aphorism is "Never trust a computer larger than you can lift", then the software counterpart to that must be "Never trust a compiler that doesn't fit on a single floppy". "Never trust a compiler that doesn't fit on a single floppy" I'm coining that second expression right here on Hacker News, today, 1/22/2020! I'm fairly certain no one has said it prior... But if they have, then my humble apologies…
Re: Turkey buys Delphi licenses for an estimated one million students
#344Earlier 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…
Or you could use Delphi, install once, deploy on any platform you want, keep your sanity and you not have to worry about anything, including WTF codiva, sequential or leftpad.js are.
Re: Turkey buys Delphi licenses for an estimated one million students
#345Earlier quoted context omitted.
Why would you want to build a restaurant accounting/billing app as a desktop app instead of a browser app?
Because that's what the jobs that are hiring are for in the place the GP lives? I mean, I'd rather browse HN than do work all day, but nobody's going to pay me for that. I was an early web developer who transitioned into a modern one as time passed but I've moved back to desktop application development as of late because that's what was hiring in my area at the time I was looking for a job and I simply am not married…
I'm not asking about why people are willing to do what their boss asks for or their customers offer to pay for.
Re: Turkey buys Delphi licenses for an estimated one million students
#346Earlier quoted context omitted.
> python is probably a more relevant choice. Python doesn't have any standard graphical IDE or even GUI widgets. No modern language can create GUI applications with the ease of use of Delphi, except maybe .NET (which is based on Delphi).
.NET is definitely the easiest possible way to do a widget UI, but it's not based on Delphi in any meaningful sense. Its closest ancestor is Java, via the short lived "J++" https://en.wikipedia.org/wiki/Visual_J%2B%2B (Android later did basically the same thing with Dalvik)
Re: Turkey buys Delphi licenses for an estimated one million students
#347Re: Turkey buys Delphi licenses for an estimated one million students
#348Earlier quoted context omitted.
Is it? Can it compete with c# or swift for desktop applications?
Yes. In the sense that neither C# nor, especially, Swift are suitable as teaching languages. (Nor is Python, BTW.)
Re: Turkey buys Delphi licenses for an estimated one million students
#349Earlier quoted context omitted.
Because it's a nightmare with ridiculous missing hunks, like the fact that you can't put anything but primitive types in a Set usefully. Why would you use it to teach?
Yes, I'd have lesson explaining it's behavior, how it works any why it works this way and maybe assign homework to extend it to support uniqueness based on structural equality.
Re: Turkey buys Delphi licenses for an estimated one million students
#350Earlier quoted context omitted.
Yes, I'd have lesson explaining it's behavior, how it works any why it works this way and maybe assign homework to extend it to support uniqueness based on structural equality.
You can't extend it to support uniqueness based on structural equality, because the Set type uses == to test, and there is no means in the language of overriding that.