>use javascript for webdev. >have to install 30 packages just for the basics. >use go for webdev

>use javascript for webdev
>have to install 30 packages just for the basics
>use go for webdev
>built in HTTP server, templating library and route parameters, only need to install an sql driver.
Is this the best language for web development?

Shopping Cart Returner Shirt $21.68

Ape Out Shirt $21.68

Shopping Cart Returner Shirt $21.68

  1. 1 month ago
    Anonymous

    Go is very based. Sometimes annoying how stuff takes long to get done and lots of boilerplate. But then even more annoying when it's pre-made but impossible to change what's inside.

  2. 1 month ago
    Anonymous

    30 packages while creating project folder
    30 packages while installing language environment
    >IS THIS THE BEST LANGUAGE FOR WEB DEVELOPMENT????
    No, just a different approach to developing a programming language environment. Honestly, the JS approach seems better to me, because I don’t always need all 30 packages and they won’t be installed as a result, but in GO I don’t have such an option

    • 1 month ago
      Anonymous

      Go compiles statically to binary and it is of size ~ 2MB. that's nothing

      • 1 month ago
        Anonymous

        >>~ 2MB

        bloat

        • 1 month ago
          Anonymous

          Javascript: 100+MB

      • 1 month ago
        Anonymous

        check the ram usage

    • 1 month ago
      Anonymous

      >Installing 30 packages while creating project folder
      ???
      You have never used Go.

      You can do the same with nodejs too. Node has a built-in http server and you don't need a meme framework to draw shit on a web browser.

      >Use this insanely complex and bloated runtime so you can use an awful scripting language for your web backend. Its totally not a meme bro

      • 1 month ago
        Anonymous

        I mean, it's nice to share code between your server and your client.
        In Rust, I write proc macros to generate appropriate JavaScript modules for certain data structures and code and it's definitely not as easy as simply having client code do: import { Black person } from '/public/x.js'
        But hey.

        • 1 month ago
          Anonymous

          I for sure understand the appeal of having a unified language for your client and server so you can share libraries and have less context switching and all that, especially at work when anywhere between 50% and 100% of the people you will need to develop with are morons.

          But I feel like the greater webdev braintrust went the wrong way trying to bring JavaScript to the backend instead of more aggressively pushing something like WASM to create more language options on the frontend. I'm sure WASM has problems, I'm not very familiar with it, but conceptually, replacing the JS interpreter on the frontend with a byte code interpreter to open the door to compiled languages seems like such a better long term solution.

          As much as I tend to be cold on rust, I'm kind of excited about the possibility of something like Yew for frontend code.

          Until then its Go with templated HTMX code for me.

          • 1 month ago
            Anonymous

            >replacing the JS interpreter on the frontend with a byte code interpreter to open the door to compiled languages seems like such a better long term solution.
            See, this is where you went wrong. You're that much of a braindead Black person you think there's such a thing as a "JavaScript interpreter." All modern JavaScript engines compile the code into a syntax tree, over which V8 can parse the syntax tree in jitless mode, or in the case of spidermonkey, it can execute the program with a form of a bytecode vm. In all other cases, including the expected case for both spidermonkey and v8, it's JITed with multiple optimization passes depending on runtime analysis of how hot your code is. WASM is a moronic hack that runs over the JavaScript frontend, not the other way around. It's literally JavaScript, except worse, which makes sense if you understood its' history; it's a replacement for asmjs in bytecode form. You're still running under the garbage collector, under a single thread, with an isolated global context. This is the trannies replacement for flash and sandboxed native applications. You aren't any faster or more usable than JavaScript, and if anything, it's the other way around. The loss of napi was a disaster, most engines mitigations for sidechannel attacks make running under the javascript and wasm isolate completely fricking worthless, and not a single god damn website sees it as a viable replacement for HTML4+Flash.

            Now, if you would stop reciting rust propaganda from redditors, google employees desperately trying to kill NaCL, and trans mozilla activists, that would be great.

          • 1 month ago
            Anonymous

            this is just wrong. also wasm has simd instructions and compiler optimizations.

            i wrote a image resizer in both js and wasm and perf difference is like 400ms (js) / 200ms (wasm) for 4k image

          • 1 month ago
            Anonymous

            >hurrhur muh simd instructions that are totally exclusive to wasm
            both engines are perfectly capable of unrolling loops and emitting simd instructions. it's not my fault you're too fricking braindead to have used typedarrays and/or simple unrollable loops. you have failed to address ANYTHING i stated; you have no idea what you're talking about. return to the dank hole from which you crawled out of.

          • 1 month ago
            Anonymous

            >Web is shit
            As always, but using WASM you can get rid of JavaScript at the programming level, which is a huge plus. I ain't touching this abomination of French in the world of programming

          • 1 month ago
            Anonymous

            >Web is shit
            ...and you're even shitter for acknowledging this state of affairs whilst simultaneously jumping through mental hoops in order to justify running ghetto javascipt bytecode with strict integer literals as a form of optimization.

            You know what also removes using JavaScript "at the programming level"? Not using webshit. You know what doesn't have these defects of running a lower level language under a JavaScript engine? Targeting the host's ISA and platform directly. Ah, but do go on. Do tell us how faking threads over contested web workers, syncing against GC, depending on the browsers scheduler, the shite render stack, la ack of interfacing between JS despite being a mere replacement *frontend* for JS, and everything else is somehow required for your needs.

          • 1 month ago
            Anonymous

            >Calls me a web "dev"
            I'm not even mad at you, I'm a system programmer by profession and my toolkits <<inclusion>> and <<diversity >> starts with C and ends with Rust in case I need to make some kind of I NEED IT NOW script or GUI app. No, I don’t use Tauri for gui, I’m not popus. I was talking about “hide the javascript from the programmer” because I needed to make the front-end for one site, and I used Rust for this, which was much more convenient for me.
            Don't drag me into the list of these lovers of abstraction for the sake of abstraction, I love the base of computer science as much as it loves me.

          • 1 month ago
            Anonymous

            >I ain't touching this abomination of French in the world of programming
            >French

            ??????

          • 1 month ago
            Anonymous

            Doesn't JS have to use insane analyses and runtime guards to get fast? If what you want for efficiency is a small by-value struct and what JS's semantics give you is a heap-allocated by-value hash table with prototypal inheritance then sure you can have the JIT watch out for leaked references and additional fields and mutation and unexpected field types but now any innocent-looking change can break all the optimizations and it has to be very paranoid at runtime and you're discouraged from reasoning about any of it. I don't believe for a moment that that's better than just telling the VM that you want a 32-bit integer next to two 16-bit integers

          • 1 month ago
            Anonymous

            >by-value hash table
            by-reference*

        • 1 month ago
          Anonymous

          could you share an example?

      • 1 month ago
        Anonymous

        >You have never used Go.
        Of course I didn't, this was a javascript reference

  3. 1 month ago
    Anonymous

    no, that's C#

    • 1 month ago
      Anonymous

      frontend stack?

      • 1 month ago
        Anonymous

        Blazor.

    • 1 month ago
      Anonymous

      >have to install third party library
      no thanks

    • 1 month ago
      Anonymous

      GOOD MORNING SIR

      • 1 month ago
        Anonymous

        good morning 🙂

  4. 1 month ago
    Anonymous

    Because JS was created in the 90s and not meant for webdev and Go was made recently for webdev moron.

    • 1 month ago
      Anonymous

      What was javascript originally made for if not webdev?

      • 1 month ago
        Anonymous

        I think they mean it wasn't made for backend webdev

  5. 1 month ago
    Anonymous

    You can do the same with nodejs too. Node has a built-in http server and you don't need a meme framework to draw shit on a web browser.

  6. 1 month ago
    Anonymous

    best at what? notice no one ever defines best? that's because this entire board is little kids paralyzed by not knowing anything and not being able to learn on their own

    • 1 month ago
      Anonymous

      Couldn't even make it through the whole 5 sentences before deciding to blow your load, huh?

      • 1 month ago
        Anonymous

        >can't answer
        best at what? notice no one ever defines best?

    • 1 month ago
      Anonymous

      best at fricking youre mum

  7. 1 month ago
    Anonymous

    who uses go anyways

    • 1 month ago
      Anonymous

      I do

  8. 1 month ago
    Anonymous

    best at what?

  9. 1 month ago
    Anonymous

    PHP is king

  10. 1 month ago
    Anonymous

    JS was never meant to to be used on the server side, it shouldn't be used for anything except simple frontend scripting. Nodejs is a piece of buggy garbage and should be deprecated.

  11. 1 month ago
    Anonymous

    best at what?

  12. 1 month ago
    Anonymous

    i fricking hate the go idiom of using a single letter for struct methods. just use "this" or "self" c'mon
    fricking c-brained geezer-ass language

    • 1 month ago
      Anonymous

      Short variable names allow you to think faster because you can ignore all the crap and focus on what the code is doing.
      Advanced math would not be possible without 1 letter variables.

  13. 1 month ago
    Anonymous

    I built an API with a parser library in go, very comfy. Now I'm doing the frontend with React and I want to kms

    • 1 month ago
      Anonymous

      >Now I'm doing the frontend with React and I want to kms
      Ah the usual

  14. 1 month ago
    Anonymous

    its good but .net is even better

  15. 1 month ago
    Anonymous

    rust is better

  16. 1 month ago
    Anonymous

    Performance sucks. It gets outperformed by C# and Java https://www.techempower.com/benchmarks/#hw=ph&test=composite&section=data-r22

    • 1 month ago
      Anonymous

      how is that possible??

      • 1 month ago
        Anonymous

        >how is that possible??
        How is what possible? What made you think Golang would be faster than the CLR or the JVM?

        • 1 month ago
          Anonymous

          Because it doesn't have classes, OOP, attributes ...
          Because Go is basically like C, while Java is ... Java

          • 1 month ago
            Anonymous

            >Because it doesn't have classes, OOP, attributes ...
            That's not what makes a language slow. It might make it less memory efficient under some circumstances and if the compiler doesn't "know" how to inline these..
            >Because Go is basically like C, while Java is ... Java
            Go is not like C. It has a syntax that is similar to C but so does Java. Golang is a managed language, C is not and Golang's GC can't compete with the JVM's GC, not sure about the CLR. The only performance or rather memory wise problem Java has is that it doesn't have value types yet, C# does. Just because Golang is AOT compiled, doesn't mean it's faster. Besides, both C# and Java can be AOT compiled.

          • 1 month ago
            Anonymous

            AOT compiling C# or Java wouldn't necessarily make them faster either, devirtualization and other JIT optimizations do a lot of heavy lifting for making overengineered OOP spaghetti somewhat performant.

          • 1 month ago
            Anonymous

            >AOT compiling C# or Java wouldn't necessarily make them faster
            I know, although it sometimes does. Depends on the workload.

          • 1 month ago
            Anonymous

            >>Go have GC runtime
            >Because Go is basically like C
            moron

          • 1 month ago
            Anonymous

            Syntactically and feature wise, yes.

          • 1 month ago
            Anonymous

            This is such a strong simplification that it becomes painful. You either haven't used C or Go

          • 1 month ago
            Anonymous

            I used both, moron

          • 1 month ago
            Anonymous

            No, you don't

          • 1 month ago
            Anonymous

            I do

          • 1 month ago
            Anonymous

            Go was actually faster but c# and Java have caught up quite a bit. Go's superiority was stack allocations and lists of values instead of lists of references. A lot less virtualization and allocations for gc.
            Nowadays Go still uses less ram from what I've seen but similar speeds with cpu limits.

          • 1 month ago
            Anonymous

            For example a list of 100 objects that contain 2 objects each. c# and Java would be 200+ allocations by default. In Go just one allocation is needed and all in sequential memory by default.

          • 1 month ago
            Anonymous

            >c# and Java would be 200+ allocations by default
            not the case with C# and soon not with Java either https://openjdk.org/jeps/401

          • 1 month ago
            Anonymous

            C# too by default does 200 allocations to have a list of 200 objects. With value objects it doesn't need it but then can never use it as object. Almost always want it to be value object in lists but reference outside lists, which isn't possible. So almost everything is a reference object. With Go you can decide when using it to be value or reference so much easier to create less trash.

      • 1 month ago
        Anonymous

        Dot shit and JVM are literally multiple gorillian man hours of work.
        Golang compiler "just works" and all that, but it doesn't have nearly as much time spent on optimizing. Also go, the language, is quite strange so optimizations are probably limited.

  17. 1 month ago
    Anonymous

    Name 1 reason to use go over rust that isn't
    >le go is easier for my little brain

  18. 1 month ago
    Anonymous

    JavaScript belongs in the front end, but in a perfect world it wouldn't be there either. Being better than it is not impressive.

    • 1 month ago
      Anonymous

      Huh? Javascript is the best of interpreted languages. The only major one that uses brackets. As a C and Go developer, I find every language that doesn't use brackets annoying to no end.

      • 1 month ago
        Anonymous

        Saar

  19. 1 month ago
    Anonymous

    bump

  20. 1 month ago
    Anonymous

    >javascript
    >have to install 30 packages just for the basics

    You don't have to install any package for javascript basics.

  21. 1 month ago
    Anonymous

    best at what?

  22. 1 month ago
    Anonymous

    Spring blows go out of the water for usability and convenience.

    • 1 month ago
      Anonymous

      Good morning sir

  23. 1 month ago
    Anonymous

    >Is this the best language for web development?
    D is significantly better. Go is a meme.

  24. 1 month ago
    Anonymous

    >muh js bad
    peak midwit take.
    Your university professors, who never had a real job their lives, are lying to you gullible fricks
    "Best" doesn't mean shit in our industry.
    "Standard" do. You morons will understand it once you leave university.
    JS is versatile, practical, allows mr to solve problems in radically different domains and makes me me a shitton of money.
    It's by far the best programming language.

    • 1 month ago
      Anonymous

      You can say your shit doesn't stink all you want, it still does

    • 1 month ago
      Anonymous

      >go onto the neet forum
      >complain about how the neets care about muh BIG BUISNESS
      your and your "industry" is gonna be dead in 5 years anyways due to AIs producing shitty python3.21 code

    • 1 month ago
      Anonymous

      >It's by far the best programming language.
      Words said by someone who knows no other programming language

    • 1 month ago
      Anonymous

      look i'm not racist, i'm really not, but you are definitely indian

  25. 1 month ago
    Anonymous

    the stashdevs use it so i think it's based
    i never use it though but that's fast as frick

  26. 1 month ago
    Anonymous

    >JS with just 30 packages
    sounds like someone who hasn't ever done real JS webdev; 300 packages is closer

  27. 1 month ago
    Anonymous

    >built in HTTP server, templating library and route parameters, only need to install an sql driver
    This is possible in every modern programming language and a plurality of older ones.
    This is normal. You're just too accustomed to bloated overengineered javashit.

  28. 1 month ago
    Anonymous

    yeah but can i get a job if i learn go

    • 1 month ago
      Anonymous

      >but will [programming language] get me a job?
      No. Anyone who repeats this IQfyism has never been employed.
      You wouldn't expect to get a job in construction because you know how to use a power drill, or a job in healthcare because you know how to use a stethoscope.
      Knowing how to use the tools is just the starting point. Knowing how to do the job is an entirely different thing.

      • 1 month ago
        Anonymous

        >You wouldn't expect to get a job in construction because you know how to use a power drill
        uhh anon.....

        • 1 month ago
          Anonymous

          ....i'm waiting........this is very suspenseful....

          • 1 month ago
            Anonymous

            are you still waiting though?

          • 1 month ago
            Anonymous

            Yes.

      • 1 month ago
        Anonymous

        >having a job is a privilege, goy! You can't just get a job just by knowing how to do it! This is just the starting point! Next, you need to prostitute out to every shareholder, ceo and hr in existance to increase your chance from 0.01 to 0.1%

        • 1 month ago
          Anonymous

          Just because you can write fizzbuzz doesn't mean you have the skills necessary to work on a long-term project. Also

          [...]

          .

  29. 1 month ago
    Anonymous

    >Is this the best language
    Fixed. It's the best language in general.
    Static linking + go routine concurrency + simple C like syntax without unneeded complexity = <3

  30. 1 month ago
    Anonymous

    best at what? why post a thread asking for the best whatever but not saying best at what

Your email address will not be published. Required fields are marked *