News for hackers. Stuff that matters.
Re:Writing web applications using only the Go Standard Library by austincheney on Friday December 23, 2016 @07:30PM (#13247998)
I am a bigger fan of the keep it simple approach, which is my way of saying I prefer to write web applications in the web technologies directly intended for the given task.

I suspect Go is a newer and better language than Java, but this soooo reminds me of Java devs trying to do everything web related in Java. Ohhhh the pain and torment (guessing, apathy, and crying about how horrible things like markup and JavaScript are because they simply aren't Java).

Re:Writing web applications using only the Go Standard Library by ternaryoperator on Friday December 23, 2016 @07:33PM (#13248006)
> Ohhhh the pain and torment (guessing, apathy, and crying about how horrible things like markup and JavaScript are because they simply aren't Java).

Almost everyone complains about JavaScript, and very few of the folks I hear complain about it wish it were more "like Java."

Re:Writing web applications using only the Go Standard Library by libria on Saturday December 24, 2016 @12:38AM (#13248744)
Closure and Typescript added type checking/safety features, ES6 adds classes, Typescript even has generics and interfaces. Javascript developers will eventually add most of Java's features but keep their conscience clear by never uttering the phrase "like Java".
Re:Writing web applications using only the Go Standard Library by iopq on Saturday December 24, 2016 @04:26AM (#13249173)
Last I heard, Java didn't invent type checking.
Re:Writing web applications using only the Go Standard Library by jdoliner on Friday December 23, 2016 @08:16PM (#13248113)
I haven't heard anyone wishing it were more like Java although Google does have a Java to Javascript compiler that they use for some of their web applications. I'd guess those people in some way wish Javascript was more like Java or at least that they could write Java in places they'd otherwise be writing Javascript. It probably makes a lot more sense if your backend is also written in Java so you can share code between them.
Re:Writing web applications using only the Go Standard Library by cblock811 on Friday December 23, 2016 @07:47PM (#13248050)
I've never heard anyone say they wish JavaScript were more like Java. Can you tell me more about why they say that?
Re:Writing web applications using only the Go Standard Library by c_shu on Friday December 23, 2016 @09:04PM (#13248232)
I wished I could have `for...of` loop to iterate array in javascript, so I can say goodbye to `for(var i=0;i<len;i++)`. Now it's supported by all browsers. But it's so late. You cannot use it unless you only support very recent browsers.
Re:Writing web applications using only the Go Standard Library by ludamad on Friday December 23, 2016 @10:10PM (#13248376)
Not true, you can use typescript and have it along with stays-out-of-your-way static typing, or only test in modern browsers and cross compile later.
Re:Writing web applications using only the Go Standard Library by c_shu on Friday December 23, 2016 @10:30PM (#13248420)
That's another language. You can prefer Java. You can prefer TypeScript. They are just not JavaScript. (Nowadays there are so many source-to-source compilers to JavaScript. Even Java-to-Javascript compiler.)
Re:Writing web applications using only the Go Standard Library by ludamad on Saturday December 24, 2016 @05:46PM (#13251940)
What additions that TypeScript has do you find offensive? And that's why I gave my second option, which allows you to use modern JavaScript natively (without the additional features TypeScript has, if so opposed) and cross-compile when you have to target older platforms.
Re:Writing web applications using only the Go Standard Library by Tempest1981 on Friday December 23, 2016 @08:37PM (#13248163)
I heard it a while back, from people wanting classes in JavaScript.
Re:Writing web applications using only the Go Standard Library by bbcbasic on Friday December 23, 2016 @08:58PM (#13248221)
Yeah people wish alien language is more like their home planet language, so there isn't a new mental model to learn.
Re:Writing web applications using only the Go Standard Library by DCoder on Saturday December 24, 2016 @02:31AM (#13249004)
Or, once they have learned the alien language, they see legitimate shortcomings in it that their native language doesn't have.
Re:Writing web applications using only the Go Standard Library by bbcbasic on Saturday December 24, 2016 @02:55AM (#13249034)
True but I guess many OOers don't care to try to think prototypically. I did and I conclude that OO and prototypes suck equally so might as well use the prototypes
Re:Writing web applications using only the Go Standard Library by baby on Friday December 23, 2016 @08:43PM (#13248178)
I've never heard anyone wishing something would be more like java.
Re:Writing web applications using only the Go Standard Library by bbcbasic on Friday December 23, 2016 @08:57PM (#13248216)
Or JS for that matter.
Re:Writing web applications using only the Go Standard Library by perfmode on Friday December 23, 2016 @08:44PM (#13248180)
Go is great for web applications that aren't CRUD! The web portions of IPFS were a joy to write in Go.
Re:Writing web applications using only the Go Standard Library by jdoliner on Friday December 23, 2016 @08:21PM (#13248124)
> I am a bigger fan of the keep it simple approach, which is my way of saying I prefer to write web applications in the web technologies directly intended for the given task.

Web applications is the task that Go was directly intended for. It was intended for some other ones as well but Web applications was the main one.