I’m a staff software engineer at Sunrun, the USA’s largest residential solar installer.

I mostly work with kotlin, but also java, python, ruby, javascript, typescript. My hobby is picking up new hobbies. Currently bird photography and camping.

  • 1 Post
  • 29 Comments
Joined 3 years ago
cake
Cake day: June 6th, 2023

help-circle









  • our black cat once ran under the ladder of a bunk bed, crashed into a mirror leaning against the wall, causing it to fall against a shelf and knock a salt shaker off (we were in college, gotta keep your food stuff in your room and whatnot). The mirror crashed to the floor and broke. We didn’t believe in curses and that fully cemented that belief for us.


  • I’m honestly astounded at how many people are suggesting Mint. I recently switched full time to linux and even as a software dev, Mint has to be one of the worst experiences I’ve had with a computer. Not only driver issues, but software issues and general buginess. Along with being butt-ugly, I do not think any windows user is going to confuse Mint for Windows.

    I switched my wife to Bazzite (not necessarily recommending that) and she literally didn’t notice it was a different operating system (even though I told her it was and walked her through it). Bazzite has a nice UI for installing pretty much anything a normie would be thinking to install. The only issue we’ve had so far is that Dropbox just outright does not work on it. I’ve filed a bug with them and have been awaiting a response from their dev team for like two months now. I’m sure they’ll fix it eventually, but if you need the Dropbox UI (you can use rsync otherwise) then don’t choose Bazzite.

    As for myself, after trying out like 6 different OSes, I settled on CachyOS. There are still issues, but it’s pretty dang stable and they’re very fast to fix issues. It’s not for a person not willing to touch a terminal at least once though.









  • Anything but the last one. Don’t duplicate the http code in the body, else you’re now maintaining something you don’t need to maintain.

    I’m not a fan of codes that repeat information in the body either, but I think if you had used a different example like “INVALID_BLAH” or something then the message covered what was invalid, then it would be fine. Like someone else said, the error data should be in an object as well, so that you don’t have to use polymorphism to figure out whether it’s an error or not. That also allows partially complete responses, e.g. data returns, along with an error.


  • Does type inference provide a practical benefit to you beyond saving you some keystrokes?

    it’s more readable! like, that’s literally the whole point. It’s more readable and you don’t have to care about a type unless you want or need to.

    What tools do you use for code review? Do you do them in GitHub/gitlab/Bitbucket or are you pulling every code review directly into your IDE? How frequently do you do code reviews?

    I use GitHub and Intellij. I do code reviews daily, I’m one of two staff software engineers on my team. I rarely ever need to know the type, and if I do Github is perfect for 90% of use cases, and for the other 10% I literally click the PR button in intellij and open up the pull request that way. It’s dead simple.


  • My response to the article is that you’re sacrificing gains in language because some people use outdated tools. Code has more context than what is just written. Many times you can’t see things in the code unless you dig in, for example responses from a database or key value store, or literally any external api. Type inference in languages that have bad IDE support leads to a bad experience, hence the author’s views on ocaml. But in a language like Kotlin it’s absolutely wonderful. If needed you can provide context, but otherwise the types are always there, you can view them easily if you’re using a decent IDE, and type inference makes the code much more readable in the long run. I would say that a majority of the time, you do not care about the types in any application. You care about the data flow, so having a type system that protects you from mismatched types is much more important that requiring types to be specified.