• 0 Posts
  • 117 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle

  • fidodo@lemm.eetoMemes@lemmy.ml"open betas"
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    I think you’re misunderstanding what I mean. Early Access is a newer term for getting paid access to a game early. Open beta is an older term but was used for free access to a game early for testing purposes. They used to have different meanings which is why early access was created as a new term to distinguish it from a beta. Calling paid early access a beta is intentionally misleading.




  • Yes, it’s still a transpiler, I’m not saying it isn’t, but what I mean is that it doesn’t add any functionally specific to the typescript language. There’s a transpiler for TS that doesn’t even do any type checking at all and just does the type stripping and back porting. But of course, that’s not why people use typescript. All the features that are actually important to typescript could be done through a linter instead. If type annotations were added to JavaScript you could get most of typescript’s features with linting rules and just handle back porting in a more standard way.



  • fidodo@lemm.eetoMemes@lemmy.mlWhy must we be done this way?
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    10 months ago

    I fully support kicking kids off their phones in class, I don’t think any lesson no matter how engaging can compete with that. I’m not supposed to be on my phone during meetings, I think it’s perfectly reasonable to ban phones from class. I was just commenting that work can be done to make lessons more engaging when phones aren’t involved. There’s of course a limit to what you can do, and some subjects are just inherently harder to get kids into, like statistics. But seriously good on you for doing that. I’m sure that while it didn’t have perfect engagement, it was far better than just teaching it to the book.

    Just curious, is there a place you can share that lesson plan to other teachers? It’d be a shame for all that work you did to not get to be used in other classrooms as well.


  • fidodo@lemm.eetoMemes@lemmy.mlWhy must we be done this way?
    link
    fedilink
    arrow-up
    11
    arrow-down
    7
    ·
    10 months ago

    You can increase motivation to learn by making lessons more engaging even if it’s a subject they’re not personally interested in. But making lessons more interesting and engaging is not easy and we can’t expect all teachers to have the skills and resources to do the research and development needed to produce lesson plans that are really interesting. I think it could be improved by putting more money into developing interesting lesson plans centrally and distributing the materials to teachers to follow instead of just producing dry curriculums. Teachers need support.









  • Why would you not want to be using a rendering library? Your code is basically storing your application state in the dom which will turn into a horrible mess as soon as you reach any actual level of complexity. I know first hand. I’m traumatized from having to maintain large jquery code bases in the 00s. No serious professional writes code like this anymore.

    Also, your vanilla code isn’t modern. It should look more like this:

    document.querySelector("#element").classList.toggle("hidden")
    

    I could see not wanting to use a rendering library if you’re building a simple site on top of basic static HTML, but that’s not a serious discussion for industry professionals, and even still, jQuery is such a heavy dependency for saving some characters. If you find yourself using it so much you need the extra convenience then your site is already complicated enough that you should be using a rendering library with state management instead.




  • I feel like there’s no typescript drama, just JavaScript drama. Things are pretty happy in the TS community. I’ve been writing js code since it literally first came out. I’m definitely no js hater. In the early days js code bases quickly turned to spaghetti code, but I genuinely think the js community has done miracles turning what was essentially a super simplistic toy language into a seriously good production quality language. I’ve seen first hand how much work has gone into it, and while most of the js community has been great with embracing change for the better, there’s always been the niche of detractors against any change that adds complexity even when it makes coding safer and more productive.

    I’ve always had a love hate relationship with JavaScript, but with typescript it’s really been just straight up love. Pretty much all the trouble I have with typescript has been due to external libraries that use types lazily or incorrectly, and even then there are solutions to add safety to your own codebase. Sometimes I run into some trouble with the type system itself, but it’s pretty much always because I’m doing something really complicated that would be hard in any type system. I’ve been working with typescript for years now and my code bases are some of the most solid ones in my company. Typescript is really safe as long as you’re actually using it and not telling the compiler to ignore types through using any or making unsafe assertions.

    It makes no difference to me if other people prefer JavaScript. Any important js library will get ts support anyways through definitely typed, and if a library is so sloppy it can’t be typed well then it’s not a good library to use anyways. Having people proudly announce they only want to use JavaScript is also great for hiring. It easily tips me off on who not to hire.


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