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.

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

help-circle
  • 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.







  • i don’t know why i’m responding to this, but whatever. doing this all in one post, but i’m responding to both of yours, which is why this is so long. it’s also long because i’m actually responding to the things you say, which isn’t something you seem to know how to do

    I’ve LITERALLY BEEN TRYING THIS WHOLE TIME TO RESPOND TO THE THINGS YOU PEOPLE ARE SAYING. Are you FUCKING KIDDING ME!?! I literally asked over and over again for one of you to actually explain the problems and yet you wouldn’t. So I just went ahead and explained why it wasn’t a problem. Fucking DARVO here. Acting like you’re the ones in the right here.

    first things first, that substack you linked. many things wrong there. immediately, you’re invoking ‘i know a jewish person who says it’s fine.’ ok, on my end i know jewish people who think it is extremely not fine. in fact they were the ones who explained to me why the goblins in harry potter are problematic. second, having read the article it just blatantly lies in its base premise.

    I am no invoking any “i know a jewish person”. I linked one article of thousands pointing out that this isn’t a problem. I have no clue who the author of that article is and ‘knowing’ a jewish person doesn’t matter in the slightest, that’s just anecdotes, not evidence.

    this just isn’t a claim anyone is making.

    YOU literally said, and I quote:

    sadly it still shovels money into her pockets and is about the cabal of hooked nose bankers stealing children to perform rituals

    this author just breezes past the fact that the goblins are bankers which is a whole lot more specific than a generic greed! people don’t say that shit about tolkien (as much, because people do rightly point out problematic elements in tolkien’s goblins quite a bit if you don’t ignore that to try and lie about how people are being mean to a bigoted billionaire) because tolkien goblins don’t run the banks!!! this shit is so blatant it’s unsurprising anyone trying to carry water for rowling has to just ignore it

    what in the fucking world are you talking about. At this point it’s just tiring. You have no actual case so you pretend like being a banker is somehow worse than being a greedy hoarder of gold. Are you serious? In any case, you’re completely ignoring other cases where goblins are depicted as bankers, like World of Warcraft, or Discworld, or one of thousands of other examples that you can find.

    she also claims that there’s no actual child kidnapping in the game, and that if there was it would be fine because other fantasy stories contain bits where people kidnap children to use their blood. i’m pretty sure the first point is untrue, because i can find many references to the goblins wanting to use the main character (who is 15 years old, so firmly a child)'s blood for a ritual, but i haven’t played the game and am not going to so i suppose it’s possible everyone referencing this just made it up in some kind of mass hysteria for some reason. but crucially that second bit is such bullshit it doesn’t matter. the problem is taking all these things together! when you have someone stealing a child’s blood for a magic ritual that is not problematic or blood libel on its own, but it becomes so once you have it done by members of the greedy hook nosed race that run the banks and don’t think it’s possible to own property and prefer to eat raw bloody meat and stab the heroes in the back and have stars of david on the floors of their banks. that shit is antisemitic, a lot more so than the culture broadly already is.

    Yeah it’s extremely clear that the people making these points haven’t played the game. Literally none of that happens. There’s no kidnap of children, there’s no blood for a magic ritual, there’s no greedy hook nosed race. Literally none of that. You have goblins, they are only portrayed as bankers in the very first fucking scene and after that you interact with goblins who are artists, goblins who work at the bar, goblins who are farmers. It’s so fucking clear you haven’t actually played and that you’re getting upset about things that never happened. There’s two main goblins in the story. One is deadly evil, and is trying to take over the world with magic he found after being oppressed by humans. Then his fucking brother is helping you fight to stop him. This is literally just like the original story with Voldemort. He even fucking kills his brother just like voldemort kills his family. There’s no plot to kidnap a child, no plot to get any blood (where in the world did this even come from, it’s not even implied anywhere, it’s just made up wholecloth). The bad goblin doesn’t even care about you, the main character, at all until you start to interfere with his plans.

    similarly it isn’t a pogrom when violence against goblins happens in other fantasy media because those goblins don’t run the banks and aren’t nearly as coded!!! what are you even fucking talking about!!! anyways as you can see i read her whole piece and it was all wrong and poorly argued. next!

    “it was all wrong” lol, sure bud, sure thing. There are plenty of examples of goblin bankers in other media, and yet you didn’t even play the game so you have no idea that the goblins you’re talking about in this game, aren’t even fucking bankers. They’re not even looking for money! Your argument is so poor that it literally doesn’t even hold up to the slightest scrutiny. It only holds up to the scarecrow you erected to pit your arguments against. Why not focus on the actual problems with JK which is her support of anti-trans legislation. Oh, but you can’t really do that here either because the developers of HL actually spent significant time making sure that trans people were fucking represented in the game. smdh.


  • Yeah, I don’t think an organization that carries water for the Zionist regime in Israel actually cares about the safety of Jews at all. Israel has been proven to stoke antisemitism abroad and make the situation for Jews outside of Israel worse in order to entice them to emmigrate to Israel. Any organization that doesn’t acknowledge and challenge the racist framing of Jews with the Israeli state is itself incredibly antisemitic, and demonstrates that they don’t really care about the welfare of Jews. I think it’s safe to say that a far right organization would be willing to hold water for other far right figures, and that real Jews like my partner are correct when they say that Joanne’s depicted stereotypes of goblins as essentially Jewish bankers is incredibly hurtful and encourages real life harm against Jews.

    🤦 you seriously want me to just go find plenty of other sources agreeing that you’re arguing about folklore at this point instead of racist stereotypes? If people like you weren’t bringing it up, literally no one would even notice. You sure aren’t getting up in arms about the exact same depiction of goblins in literally every other piece of fantasy out there.

    One of the most horrifying details in the game too, of which the director for it for most of it’s development was a far right media personality, is that the “goblins” use an “annoying horn” for a status effect that’s directly modeled off of the Shofar. The Jewish Shofar is a very holy and important cultural artifact for Jews which is directly paralleled in the game as an “annoying horn”.

    yeah, so you clearly haven’t played the game, and the fact that you think that there’s an “annoying horn” in the game that has a status effect (what in the fucking world are you even talking about?) says pretty clearly that your opinion does not matter at all here. You’re just spreading inaccuracies in the hopes of trashing something. Spreading lies doesn’t help your case, it just makes you look like an angry person out for revenge, no matter what the truth is. JK is a terrible person, you don’t need to make up shit in order to make that case, there’s plenty of actual things she’s said you can use.





  • sometimes things are bad and are bad at their core (both because they financially support someone who is doing so much to make the world more transphobic than it already is and also all the antisemitism, racism, classism, misogyny, transphobia, and just plain old bad writing decisions at the core of the story) and we just need to let go and stop participating in the fandom because it inevitably leads to people saying shit like “oh i can just buy this harry potter game even though i know jkr sucks and this gives money to her that she will use to fund bigotry, it belongs to the the fans now!” when it doesn’t, as long as jkr is alive it’s her space and spending time in it will eventually lead to money making its way over to her!!!

    I’m sorry, but this is such an insane view (with so many inaccuracies in it I’m not going to bother debunking them all) that it’s pointless to argue here. Maybe spend your energy on something else, you’re giving her more mindspace than she is doing actual harm to the community. And she’s probably making very very little off of HL as a whole. Warner Brothers owns the majority of the copyrights around the HL universe, unless it’s theater or books, JK Rowling’s website even says so.

    and the game itself is bad because it’s about the goblins, who have long been noted to be fairly antisemitic caricatures in harry potter, being swarthy hooked nosed creatures who run the banks, have a long history of pogroms being run on them, have different moral values around ownership (very similar to accusations of judeo bolshevism) and have a literal star of david as their symbol in the films. and in this game they kidnap children for ritual purposes which is just straight up blood libel

    This has been debunked time and time again. If you don’t believe me, maybe you’ll believe the actual CAMPAIGN AGAINST ANTISEMITISM. She’s so against antisemitism that the fucking Campaign Against Antisemitism says “So it is with JK Rowling, who has proven herself over recent years to be a tireless defender of the Jewish community in its fight against antisemitism, for which we are immensely grateful”.

    It’s you that are seeing antisemetism. It’s not there. It’s a folk tale that has evolved over actual centuries into tales that go beyond the original tropes. Maybe instead of getting into arguments around this stuff you should look into the history of it and realize that, just because something looks bad, doesn’t mean it is.

    if you still aren’t sure what’s antisemitic here and you somehow aren’t a bad faith poster, look up judeo bolshevism, look up blood libel, look up images of antisemitic caricatures and compare them to descriptions of goblins in harry potter. there are so many antisemitic tropes in there it’s impossible to imagine no one was aware

    maybe you should actually research the history of things rather than just looking at pictures and comparing. It’s quite racist (and antisemetic) to think that just because things look similar that they were intended to be the same thing. They’re not.







  • That’s why for typical project it is useful to merge pull requests into the main branch — the linear sequence of merge commits is a record of successful CI runs, and is a set of commits you want to git bisect over.

    … if you do this you completely negate your ability to use git bisect…