pazams / go-for-javascript-developers Goto Github PK
View Code? Open in Web Editor NEWA comparison between Go and Javascript
Home Page: http://www.pazams.com/Go-for-Javascript-Developers/
A comparison between Go and Javascript
Home Page: http://www.pazams.com/Go-for-Javascript-Developers/
Thanks for such a good book.
Description: While going through the Internals Section of the book, the link mentioned for escape analysis
is taking the reader to this page which throws the error The site can't be reached
.
Possible fix: There is a wayback machine's version of this link which could be helpful. Here is the wayback link
https://github.com/bulim/go-for-javascript-developers#dynamic-vs-static
Discuss the difference between dynamic and static variables.
Touch on golang type inference and how it is still typed variables even though might look as not.
https://github.com/bulim/go-for-javascript-developers#error-handling
Explain the differences and similarities to try/catch/finally Statement
https://github.com/bulim/go-for-javascript-developers#patterns
Some things that might be good to point out:
Thank you for awesome book!
is here some option to get epub version to keep it in y library?
Using .then()
will surely confuse new programmers, because they don't know what Promises are.
As code with async/await
is synchronous looking, it would definitely improve user's understanding.
I can make a PR regarding this.
In the code snippet
function fetchSequential() {
fetchA().then( (a) => {
console.log(a);
return fetchB();
}.then( (b) => {
console.log(b);
return fetchC();
}.then( (c) => {
console.log(c);
}
}
we should do this
function fetchSequential() {
fetchA().then(a => {
console.log(a);
return fetchB();
}).then(b => {
console.log(b);
return fetchC();
}).then(c => {
console.log(c);
})
}
In the snippet
function fetchSequential() {
fetchA().then( (a) => {
console.log(a);
return fetchB();
}.then( (b) => {
console.log(b);
return fetchC();
}.then( (c) => {
console.log(c);
}
}
The closing paranthesis of .then() are missing.
The correct snippet would be
function fetchSequential() {
fetchA().then( (a) => {
console.log(a);
return fetchB();
}).then( (b) => {
console.log(b);
return fetchC();
}).then( (c) => {
console.log(c);
})
}
This's an awesome book !!
I have translated it into Chinese
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.