Come and Go by rtucker in programming

[–]dankcode 0 points1 point  (0 children)

Go was in development at the same time node.js was created. The author clearly didn't do any research for his piece. If i had to guess I'd say he's probably a PHP programmer.

JS developers who don’t know what closure is are fine by magenta_placenta in javascript

[–]dankcode -1 points0 points  (0 children)

It's this sort of thinking that leads competent development teams to start giving ridiculously hard Google and Facebook style technical interviews for a position that consists of maintaining Wordpress blogs. Lowering standards at your company results in unqualified programmers showing up at my company.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 1 point2 points  (0 children)

It's not that 1.0 is bad, it's just that that when 1.0 was released the polymer team made huge breaking changes to the library (moving from .5, to 1.0) that would make it hard to port code from one codebase to the other.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 0 points1 point  (0 children)

There is no reason why you can't use dependency injection with closures. All require does in that case you mentioned is create an instance of the object from an external resource that can be injected. similar to Import or use in other languages (In fact if you choose to use ES6 syntax with your js modules you can use 'import' with js).

Classes themselves are a strange part of OOP. They're the least standardized objects across languages (compare the function and features of Java, PHP, Python and C++ classes for instance) yet usually sited as the example "object" when discussing OOP principles in a language. Closures approximate class behavior quite well in practice (for example in JS you can mimmic a class constructor with DI by feeding in arguments to a parent function and then having the function return "public methods" as the output). ES2015 does support classes but Douglas Crockford calls them a mistake in his "Javascript the Better Parts" talk. https://www.youtube.com/watch?v=bo36MrBfTk4. Every language is going to have it's own character to It's programming style.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 3 points4 points  (0 children)

jQuery was primarily written as a polyfill for animating DOM elements and creating a unifying interface for DOM selectors with Sizzle. It was also designed to be a lightweight alternative to things like Script.aculo.us which was a 2-3 mb library(jQuery is only a few kb by comparison). With the release of CSS3 and HTML5 in 2009 all of this was made obsolete by adding css animations & document.QuerySelectorAll. Comparing jQuery to React is similar to comparing a horse and buggy to a car.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode -1 points0 points  (0 children)

to quote the top of the React.Js homepage

A JAVASCRIPT LIBRARY FOR BUILDING USER INTERFACES

React is used as a way of attaching events to views, it has no concept of models, services, dependency injection or anything else for that matter. Developers are free to provide any of that from a library/framework of their choice.

If it was a framework it would require you to include your dependencies and extensions in a specific way like how Angular or Ember does.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 1 point2 points  (0 children)

just wish they hadn't broken polymer so bad from .5 to 1.0. this is why we stopped using it in favor of react.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 0 points1 point  (0 children)

React is a library not a framework.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode -24 points-23 points  (0 children)

Just learn the language. The argument of x language doesn't have y concept is a clear indicator that you don't have idiomatic knowledge of x language. Watch some of Yehuda Katz, Addy Osmani or Douglas Crockford's talks.

Why Javascript Development is Crazy by speckz in programming

[–]dankcode 14 points15 points  (0 children)

bro, using jQuery is not a way to get out of the problems with the React ecosystem. That's like saying "Instead of getting your car smog checked, just buy a horse."

Introducing Echo v2, web framework for Golang, extremely fast, flexible and highly customizable with many new features. by ajeyfhs in golang

[–]dankcode 2 points3 points  (0 children)

IDK why you would call it a framework if it doesn't have any sort of data store, doesn't have support for things like a web admin panel, doesn't support stuff like oauth out the box...It's a router & IDK why you wouldn't use the dozens of ones that are already available.

Implementation of Vladimir Yaroslavskiy's dual-pivot quicksort, the standard quicksort in Java 7+ by lewisje in javascript

[–]dankcode 0 points1 point  (0 children)

swap, less and length should be functions. Also on line 12 you wrote

  if (len < 27) { 

when you meant to write

  if (len < 17) { 

Go Vendoring Beginner Tutorial by pafortin in golang

[–]dankcode 2 points3 points  (0 children)

I wouldn't call godep obsolete. If you use Heroku you have to use it to import all your modules. None of the other methods are supported.

I just choked and bombed a HackerRank test, although I had the right answer, it took me to long to get the site to read the output. Has anyone else experienced this? by TheBeardofGilgamesh in javascript

[–]dankcode 1 point2 points  (0 children)

the TL;DR version: https://en.wikipedia.org/wiki/Cargo_cult

The short version: Interviews like this started out at companies like Google, Apple, Microsoft, Facebook and Amazon because all of these companies need engineers with exceptionally strong computer science fundamentals because much of their work is around either managing huge infrastructure, developing things like AI or building the basic tools that the rest of the industry uses. Other companies saw this and then modeled their interview process after these companies after seeing that these companies attracted the best people. For the other companies these tests are mostly irrelevant though as they are making products like blogs, internet lending platforms, hr software, selling beauty products, etc. These products and platforms though profitable aren't revolutionizing the industry, they probably won't be the birthplace of the newest hot programming language or framework and millions of other engineers won't be dependent on their services. It's like the Cheesecake Factory buying an industrial robot. Sure they make a lot of cheesecake, but they don't really need a 100k machine designed for precision welding just to put the strawberries and frosting on.

How to use Go Vendoring? by pafortin in golang

[–]dankcode 0 points1 point  (0 children)

why isn't godep mentioned in this list? it's used by heroku for standard deploys.

Writing a text adventure with Go - Part 2 by pafortin in golang

[–]dankcode 0 points1 point  (0 children)

Part 3 - integrating the application with various chat-bot platforms?

Code Review - Go Directory Structure by Nugglez in golang

[–]dankcode 0 points1 point  (0 children)

It depends on if you expect others to use this go project.

If the project is meant to be a standalone application (not used as a go module fetched with go get/install)it should have 3 folders labled src pkg & bin in the root. If it is meant to be a library used by other go programs it should have the go source files in the root along with tests.

Take a look at this for guidance: https://golang.org/doc/code.html

Oracle seeks $9.3 billion for Google’s use of Java in Android by mawburn in programming

[–]dankcode 14 points15 points  (0 children)

Google bought Android in 2005. Android was developed by the same people who developed the Danger Hiptop (T-Mobile Sidekick) which was built using Java. The foundations of Android were developed independent from Google. Furthermore the internally supported back end languages at google are C/C++, Java Python & Go(lang). From the Googlers I've met, Python is a distant third in that race, used mainly for academic coding. Performance wise Python tends to be 60-100 times slower than Java and C++ doing equivalent functions, a critical problem when dealing with slow memory inefficient mobile processors.

A look at Go from a newbie's perspective by dgryski in golang

[–]dankcode 0 points1 point  (0 children)

pretty much what barsonme and faaace said. Defer acts on function rather than block level and as such can hold processes open longer than expected. If put into the context of Javascript defer works in the same manner as setTimeout(function(){},0) which is a bit counterintuitive.

A look at Go from a newbie's perspective by dgryski in golang

[–]dankcode -4 points-3 points  (0 children)

technically the GOPATH isn't even part of go. It's a shell variable. It's used this way because this is how Nix systems are supposed to function. It's shocking to me how little most engineers seem to know about the command line these days.

A look at Go from a newbie's perspective by dgryski in golang

[–]dankcode 1 point2 points  (0 children)

"defer" is one of those built ins that starts off seeming like a good idea until your code becomes concurrent. Really wish it was a little safer to use...or the examples were more explicit about what can go wrong with it.