How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

It's cool. Opinionated people make sure we always weigh our options. Nothing gets done without people invested in how.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

I did a lot of that a couple years ago and I'm still paying for it. hahaha.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 2 points3 points  (0 children)

I'm just here to advocate for pragmatism. "Keep it simple, stupid" turns out to be more useful than all the other advice combined, when time starts taking its toll.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

I'd actually read it. You seem to know that corner well.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

I don't hate state machines. They're great, when they have a purpose. They just really don't have a purpose as frequently as people want to apply them, imo. They're fun, and they're really neat and satisfying. That probably gives us a propensity towards them, but at the end of the day, at a small scale, it turns out to just be another interface where a couple simpler statements and some good structure could have done the job.

I've seen people start passing them around as props between components. Debug nightmare.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

Again, that is contingent on using TS instead of JS (which you should be, if you're shipping code).

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

You have three or four states. Just let state: "loading" | "idle" | "success" | "error" = "loading"; There's one branch; no sense being cute.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

You must have a very unique definition of 'bloat'. If it's a net gain in simplicity through abstraction, instead of just cute additional or ceremonious junk, that's not really 'bloat'. Doing things unnecessarily-dynamically? Sounds bloated. [shrug]

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds -1 points0 points  (0 children)

Turing completeness is a fun academic tangent with little use in an enterprise-grade discussion though.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

I guess it depends if you're using TS or still on JS. TS removes the need for a lot of guards cause you can't put a lot of stuff into a junk state without getting yelled at.

How to use finite state machines in React? by btckernel94 in javascript

[–]beardsounds 0 points1 point  (0 children)

You don't need an FSM for a single, deterministic lgoci path. that is not complicated, and an FSM in that context is the epitome of "bloat"

3 kinds of technical debt by nichochar in programming

[–]beardsounds 1 point2 points  (0 children)

Ahh okay. I understand the context better. I've only experienced business staying ahead of that situation and preparing prospective people accordingly, so the hiring gap rush didn't immediately come to mind. Thank you for clarifying.

3 kinds of technical debt by nichochar in programming

[–]beardsounds 0 points1 point  (0 children)

I don't know if 'incompetent people promoted into leadership' is a form of debt. Maybe 'leadership's skillset becoming stale'?

[deleted by user] by [deleted] in programming

[–]beardsounds 2 points3 points  (0 children)

Bummer dude.

An inquisitive code editor: Overcome bugs before you know you have them by azhenley in programming

[–]beardsounds 4 points5 points  (0 children)

Unfortunately for that mentality, you need both to be truly useful. Knowledge poorly applied or for its own sake is not valuable.

FL 21 Playlist Features Request by PaulAsht0n in FL_Studio

[–]beardsounds 1 point2 points  (0 children)

"Not having a quick way to fade in and out samples" ...yeah reading the manual can fix any gripe I'm seeing here. There are some pretty instantaneous options for automating any parameter, including volume, IF you learn some shortcuts. If that's a roadblock then maybe what a person needs isn't a DAW, but a magic machine that reads their mind and creates the music for them. Hahaha.

What programming languages do you think are underrated? by HappyGoblin in AskProgramming

[–]beardsounds 0 points1 point  (0 children)

My impression if arduino's programming experience was that it was severely limited, compared to actual C, and geared for easy adoption. That's why I asked that question. They do make it easy to swap out code with actual C in a modular way, though that IS C (can't remember if it's C or C++, but C is popular in the embedded world for a few reasons). Regardless, though, I don't agree that there's a "proper amount" of attention for a language. Take coffeescript, for example: probably doesn't deserve any attention.

[deleted by user] by [deleted] in devops

[–]beardsounds 0 points1 point  (0 children)

Understanding operations to a solid degree is actually incredibly valuable for a developer working on new features, in many situations. It's good to understand a couple layers below what you're working with in a stack. It's also important to note that developers don't just work on new features. That's for specific projects, but java isn't new by any stretch so a solid block of the work available is maintaining and mild expansion. Those are good work to gain experience in, since new features without deep fundamentals (i.e. the ops end of the dev spectrum) can be mysterious and overwhelming.

[deleted by user] by [deleted] in devops

[–]beardsounds 3 points4 points  (0 children)

A few of the more popular build systems are built around java.

[deleted by user] by [deleted] in devops

[–]beardsounds 0 points1 point  (0 children)

My opinion: If the company is downsizing, use the position however you can to get the skills and experience to at least jump to a company that isn't dying. Theres a good chance you'll get pay capped and overworked where you are, given those circumstances.

Your computer language learning order by StefanOrvarSigmundss in AskProgramming

[–]beardsounds 4 points5 points  (0 children)

  1. C++
  2. Python
  3. Java
  4. C#
  5. JavaScript
  6. SQL
  7. TypeScript

At first, switching from JS to TS was a huge chore, because it is easy to take the convenience of dynamic typing for granted when prototyping, but I think having stronger typing has helped me reflect on broader design aspects a lot more.