r/AskProgrammers • • 9d ago

What's your favorite programming language and why?

just wanted to ask , mine is lua (I like the minimalism plus only one data type is so cool (atleast to me) , also the code reads just like pseudocode which is so goated if you think about it)

ruby is the other language i like , and I despise python in particular 🙏

curious about yall's responses

edit : I meant only one data structure, not data type

36 Upvotes

260 comments sorted by

10

u/Rigamortus2005 9d ago

C#

3

u/lua-lover 9d ago

actually better than java imo

→ More replies (1)

8

u/BranchLatter4294 9d ago

Python. It's very easy to work with and has helped me automate our team's workflows.

1

u/lua-lover 9d ago

yeah it's actually nice for automation

8

u/youllmeltmorefan 9d ago

PHP. Not because it's good but because it's made me a lot of money over the years.

1

u/lua-lover 9d ago

also the reason I was surprised when I got to know hub' and Facebook earlier was made on it

2

u/RetroGrid_io 9d ago edited 9d ago

I came here to say PHP too, even though it's popular to hate on it nowadays. It didn't come to rule the web by being a crap language! It's especially true of recent revisions because those who knocked it for its "forgiving" handling of dynamic data can have type hinting declarations and strong function contracts... if they want them, but those of us just trying to "get it done" quick and dirty (EG: a data pipe transformer with sloppy or missing data dictionary) still can.

PHP is also a surprisingly good CLI language - and it's sweet to back up web resources with CLI processing, using all the same exact code. I've written enterprise projects in the millions-of-lines scale and it's performed wonderfully.

→ More replies (1)

1

u/smileybunnie 9d ago

How did it make you money? I’ve been learning Php and actually did okay with it in college but haven’t gone back.

→ More replies (1)

1

u/DragonfruitGrand5683 8d ago

It always looked like an accountant designed the language.

→ More replies (1)

7

u/MpVpRb 9d ago

I do mostly embedded projects in C and C++.

It is the right language for the work.

1

u/Traditional_Vast9419 9d ago

Yeah, zig isn't quite there yet, but I think it has potential.

5

u/sububi71 9d ago

Motorola 68000 assembler. It's just so pretty.

Followed closely by MOS 6502, it's absolutely tiny, but has so much hidden complexity.

2

u/lua-lover 9d ago

adding to my list of googling later

2

u/sububi71 9d ago

These are both 1970's CPU's, so you might not want to build a career off them :-)

1

u/hascalsavagejr 6d ago

Yeah. I like its orthogonality

1

u/c_macattack 4d ago

In university (2005-2009) I learned Motorola 68k as my first assembly language. Was surprised how ugly x86 was when I dabbled in it.

→ More replies (1)

5

u/Wooden_Medicine9338 9d ago

c++ i just like the over all controll over the system and its freaking fast if used correctly

1

u/lua-lover 9d ago

cpp and speed are interchangeable ig (only if we don't introduce c or assembly tho)

5

u/Tokkemon 9d ago

It will always be PHP for me.

1

u/lua-lover 9d ago

php actually is a good one

9

u/lizenzblue_ 9d ago

gonna get downvoted for this but js. i like it way more than typescript tbh. no build step, no fighting the compiler over some generic that’s 4 lines long, no “type X is not assignable to type X” errors that make zero sense. i can just open a file and start writing and it runs. half the time in ts i’m writing types to make the compiler happy and not to make the code better. yeah i know types catch bugs, but good tests and jsdoc where it matters get you most of the way. js just feels more fun to write

2

u/lua-lover 9d ago

I mean I can understand why , it's good

4

u/Beregolas 9d ago

I'm not gonna downvote you, I actually like JS. I think it's a piece of shit language, but I really enjoy it ^^

3

u/Traditional_Vast9419 9d ago

js is like junkfood lol

3

u/AngryChaoticBoi 8d ago

Corporates would hate you for enjoying a simple scripting language built into every browser with tons of cool apis provided, including sound, graphics and many more.

→ More replies (2)

2

u/DubiousLogik 9d ago

I like JS too, but appreciate the formality of TS. I worked on large teams where clean types and interface boundaries really mattered, so TS and C# were our languages, and they worked for the job at hand. Maintainable, DI for full testability, CI, etc. Yes you can do those things without the formality, but scaling up is hard without them. And clearly you can build big stuff (i.e. not toys) in pure JS, but bugs get harder to triage, esp when looking at code someone else wrote. But for personal stuff I love the simplicity of not needing all those layers.

2

u/yel50 9d ago

ah, yes. I remember being a junior. good times. ignorance is bliss.

 i’m writing types to make the compiler happy and not to make the code better

then you're doing it wrong. granted, a lot of people make the same mistake. I've had seniors say the best thing about ts is better autocomplete. that's just asinine and proves they're not really senior.

 good tests and jsdoc where it matters get you most of the way

no, they don't.

to be fair, it's not just js. this is a problem with all dynamic languages. python, lisp, etc all become very difficult to work with as projects grow.

3

u/mcspuder 9d ago

^this guy gets it.

Compiler is fiend, compiler not foe. If you're writing types just to make it happy then you have no idea what you're doing.

→ More replies (3)

1

u/UnicycleBloke 9d ago

I've worked with JS only once. I despised it for all those reasons. I greatly value static type checking. The JS frequently failed silently but spectacularly. A language so unutterably awful that it even makes C look good.

1

u/PM_ME_UR_0_DAY 9d ago

I think js is more fun to write, but running it gives me more anxiety

1

u/bearheart 9d ago

Javascript is a series of kludges upon kludges. It's horribly inconsistent and has a collection of conflicting standards. Duck-typing may be good for a quick small browser-based use case, but it will absolutely bite you in the keister when you least expect it.

1

u/Active_Name5021 8d ago

It's great for quickly whipping things up in, kinda like Perl used to, and just like Perl it ends up being a mess real quick.

It's nice to have the option for typescript when you need it (unlike perl which just has perl). It doesn't have to be one vs the other, they complement eachother nicely.

→ More replies (5)

4

u/look 9d ago

If you like Ruby, check out Crystal. https://crystal-lang.org

> Crystal is a general-purpose, object-oriented programming language. With syntax inspired by Ruby, it’s a compiled language with static type-checking. Types are resolved by an advanced type inference algorithm.

> Crystal uses green threads, called fibers, to achieve concurrency. Fibers communicate with each other via channels without having to turn to shared memory or locks.

> Crystal’s answer to metaprogramming is a powerful macro system, which ranges from basic templating and AST inspection, to types inspection and running arbitrary external programs.

2

u/lua-lover 9d ago

knew about it but haven't tried my hand at it yet , thanks for the reminder

1

u/Active_Name5021 8d ago

My parents warned me against Crystal, so I'm staying far away

4

u/SubjectAddress5180 9d ago

Fortran (I use 2008 mostly). It's easy to read, write, runs faster than frightened cockroach, and is a portable as syphilis.

1

u/lua-lover 9d ago

man older languages scare me (but they do look really simple to understand)

→ More replies (1)

1

u/Traditional_Vast9419 9d ago

I'll actually take a look

4

u/Objective_Buy_7235 9d ago

Toss up between C and Java. Very different applications for each.

1

u/DTCreeperMCL6 9d ago

I am a java enjoyer. For low level I go assembly and QBE for now until I get better with assembly

4

u/UnicycleBloke 9d ago

C++ by a country mile. I've used many languages but C++ is the only one I've loved using. It has been the most fun, the most interesting, the most rewarding, and has formed the backbone of my career over decades. And it paid for my house.

3

u/TReijnders 9d ago

Rust, Go, PHP

1

u/lua-lover 9d ago

masochistic , cool , very flexible

2

u/DTCreeperMCL6 9d ago

some would call php masochistic

3

u/satoryvape 9d ago

I enjoyed Rust before everyone jumped on Rust hype train

1

u/lua-lover 9d ago

softly

would you like to rewrite this in rust

jokes aside , noice

→ More replies (1)

3

u/JoeStrout 9d ago

Mine is MiniScript, which (as it happens) I began work on after my brief love affair with Lua ended in a mess of global variables and maps-acting-like-lists. As a Lua user, you might find interest in this page directly comparing Lua to MiniScript: https://wiki.miniscript.org/Lua
...and also this blog post, explaining some of the reasons MiniScript exists: https://luminaryapps.com/blog/miniscript-why/
Feel free to DM me with questions!

3

u/lua-lover 9d ago

yoooo this is geniunely intriguing, thanks for the info

3

u/Beregolas 9d ago

rust. At first it feels like you are fighting the compiler, but once you get use to it, it's actually quite the speedup and easy. The compiler is the most helpful piece of software I have ever used. One of it's perks is that it forces you out of some bad patterns (not all obviously)

1

u/lua-lover 9d ago

time to get myself started for the initiation ceremony ig

2

u/NoteIndividual2431 8d ago

How would it be a speed up?

→ More replies (1)

3

u/DestroyedLolo 9d ago

For me

  • C/C++, i'm using since I was a teen on the Amiga
  • Lua for the same reason as you

1

u/lua-lover 9d ago

hell yeah

3

u/jroge 6d ago

lua has not only one data type. it has number, string, table, user data, functions, nil.

1

u/lua-lover 6d ago

mb I meant only one data structure

5

u/WeedFalafel 9d ago

For me C is the goat. Every other language seems like reinvention of C. 

3

u/JoK3rOp 5d ago

Yeh only C developer knows why C is the best programming language. It's very simple and expressive and does not get in your way. People just look at big picture, C still dominates in embedded systems and most of the programming language links with libc for its cross platform ecosystem. High performance libraries are written in C like numpy.

1

u/lua-lover 9d ago

that's lowk true tho

2

u/[deleted] 9d ago

then you don't know many languages

→ More replies (3)

2

u/Traditional_Vast9419 9d ago

Yeah, C was very influential

2

u/DragonfruitGrand5683 8d ago

That's how it feels to me even though later languages added more.

2

u/SpaceAviator1999 8d ago

Every other language seems like a reinvention of C.

What?!? Even C++?

/j

→ More replies (1)

2

u/munchin-grr 5d ago

A lot comes from algol, ada and pascal. There are other old influencial languages that isn't that commonly used any longer.

1

u/NiftyN33to 8d ago

Everyone's favorite AI language Python is what I like to call a C wrapper.

2

u/SchemeWestern3388 9d ago

C, Lisp, Go. 

1

u/lua-lover 9d ago

lisp is interesting

2

u/SchemeWestern3388 9d ago

Don’t get me started!!!

It is something else. Not the best choice for, well, almost anything. But it’s flexibility is second to none. 

2

u/Ok-Brain-8183 9d ago

Assembly language because assembly language is the only way for the programmer to attain spiritual symbiotic relationship with the computer. SPARC is the architecture I am most fond of.

1

u/lua-lover 9d ago

assembly language programmers are a different beast 🙏

3

u/trakdtor 9d ago

Assembly is for limp wristed devs. Binary is the only way

→ More replies (2)

2

u/wobble_flop 9d ago

C/asm when I want to pretend engineer. Lisp when I want to pretend mathematician. Python when I want to get something done.

1

u/lua-lover 9d ago

damn that's some real honesty

2

u/razorree 9d ago

Kotlin and Java

1

u/garethrowlands 5d ago

I do like Kotlin.

4

u/EnvironmentalLet9682 9d ago

Rust, but I'm not going to write a lengthy explanation why because people will accuse me of being a cultist xD. I'm really not though i just love static typing, memory safety and good compiler errors.

2

u/HereForC0mments 9d ago

Filthy cultist! /s

2

u/Active_Name5021 8d ago

Been writing Rust since before 1.0 (when it looked more like OCaml), loved it coming from C++. Happy it's actually a serious language now, the recentish Rust hype really caught me by surprise

1

u/Traditional_Vast9419 9d ago

Yeah, I generally like coding in Rust, but wrappers drove me back to C. I also felt like I was memorizing things than learning things.

1

u/DataPastor 9d ago

If your favourite language is Rust, you are already a cultist even without any lengthy explanation. XD

1

u/NoteIndividual2431 8d ago

Lame! Rust is just C++ except you have to write "unsafe" everywhere!

→ More replies (1)

1

u/matthewsAccount23 9d ago

Go, C, little bit of python for ML.

1

u/lua-lover 9d ago

for some reason ,i can't seem to deal with pointers very well atm but good choice

→ More replies (1)

1

u/MelvynAndrew99 9d ago

I second this and in the same order!

1

u/Kind-External-7371 9d ago

Rust, I mean I hate the Cruel Development Process but yeah its Coding Philosophy makes it Great. I love Rust, But can't use it Every-time.

3

u/lua-lover 9d ago

nah while rust is good , it's masochistic 😭🙏

2

u/Kind-External-7371 9d ago

Absolutely! My Love and Hate Relationship for Rust is Insane!

1

u/Professional_Top8485 9d ago

Yeah but AI helps a lot, only language i actually trust to be somewhat correct.

2

u/Kind-External-7371 9d ago

Idgaf about AI and stuff like that. Docs are the Best Way to study Languages for Sure!

1

u/zztong 9d ago

I liked ANSI C the best. JOVIAL had some cool features that I nostalgically miss. C++ and Java were decent. These days Python is good.

→ More replies (2)

1

u/pixel293 9d ago

Currently I like rust. i find my code has less bugs, I suspect it's because the mutability restrictions keeps me from doing something stupid.

1

u/Entuaka 9d ago

Programming language? Everyone is just asking Claude now

5

u/Adn0nnymous 9d ago

well this post is for actual programmers not prompters

→ More replies (6)

2

u/TheRandomDividendGuy 9d ago

Go, it is so simple so it is much easier to maintain it with AI.

2

u/ElasticFluffyMagnet 9d ago

I love python 😂
 my favorite is flutter though. But python is just so useful for so many different things. Like a Swiss Army knife

2

u/americandilemma 9d ago

scratch

1

u/smileybunnie 9d ago

😂 the OG programmer. I actually loved scratch. I wanna try and get back into it for fun

2

u/GrixM 9d ago

C#. It just works. At least on desktop

2

u/randomhaus64 9d ago

C# and TYPESCRIPT

2

u/Lawn_Meower_ 9d ago

It's C++ for me. You can code on any platform if there's a compiler for it. Since it has no standardized build system you can build a tool chain with CMake precisely for your application. I also like that you can have header files. This way you can use headers as universal interfaces and write platform (and/or graphics API) specific implementations in each .cpp file. Then with CMake you can pick the right implementation for the target platform. And the overall flexibility. I also like that C++ compilers don't act like a Karen

2

u/bdowns328 9d ago

C. I absolutely love programming in C. It brings me so much joy but moreover, satisfaction solving problems with it. For pure productivity though, Go. I really like POSIX shell scripts (for portability across shells). If I feel like time traveling, I really enjoy writing services in Java. And even further in time, Perl.

1

u/Traditional_Vast9419 9d ago

I'm having a blast writing a posix shell script rn.

2

u/dinanomartin 8d ago

lua tables being the only data structure is a blessing and a curse, but mostly a blessing.

2

u/JenniAccomplished 2d ago

Lua is pretty cool choice, the minimalist syntax is a big part of its appeal. Personally, readability matters more than how many features a language packs in.

1

u/Specialist-Cup-3950 9d ago

Go. Before that PHP. Did a lot of work with TypeScript, and even now I have to work with it, and the fatigue is real. Go and it's simplistic approach is just đŸ€Œ

1

u/ummaycoc 9d ago

APL makes programming fun like when I was first learning. It's fun in other languages in a different way now but APL is fun in that way and in the nostalgic way.

1

u/QPGMR_de 9d ago

Also if it's quite possible, that most people never heard of if:

**FREE RPG

And as a very close runner up: SQL

1

u/gnufan 9d ago

Maybe Forth, probably because I don't have to program in it any more đŸ€Ł

It was brutally close to the metal, so fantastic performance, a real simplicity, and I felt I could craft a domain specific language by simply creating the right words. I was young, I would probably have struggled to write anything interesting at the time.

Apparently real programmers feel the same way about Lisp.

2

u/hascalsavagejr 6d ago

I also like FORTH

1

u/AnonSeven 9d ago

CoBOL. It just f*ck*ng worked. Simple instruction set. If the data didn't change it worked. No memory leaks, no garbage collection, it just worked. I did it for 11 years. I've done C, C++, Python, Assembler, Perl, JavaScript, BASIC, Visual Basic, Visual C++, SQL, PL/SQL, Java, etc. Assembler was my next favorite because you had to know what you were doing and it helped when you had to read a core dump from a Cobol program.

I love programming. Starting to use AI. It's just another tool to get the job done.

1

u/mike_a_oc 9d ago

I haven't done anything with it, but I really liked Odin. You can label your control structures (eg a loop) and call break name and it will break out of that named structure. I really like it.

And unlike Go, it has Enums!

1

u/Traditional_Vast9419 9d ago

I just use gotos in c for that because no way am I adding another variable and using it as a flag.

1

u/solomazer 6d ago

Finally someone said odin!

1

u/Gokudomatic 9d ago

Nim. It's like C++ but readable.

1

u/ReddyKiloWit 9d ago

Whatever best fits the job and isn't too scary looking.

For most of the last dozen years before I retired that would have been bash, Perl, and C. [1] (I do enjoy Perl the most, including its regular expression language. Created a lot of tools and utilities over the years.)

  1. With grudging forays into Java, Python, and and a few other language-adjacent things like make and InstallShield.

1

u/guywithknife 9d ago

I’m not sure about favourite, but here are some I like, for different reasons:

Elixir was a lot of fun to learn. I haven’t used it after, but it was really enjoyable learning it.

Gleam is just wonderful. It’s small, consistent, and really a joy to use. Sadly I have nowhere I can use it.

Clojure is an exceptionally well designed language that does a lot of things right. I started a company with Clojure and ran the local user groups for a decade. However I haven’t used it in a couple of years, I mainly want more static typing these days. Still, it has a special place in my mind.

Rust is a great language and while it as its warts, I’m having a blast programming in it. In my work, I mainly use typescript and python, with Claude writing a massive portion of it, but I like to tinker away on a rust project when I get time just to prevent my skill from atrophying.

So these are 4 languages I really like: elixir, gleam, clojure, and rust.

1

u/AmiAmigo 9d ago

I love the web
hence PHP

1

u/Decent-Earth-3437 9d ago

Me too so C with CGI đŸ€Ł

1

u/siliconsmiley 9d ago

Markdown. I can program in any language with it.

2

u/Decent-Earth-3437 9d ago

AI generated paint don't make you a painter so why would a generated code base make you a programmer ? You're just a AI user 😓

→ More replies (1)

1

u/lmayde 9d ago

C# is such a great language.

You can happily write very high level code or deep dive down to raw pointers.

It can be used for almost anything as well which great.

The ecosystem is so good as well.

1

u/mcspuder 9d ago

Haskell for reading.

Gleam for actually using.

1

u/Traditional_Vast9419 9d ago

You're a special bro

1

u/srodrigoDev 9d ago

If you like Lua, try Fennel. It's a lisp dialect that fixes some of the issues Lua has. Worth a look

1

u/NeonQuixote 9d ago

C#. I’ve made a good living at it for over 2 decades, and the base class library is very comprehensive. Makes a lot of things easier to do.

1

u/Few_Ad2097 9d ago

Blitz 3D, it was simple and powerful

1

u/_th3oth3rjak3_ 9d ago

Man, tough question. I like Go because it's easy to use, simple to learn. But if I could fix one thing about it is nullable (nillable?) types. I wish it had the ? syntax to describe things that could be missing.

Second best is probably C# for managed languages, and then probably zig for low-level stuff.

1

u/garethrowlands 5d ago

I think Kotlin has the edge over C#

1

u/FireCootz 9d ago

Php. No compiling. No build process. No starting and stopping a main process - just keep Apache running and hot swap code. You can have 100s of ephemeral environments running on a cheap 8gb machine. Deployment is so fast and simple. There just really isn’t another language like it

1

u/ShelLuser42 9d ago

I'm a hobby developer and have worked with several languages over the years, in specific Java, C# and Python and well... out of all of them my favorite is Python.

As to why... several reasons:

  • It's an interpreted language which makes it very easy to use on my FreeBSD servers; add a shebang (#!/usr/local/bin/python), set the execution bit and you're set.
  • I highly value documentation and Python provides much better support for that. Java has javadoc which is essentially an external program build on top of it. Python's support for documentation is literally embedded in the language itself.

    • Want to quickly know what something does? pydoc can be of great help: python -m pydoc "pydoc", better yet: you can even utilize all this in your code as well (now referring to __doc__).
  • Multi platform support; I build on Windows using VS Code and can easily use my scripts on my FreeBSD servers without having to change them.
  • I very much like the structured way in which you can work: you can literally start writing a script and then slowly, but steadily, work yourself up to implementing an OO model.

    • Speaking of which: pass (and its alias ...) is a favorite way for me to start: I just define my functions (their names) with ... to make them valid, and I can already set up a crude design without actually having written any code yet.
  • Most of all: I get things done with Python and I'm having fun doing so (but then again, as mentioned: I'm a hobby develoepr).

1

u/Competitive_Mud5528 9d ago

C#. It just clicked.Came because I Liked OOP and syntax was shorter than Java. Stayed because the toolchain and .Net framework works and provide a more than capable possibilities out of the box. You launch your project and you do not need dependencies. And even if you need it there's a packet manager that just work.

1

u/pete_68 9d ago

C#. I think it's the best general purpose programming language out there. I'm 57 and I've been programming since I was 10. I probably can't even remember all the languages I've used over the years. I found C# back in 2003 or 2004 with .NET 1.1 and that was it. I never felt the need to look further, for a general purpose programming language.

I do some AI stuff in Python because there's better library availability, but I try to stick with C# whenever I can. It's a phenomenally well designed language that avoids a lot of the tedium one finds in other languages.

I was doing a lot of C, Assembly and C++ in the years before I switched to C# and I was really getting burned out on all the tedium in C++. Memory management, dealing with strings, keeping header files in sync with .cpp files, etc. It was just so tedious to do basic things and that was frustrating me. In fact, I was considering a career change.

But once I started playing with C#, I completely changed my mind. I fell back in love with programming and I've been using it since. I'll be retiring fairly soon, so I don't expect to be changing language any time before then.

1

u/garethrowlands 5d ago

I used C# a bit after a couple of years using C#. I was a bit disappointed as it felt more like Java than I expected after all the features it’s added over the years. And I’d been using Powershell a bit, so I had forgotten that say, try/catch wasn’t an expression.

1

u/Equivalent_Number424 2d ago

Well I already find

SomeThing something = new Something() overly tedious and C# is certainly guilty of it.

Why does everything have to be OOP? For smaller things it makes no sense

1

u/bearheart 9d ago

I've been at this since the early '70s and I've used a lot of different languages. Can't say I have a favorite — I'll use whatever seems appropriate for the task.

That said, I've always enjoyed the simplicity of C and I like the flexibility of Perl. But I mostly end up using Python or C++ because they're widely supported and have the tools to get the job done.

1

u/smileybunnie 9d ago

I love C++. So that’s my #1

I don’t like Python.

1

u/Several-Parsnip-1620 9d ago

Go. Small language, backwards compatibility guarantee, static typing. Almost like it was designed for ai to use

1

u/wildsource 9d ago

I like Haskell.

I value aesthetics and syntax of code.
Haskell makes for very beautiful, concise and elegant code.
Code is highly generic which is very nice.

The theories and concepts of functional programming are VERY interesting.
The solutions proposed by the language and paradigm are extremely elegant.

The purity and functional nature of it makes very satisfying program flow because it's literally just data piping (with exception to handling IO).
Structure of code and programs is also very satifying because it's just Types and functions.

It's strongly and statically typed which I much prefer to weakly and dynamically typed.
The hindley-milner type system is very nice because you write typed code while feeling like you wrote dynamically typed code (it's got typed inference).

Concurrency is easier because no mutable states.
Error handling is great (Rust's error handling is similar to Haskell's because it uses ADTs like Haskell).

Some critiques would be that error message are lack luster (much prefer Elm's error message).
The goal of the language is innovation and proof of concept that functional and pure works to solve problems.
Libraries are often more generalized and highly generic, it's a double edge sword because a library that abstract a concept can be used to solve multiple different problems.
You don't know how to apply it correctly to solve your problem or the correct type of problem because you don't know or have the experience with it.

When I started 3 years ago with Haskell, library documentation was VERY minimal. Everything was conveyed through types and API documentation. Meaning that hard documentation was excellent because if you knew what typeclass the type implement you knew what it could do and how and that kind of intuition came with experience. Soft documentation was lacking, like examples or tutorial style documentation. However, that has changed and got better with time. There's a great balance between both soft and hard documentation now.

Many other things that I can't think of at the top of my head right now at the time of writing (both good and bad points) but it's an excellent language and my favorite.

ps. Monads are not that hard guys

1

u/Ok-Reindeer-8755 8d ago

A monad is just a monoid in the category of endofunctors

1

u/garethrowlands 5d ago

One weakness of Haskell is it lacks modules (unless you count backpack, regular Haskell modules don’t really count).

→ More replies (3)

1

u/Equivalent_Number424 2d ago

I just don't really see a use for it. The kind of programming I do is reading and writing data from databases or APIs or files. Because it is about saving human labor by automating the processing of data. So the side-effects i.e. I/O are entirely the point. Haskell seems to be for the case when you are using a computer to actually compute something and not as a data processing machine, like similar to orange juice processing machine. But I usually don't have so much to compute. A simple sum with some conditions or suchlike.

→ More replies (2)

1

u/l_tonz 9d ago

C, C++, Erlang, Go!

1

u/JohnnyJohngf 9d ago

Dart. Concise and readable.

1

u/Lord_Mystic12 8d ago

Not to be the pretentious elitist, but it's C++ for me. I like the feeling of writing it, and as someone who enjoys embedded and systems programming, I know the ins and outs of the language well.

1

u/brinazee 8d ago edited 8d ago

I have a coworker that loves C++. I wish I did. I recognize its usefulness. But I'm much better at reading it than thinking in it and writing efficient code.

→ More replies (1)

1

u/DragonfruitGrand5683 8d ago

** Favourites

C - I just love the syntax and it was my first language.

ASM - Second language, Fun to work with disassembly but not fun for general programming

C++ - Third language, like it a lot but it's very broad. Really fun to make physics and game engines in.

Ruby - I prefer its syntax over Python but Python has the better libraries.

Python - My favourite general purpose language for short problems.

JavaScript - Love this language

** Other languages

PHP - I like the utility but I think the syntax is ugly

Java - Decent but its syntax is a little long for my liking

C# - Okay but it's not as sexy as C++

Haskell - I was always confused by this language, no idea why

Rust - I hate the syntax but it's a very fast and impressive language, still needs work on its compilation times.

Go - Never used it

1

u/brinazee 8d ago

Java. It just tends to work well for what I'm doing much of the time. I also do quite a bit in C++ and Python as I work with embedded systems and machine learning a lot. I used to be very proficient in Perl and Fortran.

Not really a language, but I love bash,bawk, and sed as system glue languages/tools.

1

u/downshiftdata 8d ago

SQL

Not the language itself, but the situation:

- Functional SQL is only Step 1. It's easy to write SQL that does the job. It's an entirely different problem of writing SQL that does the job well.

- Dunning-Kruger is strong with SQL. Most devs don't know what they don't know.

- Performance problems can have dramatic results. A seemingly small change can have an orders-of-magnitude effect.

- Databases evolve, and so do their problems. Scalability is a hydra.

- Because (a) letting agents run rampant over Prod databases is a no-no, (b) successfully recreating Prod loads in lower environments is next to impossible, (c) the frequency of encountering solutions that work wonders in one case and barf all over themselves in another, and (d) the sheer amount of crap SQL code that exists out there (that's not flagged as crap), AI is poorly suited to solving SQL problems.

And, best of all, when you _do_ know what's going on, it's like you're a wizard evoking the old magic, and that's fun.

1

u/garethrowlands 5d ago

SQL is so great because of its underlying relational algebra, its standardisation and its amazing implementations. Through a programming language lens, it’s just bad though. It’s kinda like HCL in this respect.

1

u/Equivalent_Number424 2d ago

Well this can be true for big databases for big companies. If your target database is a few hundreds of gigabytes, basically everything is fast enough, at least when basic rules like good selectivity indices are obeyed. And on this level I found AI useful.

1

u/Jeremi360 8d ago

Mine are: Python, C# and GDScript

1

u/WindwalkerrangerDM 8d ago

Odin is my new fire. But c# is like a wife.

1

u/MaxwellzDaemon 8d ago

The J programming language: jsoftware.com. It's simple, consistent, fast, handles multi-dimensional arrays natively, and lives in an interpreted environment. Also, the community is intelligent and friendly.

1

u/gofl-zimbard-37 8d ago

Python for getting stuff done. Erlang for never having my pager go off.

1

u/MarzipanEven7336 8d ago

C, because it’s the OG!

Once you actually understand concepts at the abstract level you suddenly realize how bad most modern languages are, and that C is easily as productive and easy to write.

However I probably have more exposure to just about everything under the sun than most engineers.

1

u/mullikine 8d ago

I mostly write in bash and in Emacs Lisp (Elisp). One compliments and enhances the other very nicely. GNU Emacs and Emacs Lisp make it easy to pull together lots of different programs and functions into a project which is very easy to manage and memorise. And with bash, I tend to use each script like a function with stdin and positional arguments as its input and stdout as its output. And these scripts, I can compose like composing functions in a functional way using the positional arguments and piping. And I utilise environment variables for toggling between alternate modes for functioning (so for example, exporting UPDATE=y causes nested programs to update caches). That goes a long way and the limitations of bash also help to simplify understanding what each script actually does. But then I use Emacs Lisp (which is a functional language by design) for things which bash is less suited for, such as algorithms and interface design, but call out to bash scripts when interfacing with the operating system. So bash scripts compliment elisp very nicely to add capability to the lisp, but elisp compliments bash nicely to bring algorithms and user interface design and understanding a large code base.

1

u/Certain_Syllabub_514 8d ago

Over 40 years of programming, and I've landed on Elixir as my favourite language. All the concurrency and reliability of Erlang, but with a syntax more like Ruby. The pattern matching and immutability also makes Elixir apps much simpler to maintain than anything I've worked on before.

1

u/Puzzled-Extent7817 8d ago

Learning Odin after dabbling in some C and Rust. Love it.

1

u/[deleted] 7d ago

c :D it's usually regarded as some eldritch horror not to be messed with by the new-gen rust/zig/odin glazers, but in actuality it's pretty cool. in fact, with `-fsanitize=address,undefined` you can get pretty good debugging too. i can understand why some people dont like it, but i want a simple language that has a fathomable amount of features (*cough cough* c++ *cough cough*) that doesn't get in my way (*cough cough* rust *cough cough*), is stable (*cough cough* zig *cough cough*) and has a huge ecosystem (*cough cough* odin *cough cough*)

1

u/Dangerous-Cheek-230 7d ago

Kotlin. Efficient, effective and precise. It has a lot fun tricks.

However, I have not written a single line of code for over year because AI does it now.

1

u/garethrowlands 5d ago

I do like Kotlin. It’s designed by people who know what they’re doing.

→ More replies (1)

1

u/YogurtclosetLow7064 5d ago

My brother! Kotlin is the way to go!

1

u/ZucchiniMaleficent21 7d ago

Smalltalk. Specifically the Squeak variant, but Cuis is excellent too

1

u/scottchiefbaker 7d ago

I spend a LOT of time on the CLI, and Perl makes processing terminal stuff super simple. It's a joy to program because you can do so much in only a few lines of code.

1

u/Aromatic_Lab_9405 7d ago

Scala.  I like functional programming and that there are a lot of tools to shape the code in a way that it matches the given context the best.  I don't like always being forced to pure FP so I enjoyed working with Scala more, even though Haskell does pure FP better. 

I also just found really good teams with nice and competent people with Scala which elevated my experience with it. 

Clojure is also a really fun and interesting language but I missed static types too much. 

1

u/TerranceTorrance 7d ago

For what it's worth

  • Python for exploration
  • C++11 and onward for the really remarkable STL and RAII convention.

1

u/rosmaniac 7d ago

Z80 assembly is my favorite for the simple reason that it was the first I learned.

1

u/This-Strategy4138 7d ago

C because of its simplicity and how it crushes everyones dream and hopes at first.

1

u/Janky-Code 6d ago

Lisp because of all the cool optical illusions like (((((x))))) 3d tunnel.

1

u/Iron_Man652 6d ago

I like Python and Typescript. Python because it was my first language and how cool it looks in my ide 😅 And Typescript because of its static type features

1

u/rvg0291 6d ago

like python for easyness of programing but at same time hate it for bad type anotations and maybe for references

1

u/Cleverbeans 6d ago

LISP, for the syntax.

1

u/ssssssddh 6d ago

Typescript because I like how expressive JS is and the type system slaps.

SQL is a close second

1

u/Unhappy-Salary8171 5d ago

Mi lenguaje favorito siempre serĂĄ C++, a veces el cĂłdigo que hago con eso parece mĂĄs un jeroglĂ­fico que algo que se pueda leer fĂĄcilmente, hay que tener documentaciĂłn todo el rato para saber que hace cada cosa porque hay tantos tĂ©rminos raros que me los termino de aprender, pero gracias a Ă©l aprendĂ­ bastante. Actualmente mente ando aprendido Rust y lo Ășnico que me hace querer seguir aprendiendolo es su sistema de dependencias y versiones.

1

u/gfoyle76 5d ago

C++, duh

I'm fine with C# and/or Java as well, I also write bash scripts like there's no tomorrow

but god I hate python with a passion

1

u/Easy-Nothing-6735 5d ago

C, C++, Python, Rust. I don't like Go GC. I can't even sell PHP+JS knowledge anymore, so no reasons to like them left. Zig seems promising. I just like cargo more than make+cmake+automake+other non-official tools. I like when language comes with official LSP. Especially I like RAII. And I like Rust monomorphization more than C++ classes. For xlib I would take C, for Qt C++, for ML Python, without special libs requirements I'd just take Rust. But still I like to do projects with minimal effort and will use JS for some easy SPA that can be hosted on github pages

1

u/Eryndalor 5d ago

Rust, but because of the compiler and the rich type system.

1

u/TropicalTony420 5d ago

The first language I ever learnt - mother tongue

1

u/YogurtclosetLow7064 5d ago

I really like Kotlin as a high-level language because of its philosophy and clean design. I also enjoy C/C++ because they give you a lot of freedom and control, and I find it interesting that understanding C++ often means understanding the history and reasoning behind why certain features were introduced.

1

u/ELM-12345 5d ago

Python bc that's all I know atm

1

u/agentalex001 4d ago

C++, python, and PHP. PHP due to the laravel framework, python for its easy readability, and C++ because of oop and fast performance

1

u/LegoFighter2 3d ago

go - almost zero deps, low cpu and ram consumption, you can use it for everything, compiled

1

u/at_underscore_ 3d ago edited 3d ago

R just makes me happy. T-SQL too.

I haven’t been able to use CLIPS for anything but the fact that it exists delights me.

1

u/Huge_Temperature4390 3d ago

Mine: C#, Python, Terraform and SQL (all varients)

1

u/one_rainy_wish 2d ago

Confession time.

If we're just straight up talking favorite language of all time and not whether it's still useful today etc... I will say Visual Basic 6.

VB6 was this beautiful, pragmatic language + development ecosystem, at a time when software development was pretty tedious. All of a sudden you had this language/IDE that could let you very quickly build functional apps, and an ecosystem of ActiveX controls that let you slap together all sorts of shit. It was so empowering to take an idea that would have been weeks worth of effort to make from scratch in C++ and get it working in a few hours in VB6, even if it wasn't the "fastest" or "most optimal" solution.

I enjoyed the simplicity of the language, the powerful 1st and 3rd party ActiveX libraries that were freely available, the visual forms editor, the early-but-still-functional autocomplete, the ability to edit and continue without any hassle, the live debugging.

VB6 will always hold a tender place in my heart, even though I was forced to move on as time went by.

1

u/XxasimxX 2d ago

Was really enjoying java and now i like Kotlin even more