Thursday, September 14, 2017

Answers to Dummies

Why JavaScript classes have only methods?

Because a class definition always defines prototype methods. Class variables are possible, but you wouldn't use prototype to set them.

What is a callback function?

Developer will call a method and pass a function (as an argument) that will get called back by the underlying implementation.

JavaScript Testing

More than one year old, but this blog is still my heart winner!!

Read more: http://thejsguy.com/2015/01/12/jasmine-vs-mocha-chai-and-sinon.html

Some other useful links:


http://sinonjs.org/

https://facebook.github.io/jest/

https://medium.com/powtoon-engineering/a-complete-guide-to-testing-javascript-in-2017-a217b4cd5a2a

http://blog.testdouble.com/posts/2016-03-13-testdouble-vs-sinon

Wednesday, August 30, 2017

AJV - the JSON Schema validator


  • Ajv is the fastest JSON Schema validator for node.js and browser.
  • Ajv compiles schemas into functions - ajv.compile(<your schema>)
  • ajv.validate(<your json data>) returns the errors.


So far I feel comfortable with this site to practice JSON validations: 

https://json-schema-validator.herokuapp.com/


Read more:
https://www.npmjs.com/package/ajv



Friday, August 25, 2017

24 Chambers of Shaolin


  1. Create a NodeJs application with express
  2. Create a NodeJS application with routes, MongoDB
  3. Create a NodeJS application with RestAPI (creating and consuming)
  4. Create a NodeJS + Spring Boot application with RestAPI
  5. JavaScript advanced topics like Promises, Array methods, callbacks, call, apply, bind, curry
  6. JavaScript ES6 - Fundamentals
  7. JavaScript TypeScript - Fundamentals
  8. ReactJS fundamentals
  9. ReactJs application
  10. ReactJS application with Routes
  11. ReactJS, Redux application
  12. ReactJS + Spring Boot application with Rest API
  13. Testing - unit, integration
  14. Debugging
  15. Deployment of NodeJS application
  16. Jenkins pipelines
  17. git commands
  18. Unix Shell scripts
  19. SaaS CSS basics
  20. Responsive web design
  21. GIT
  22. MAC
  23. Maven, ant, Gradle
  24. Gulp, Grunt, web pack

Thursday, August 24, 2017

More on Spring Boot Annotations

This web site explains some of the key Spring Boot annotations that I came across while working on a Spring Boot application.

http://zetcode.com/articles/springbootbean/

A sample of explanation: Spring @Bean annotation tells that a method produces a bean to be managed by the Spring container. It is a method-level annotation. During Java configuration (@Configuration), the method is executed and its return value is registered as a bean within a BeanFactory.

You see, it's that simple and cool :)