Live data from Hacker News

Viewing profile — latronic_notron

latronic_notron

HN member
Joined
Fri, Feb 01, 2019, 3:08 AM UTC
HN karma
36
Public activity
22 items

About latronic_notron

No profile information was provided.

Recent public activity

  1. comment
    Comment #19193630

    > And it sounds to me like you're working rather hard to misunderstand me/my-opinion and paint me an idealogue. :) That's fair! I'm really sorry I typed that, it was completely unc…

  2. comment
    Comment #19193480

    Agreed. I find C# and F# surprisingly refreshing. ReasonML is a bit unfinished, but it's a sign of great things to come.

  3. comment
    Comment #19193462

    > I do think you're on the right track that go's designers are pushing back hard on what they see as feature abuse in C++ and Java Now that you mention it, I can't really blame the…

  4. comment
    Comment #19193426

    Yes, I'm aware that they're a special case. What I mean is that this is exactly what is traditionally called "generics" or "parametric polymorphism" in PL literature. Go's Map/Arra…

  5. comment
    Comment #19193343

    I'm familiar with that article, and it got me excited for a while, but it's about compiler implementation, and it doesn't really have much to do with the current discussion, other …

  6. comment
    Comment #19193239

    > they also remove the rails that keeps Go code pretty consistent But why? There's nothing in generics that would make Go non-consistent. In fact, there's already generics in Go in…

  7. comment
    Comment #19193130

    Exactly. For a while .NET Core also had a folder within the project for third-party NuGet modules, and for a simple web app they would go into the 200mb, and that's without the com…

  8. comment
    Comment #19193095

    They aren't abused in C#, Java, Haskell, OCaml and other languages. Honestly, picking C++ as an example of traditional generic usage is a bit disingenuous.

  9. comment
    Comment #19193076

    Go has interface{}, which can be abused as much as generics for the same purpose, but without the type safety, hence, less secure. And nobody is advocating C++ style template metap…

  10. comment
    Comment #19193010

    Nope. They are generics, aka parametric polymorphism. And they fit perfectly within Go. And generics aren't just for abstract data structures, there are other uses as well.

  11. comment
    Comment #19192499

    > Those techniques work well for design systems. That's true! I find that enforcing a consistent and quickly-changing design system is way easier than when I was using old techniqu…

  12. comment
    Comment #19192454

    > Yes, but by far more important are bounds checks. Sure, but I'm failing to see why having other checks isn't important. I mean, generics aren't hard to use... They're way easier …

  13. comment
    Comment #19192416

    I personally find most implementations of generics to be in the class of "boring and predictable". I agree that C++ template meta programming might be a bit too much for Go (or for…

  14. comment
    Comment #19192256

    In recent projects I tried 3 new approaches: React's CSS-in-JS, Vue's Scoped CSS and Tachyons/Tailwind Atomic CSS. All of those solutions were a huge improvement and scaled better …

  15. comment
    Comment #19192165

    > But the standard generic does not fit very well with go type system, so.... Why not? Generics in Arrays/Maps/Slices fit perfectly in the language, and don't feel weird at all in …

  16. comment
    Comment #19192156

    > Whenever I fed the wrong argument in for a void* parameter (which is rare enough), the program crashed on the first try and the problem is obvious. Except when it isn't. Except w…

  17. comment
    Comment #19192123

    > It's not a webpack add-on. It's a part of Vue's templating engine that is essentially CSS-in-JS, they just give you a template to work in. It's regular CSS in the templates and r…

  18. comment
    Comment #19192002

    > Meanwhile Vue is neither HTML [1], nor strictly speaking CSS [1], and has a very wierd concept of how objects work in JS. Vue Templates are a very thin DSL on top of HTML. It's j…

  19. comment
    Comment #19191692

    > "You can't ship software in a language without generics!" Isn't this is a strawman? Most arguments in favor of generics in this thread and elsewhere are well informed and people …

  20. comment
    Comment #19191497

    Just curious: why don't you want generics in Go? The language already uses them for Arrays, Maps and Slices, plus a lot of code relies on runtime-typed ad-hoc generics with interfa…

  21. comment
    Comment #19190329

    It's a CRUD app. Nothing special about it. It just happens to use this specific stack.

  22. comment
    Comment #19184936

    > Coming from the .NET toolchain and expecting a lightweight, easy to start with approach I was yet again totally shocked. > I stopped working when my node modules directory topped…