https://cli.angular.io/
Wednesday, May 4, 2016
ANGULAR 2 - Augury framework for Chrome. Debugging Angular 2 apps
Here is the link on Augury framework for Chrome. It is used for debugging Angular 2 apps.
https://augury.angular.io/
https://augury.angular.io/
BOOK - Paul Graham
Paul Graham http://paulgraham.com/index.html
Russian translation of Hackers & Pinters chapter 10: https://habrahabr.ru/company/edison/blog/281561/
Russian translation of Hackers & Pinters chapter 10: https://habrahabr.ru/company/edison/blog/281561/
Tuesday, May 3, 2016
JAVA 8 - what is Functional Interface and Lambda Expression, etc
Functional Interface is an interface with only one method.
- default methods do not count
- static methods do not count
- methods from the Object class do not count
A Lambda Expression is an instance of a functional interface.
- default methods do not count
- static methods do not count
- methods from the Object class do not count
A Lambda Expression is an instance of a functional interface.
public interface Predicate<T> { boolean test(T t); }Implementation would be:
Predicate<String> predicate = s -> s.length() < 20;System.out.println(predicate.test("Hello world!"));//expicite way of using it
Saturday, April 30, 2016
Friday, April 29, 2016
COLLECTIONS - mutable List vs unmodifiable view of List
When you use Collections.unmodifiableList(list) it will return unmodifiable view of that list, it means you will get an UnsupportedOperationException on add() over that view etc.
But in the same time the list itself remains to be mutable in case it is modified in proper way e.g. by the programm API.
But in the same time the list itself remains to be mutable in case it is modified in proper way e.g. by the programm API.
GRALDE - add custom external *.jar to module dependencies
1. An example is map-visualiser project from github
2. Clone that project and make gradlew build for it
3. It will build its *.jar inside of /build/libs
4. Create libs dir inside your module
5. Copy/past that *.jar into your module libs dir
6. Add these LOCs below into module's build.gradle and build the project:repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
compile name: 'map-visualiser-1.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
Thursday, April 28, 2016
JAVA CONCURRENCY - my notes for Applying Concurrency and Multi-threading to Common Java Patterns
Applying Concurrency and Multi-threading to Common Java Patterns on Pluralsight.com
Author blog (Jose Paumard): http://blog.paumard.org/en/
Author blog (Jose Paumard): http://blog.paumard.org/en/
GOLDEN RULE IN CONCURRENT PROGRAMMING
Never expose to outside the lock object
you use to synchronize your code!!!
Wednesday, April 27, 2016
SCALA - Scala for Java developers notes
Resources:
This course on Pluralsight
http://scalaforfunandprofit.com/why-use-fsharp/
http://docs.scala-lang.org/style/
History
Started in 2003 as research project in Switzerland.
Research was headed by Martin Odersky - an author of Java Generics and Java compiler.
Scala was adapted by:
Scala is for the future Software Development and there is non too much experienced devs
http://insights.dice.com/2014/04/04/employers-cant-find-enough-scala-talent/
Pure functions
Is associated with objects and work without a side-effects (or mutation).
Define fixed variable - vow.
Higher order functions
Functions are "first citizens" in Scala. This why functions could:
This course on Pluralsight
http://scalaforfunandprofit.com/why-use-fsharp/
http://docs.scala-lang.org/style/
History
Started in 2003 as research project in Switzerland.
Research was headed by Martin Odersky - an author of Java Generics and Java compiler.
Scala is for the future Software Development and there is non too much experienced devs
http://insights.dice.com/2014/04/04/employers-cant-find-enough-scala-talent/
Pure functions
Is associated with objects and work without a side-effects (or mutation).
Define fixed variable - vow.
Higher order functions
Functions are "first citizens" in Scala. This why functions could:
- receive other functions in its parameters
- return functions
- to be stored for later execution
Subscribe to:
Posts (Atom)




