1. What was your first programming language?Given that "batch files" are not really "programming", it was either
QBasic or
Turbo Pascal. However, my memories of QBasic are (too) long gone, so I'll stick with Turbo Pascal. If I remember correctly, my short
Visual Basic experiences were
after that; or were they? Ah, growing old is not for sissies.
2. Can you remember a snippet from that language?Does "Hello World" count?
(I moved my focus to Delphi not much later, which was and still is "like Pascal" but different.)
3. What's your current language of choice?
4. How would you rewrite that snippet in your current language?The one fascinating thing with these two questions is the assumption that there is
exactly one language I'd choose for
anything. Does
anyone here really stick to one language?
Not counting my paid day job (which involves Java and C#), I write
- web applications in C, C++, Python, Common Lisp, or (if I'm in a hurry or I need to maintain existing code) PHP
- recurring server tasks in Perl, POSIX shell script, or Common Lisp
- desktop applications in C or Delphi (I stopped caring for Electron), still maintaining older C++ applications though
- other browser things in JavaScript because they force me to.
Next up (if I'll find some time in the next decade or so): x86 ASM and (more) COBOL.
Do you really need a "Hello World" in all these languages?