My favorite language is clearly the best and all others are horrible because

I’d have to go with three:

  • Lisp because it’s the first I used in the real world, and 25 y/o code still runs…no dll hell here babycakes!
  • C# because it’s succinct and also is the one I’ve used the most so feels ‘natural’
  • Python currently (despite duck typing) solely because it helps me create mirth in Blender

I’m so mainstream.

Dood - very :sunglasses:; does it have a name? I’m hoping it’s Kodicode©, but I’m guessing it’s not…

2 Likes

Is bragging allowed?

Posting solutions elsewhere is sort of frowned on by project Euler though.

4 Likes

Not too far off :yum:

btw sweet logo @monsterkodi :slight_smile:

2 Likes

I am a minimalist: it’s called kode :sunglasses:

maybe i should read all replies before answering next time :laughing:

glad you like the logo @benjito i had some fun creating it.

2 Likes

sorry i keep posting ur projects i should just let you answer these >.<

1 Like

Eiffel, because I have not implemented the language at the back of my mind, and because, sadly, no-one has mentioned it.

Eiffel gets full marks for trying very hard to do things right. So do COBOL and SQL, though they can both only fairly be judged in the context of their time. I look down on C (though again, it was an effort one should respect), although I used it more than any other during my career, with the help of various idiosyncratic idioms and compiling on 3 different compilers on 3 different platforms, all with the strictest possible compiler settings.

I am surprised that nobody mentioned Spanish yet: it is a widely adopted, very mature language, with a thriving and rich ecosystem allowing you to select the right tool for the right job. It is a very flexible language with built-in support for reflective programming and many different programming paradigms such as object oriented programming and logical programming. Finally, for tasks where efficiency is important, Spanish might not be the fastest but it is the second fastest language, without compromising any of the previous features.

6 Likes

When I was a student at university for the first time, I solved the first 30 Project Euler problems using C and maths. It was fun.

Not so long ago I did them again in python. It was… boring.

Many of the problems are of the form:

We define a sequence u as follows:

  • u_0 = some value
  • u_(n+1) = something(u_n)

Problem: calculate u_1000000 modulo 4000007.

When I was a student I would approach this with a notebook and a pencil and try to work out the math to efficiently compute u_1000000 modulo 4000007 directly and despite the size limitation of C integers.

Today, I just copy the definition of the sequence in a naive python for-loop without even worrying about the modulo… The computer copes with the calculations even with unbounded python integers.

1 Like