Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)FI
Posts
0
Comments
274
Joined
2 yr. ago

  • I really don't get how people can feel more productive in JavaScript. With typescript the code practically writes itself. Sometimes when refactoring I'll change a functions input and output signature and just fix compiler errors until it stops complaining, and the code just works without me having to really even think about what the code is doing.

    Any time I'm forced to go back to js I feel like I'm going crazy trying to keep track of what's in all the variables. With typescript I can use more powerful object structures without having to constantly double check where they came from.

  • The transpilation that typescript does doesn't really have anything to do with typescript, it's just there because typescript wants to support the latest ecmascript features, so transpilation is necessary for that, but technically you could simply strip out the type info and have another transpiler like babel handle the backwards compatibility. I think there are a few minor exceptions to that, like enums. There was even a proposal to add some typescript types to native JavaScript that would be ignored by the interpreter and just act as comments.

  • I've used JavaScript since its creation. I would describe typescript as JavaScript as it should have been. I've always actually liked JavaScript's simplicity, but I've never liked its lack of type safety. At its core, JavaScript has a tiny conceptual footprint, and that's actually pretty refreshing compared to other very complicated languages. But it was plagued with terrible implementations and the inherent messiness of dynamic typing. I've watched it evolve over the years and it's improved beyond my greatest hopes. Between the advent of transpilation, tooling, and typescript, I'm very proud of where the language has gotten to. Having made websites in the 90s and 00s, I feel like people don't realize how much work has gone into getting the ecosystem in a much better place.

  • Typescript doesn't have strong typing but static typing still gets you really really far. It means you need to be more careful with your io and avoid dangerous type assertions, but I don't think that's a bad thing. Having used typescript an absolute ton, the only real jank I've encountered is from bad library typings that either use it lazily or incorrectly, but for code bases that use it through and through it has been smooth sailing, and having professionally used both traditional static typed languages and dynamically typed languages, I really enjoy typescript's type inference and structural typing. I think you should give it an honest try before judging it. But that's just my 2 cents as an industry professional who has used many languages and have been programming for decades for what it's worth.

  • Another thing to consider is that developers consciously make design choices to adapt to the hardware available at the time, and these are not things you can just turn on and off with settings. For example maybe there's a zone transition that slows the game down on older hardware and in the past they would have added a subtle loading area like a tunnel but that's not needed anymore for their current target hardware. Should they completely change the game to be a bit smoother on 5+ year old hardware? You can get a ton of compatibility with changing settings, but to get the same level of optimization as games made at the time the old hardware was the target hardware would oftentimes mean significantly changing the game itself.

  • I'm a little confused by your timeline. I agree, 5 year old hardware should definitely support 1080p60, but the 1070 is 7 years old now. Since the 1070 could support that when it came out and those are static targets I think we should expect the 1070 to support 1080p60 forever for games similar to games that were coming out at the time, but it's a bit unfair to compare starfield to portal 2 and cs:go when those games are in constrained and controlled environments while starfield is vast and open, and environments definitely take a GPU toll, so you will lose some performance to that compared to those games. I haven't played starfield yet so I don't know the details, but given the scope I know of it, it doesn't sound unreasonable for it to miss the 1080p60 mark a bit given the difference in game environment.

  • Have you people never heard of a phone book? Phone numbers aren't sensitive information. If they want to scrape your phone number they can legally and trivially do so through public data sources. Google does plenty of sketchy things around privacy, but this isn't one of them, it's just about security.

  • Especially when they already have access to your entire email history. If they wanted your phone number for nefarious means it will probably be somewhere in that history already. Your email already requires complete trust in the email provider service, there's so much more sensitive stuff they already have access to.

  • You can put any type of value in an array in JavaScript. You can have numbers, strings, booleans, arrays, and objects. So what should the default sort function sort by? Sorting by numbers makes sense, but what if it wanted to sort strings instead?

    When you don't know what value is in an array ahead of time you can't assume how to sort it. When you're controlling the program you can provide a sort function for the type of values you know will be in it, but when you're writing the standard default sort function, there's only one type that you can convert all the other types to safely and simply in the most predictable way, which is strings.

  • Hear me out, a good portion of Reddit posts are reposts anyways so what if we did a one time import of Reddit community top posts of all time to seed communities so there's a place people feel more encouraged to post to? I don't like bot posts generally, but if it's a one time thing I think I'd like it if the communities here had some extra seed content to browse so you wouldn't reach the end so quickly like you do now.

  • I don't think the post is saying who's right is simple, but that both of them need to do more research until there's enough context to perform a proper assessment. In the situation shown there is not enough information to determine what the facts are and it's bad for either of them to form an opinion on incomplete context. I agree with the counterpoint, if the situation is vague, do more research first.