• 0 Posts
  • 27 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle

  • Some of this is probably just getting to know your tools. Learn the language, look at others’ code and interrogate what they did and why. The higher-order functions (scary-sounding term, but they’re not actually scary) you mentioned are useful, go learn them and use them.

    Some of it might also be (I haven’t seen your code) getting a better understanding of the problem you’re trying to solve. Figure out what all the separate pieces you need are, and then break those pieces into their pieces and so on, until you’ve got simple, self-contained chunks of functionality that you can give simple names to. Some of those might be functions, or you may find that they’re simple enough that they don’t need to be. Refactor and think about how to make the problem simpler. I think a lot of it is just staring at your work and dreaming of ways the make it simpler and easier to read.

    If you really want to optimize for performance, that can come later once you really have a feel for it.







  • I suspect there are a lot of “Rust devs” that are little more than kool-aid drinkers. Common refrains are that Rust is the fastest language, most type-safe language, and most powerful language. Rust certainly seems to move the state of the art forward in some ways, but you can still write garbage code in it.

    I’ve worked with lots of different people in lots of different languages, and I think I’d rather good people in a bad language than the other way around by a mile.


  • I got a handle on amazon and it came with blades. You don’t need anything special, I literally just bought the cheapest ones, but I have found it helpful to change disposable blades just about every time I shave. Maybe there expensive ones that I could use for longer, but at this point I already have enough blades to last me about 5 years.

    I actually now use a cheap straight razor that takes disposable blades, and the shave is noticeably the best I’ve ever had. It is time consumung, though.