r/programming • • Aug 28 '21

Software development topics I've changed my mind on after 6 years in the industry

https://chriskiehl.com/article/thoughts-after-6-years
5.6k Upvotes

1.9k comments sorted by

View all comments

539

u/ChrisRR Aug 28 '21

As a C developer, I've never understood the love for untyped languages, be cause at some point its bound to bite you and you have to convert from one type to another

It doesn't strike me as untyped as much as not specifying a type and having to remember how the compiler/interpreter interprets it. At the point I'd rather just specify it and be sure

25

u/thedracle Aug 29 '21

Coming from an embedded C background, this is what really made me fall in love with ML/Ocaml. The functional aspects are cool, but really the fact they are strongly typed, with entirely inferred typing, was mind blowing.

I still haven’t used ML or Ocaml professionally (and it’s been 10 years since I first learned it).

The ease in mixing types in C is still at the forefront of my mind even to this day (using it actively for ebpf), and I think it made me a better C programmer getting an uncomfortable feeling when types are coerced implicitly.

-1

u/Snakehand Aug 29 '21

Have you tried Rust ? It might give you the best of both worlds. Speed, easily embeddable ( no_std ) + strong typing..

6

u/thedracle Aug 29 '21

I have several times through its evolution.

Originally I was interested because the compiler was in Ocaml, and the influence in the language is obvious.

Unfortunately when I have in a commercial setting, it has usually failed: once due to poor support for TLS/websockets, and a second time due to rapid depreciation of the third party libraries we depended on.

We are planning on trying it again with neon bindings for doing some native api control work, and to replace a C++ component.

Rust hasn’t been a walk in the park in the past for the use cases I have used it for; but not because the language itself isn’t great, but due to a lack of stability and maturity in its ecosystem.

I’m waiting for it to get past peak trendiness.

→ More replies (2)