funbike

joined 1 year ago
[–] funbike@programming.dev 4 points 1 year ago

When learning on my own, I I prefer to learn things that will last decades rather than years or months. Examples: Linux (bash, core utils, containers), CS (algorithms, data structures), compilers, other paradigms (functional, logic, oop), hardware architecture (logic gates, cpu design, assembly), encryption algos, Vim, etc.

Stuff that I think will only last a few years I will learn as needed on the job or at least on the clock.

[–] funbike@programming.dev 2 points 1 year ago

I think the answer is obvious. Start looking for another job NOW. Work is out there, if you can code.

[–] funbike@programming.dev 5 points 1 year ago (1 children)

Depends on what metric you are looking and how. A warmed up JVM will run nearly as fast as Go or Rust, but many benchmarks fail to take JVM warmup into account and erroneously show Rust/Go as orders of magnitude faster, which is unfair. That said, it would be nice if warm up wasn't required. Graalvm helps in that area, but now you have to do something special.

However, JVM startup time is terrible. It's gotten better and there are ways to deploy a trimmed image, but it's still not as good as most other solutions unless you go into annoying extra steps.

[–] funbike@programming.dev 3 points 1 year ago (1 children)

The JVM is a beast, and it's very inefficient with memory esp strings.

[–] funbike@programming.dev 10 points 1 year ago

You will lose the best candidates with an onerous coding challenge.

Our process, which has been heavily influenced by debate on r/experiencedevs on reddit involves a short phone screen, a 30 MINUTE coding challenge, a tech interview consisting of pair programming, and a non-tech interview with management. Very light.

The coding challenge is a FILTER only. It's not to evaluate who to hire, but instead it's to filter who not to continue interviewing.

You learn a lot during pair programming in a short period of time, including personality and team fit. We let them drive and we just watch and discuss. The assignment is to fix a bug, and refactor the code the caused the bug.

[–] funbike@programming.dev 1 points 1 year ago

I like that you explain the data model near the start, although I think more detail would be better.

I believe it's much harder to master git without understanding the simple underlying data model. Many tutorials don't touch on it and instead jump straight into recipes for various workflows. Users can follow those recipes, but don't really understand what the commands they are using do.

[–] funbike@programming.dev 1 points 1 year ago

Look into "Hexagonal Architecture", similar/synonymous to clean/ports&adapters/onion. As someone else said, combine it with "Repository" pattern.

I use hex arch in front end and back end. It adds a couple of layers, but it makes apps much easier to test and maintain.

[–] funbike@programming.dev 3 points 1 year ago* (last edited 1 year ago)

Yes, but it's a very rare event. Maintaining state (form fields) makes it less of an issue. As I said, most deploys are at 4am at extremely low usage (usu zero), and even then a refresh is only needed if the backend has had breaking changes. A severe bug requires a mid-day deploy, but in my experience most severe bug fixes are only a few lines and therefore aren't a breaking change so don't require a refresh.

Our way wouldn't work well if you had 24 hours of heavy load, but most apps I've written have been US-only with low nightly usage (HR, K-12 admin, power grid, medical).

[–] funbike@programming.dev 5 points 1 year ago (2 children)

Zero downtime deployments can get very complex for heavy usage apps, such as blue-green deployment.

We decided to avoid the complexity with some practical workarounds.

  • Most deployments happen at 4am. "develop" branch merges deploy at 4am, and "master" branch merges deploy immediately.
  • We force browser refresh if the front end detects the back end has had breaking changes. We attempt to re-populate form field values.
  • During database migrations, we send 503 with Retry-After header in response to POSTs. Our client code knows to wait for that time and try again. If the time is too long, the user gets a friendly message that it will try again in X seconds. GETs are handled by an available read-replica, if possible.
[–] funbike@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Here's my simple formulas based on how much I would normally make: Short term hourly = Yearly Salary / 1000. Long-term (2+ months) hourly = Yearly salary / 1500.

So, if your salary before being a contractor was $200K, then you would charge $200/hr for short term work. For a 6 month job, you would charge $133/hr

[–] funbike@programming.dev 1 points 1 year ago* (last edited 1 year ago)

This sounds like vertical slicing (incl bounded contexts), which is my preferred architecture for a monolith. It gives you the flexibility to pivot architecture more easily.

I suggest you look into Evolutionary Architecture, with can help keep vertical slicing

We've gone all-in with SSR+FaaS (aka JAMStack) with multiple projects. You get similar benefits to microservices, but without the complexity. However, hosting can be more expensive under high loads.

[–] funbike@programming.dev 2 points 1 year ago

I found TDD make programming more fun because it results in less debugging. Debugging can be frustrating and depressing when you get stuck.

I've found ChatGPT makes coding more fun, as I don't get stuck as often on hard problems and it can generate boilerplate quick than I can.

Watch videos by Primeagen on Twitch and YT. He's very high energy. Although successful, He has also struggled with depression, drugs, and ADHD in his past, which might be helpful to you. It's inspiring.

view more: next ›