1,100 karma · joined October 10, 2022
var arr = [_]u32{ 1, 2, 3, 4, 5, 6 }; // 1, 2, 3, 4, 5, 6
const slice1 = arr[1..5]; // 2, 3, 4, 5
const slice2 = slice1[1..3];
If I were to use indices out of range, presumably that would that give me a compile time error? Could I use variables as the indices and, if so, could I get a seg fault at runtime or are there some sort of guards on there?I think that Clojure for the Brave and True[0] is a good place to start for Clojure in general, while Web Development with Clojure: Build Large, Maintainable Web Applications Interactively[1] covers the web app side of things.
[0] https://www.braveclojure.com/
[1] https://pragprog.com/titles/dswdcloj3/web-development-with-c...
Perhaps the more important metric is supply of devs relative to demand. The top paying languages, according to the Stack Overflow's 2022 survey, are generally less popular: Clojure, Erlang, F#, LISP are the top 4. While certainly not an ideal metric (e.g., perhaps salaries are skewed due to more senior devs using these languages), this hints that the demand is certainly there relative to supply as companies are willing to pony up some decent cash for these devs.
Besides Kafka on the Shore, The Wind Up Bird Chronicles, and What I Talk About When I Talk About Running, which of his books would be the best way to get into Haruki Murakami?
> Get unlimited access for unlimited projects with a one-time payment and receive all updates 100% FREE.
If they stop working on it, I imagine that you're SOL.
In my new/current role, I primarily use Python but would prefer not to; however, it's a tough case to make against Python when it's become the default data language (along with SQL).
I think this is wonderful advice. Perhaps in the same vein as existentialists arguing that you get to define the meaning of your life, I like this sentiment that you get to choose whether you've succeeded or not.
This week our Director ordered a total rewrite of two years of work in Python. His rationale: it's what everyone else uses in this space. No reason specific to our use case, just simply to follow the herd. I realise that a large community translates into easy hiring and rich ecosystems, but I despise the mentality as it promotes a monoculture.
I only use a handful of packages, a smidge of Org mode, minimal customisation, & run Emacs in the terminal, so switching to something more modern should surely give me everything I need & many more features in spades. But nothing else scratches the itch despite my best efforts to move to something else.
Perhaps for me Emacs is like an old pair of slippers: comfy, familiar, does what I need it to without fuss. I can't say whether it's a good choice for anyone else, but this grey beard engineer likes it.
Regarding Python, I've always disliked its functional whitespace and OO inclination. Given its popularity, though, I'm clearly a minority!
TL;DR — to each their own.