Posts

Showing posts from 2016

Groovy Notes

 Groovy is a great mix of dynamic flavor, while still  being able to use types. It is one of few languages  that sport optional typing, that is, the flexibility  to provide type information if we want to and leave  type information aside when we don't want to. Closure in Groovy is a block of code that can be assigned to  a reference or passed around just like any other variable.  The concept is known as lambda in many other languages,  including Java 8 or function pointers. 1.) Hello World program   def cl1 = {      println "hello world!" } cl1.call() it prints the following: hello world! 2.) As closures are like methods, they can also accept parameters: example 1: def cl2 = { n ->     println "value of param : $n" } cl2.call(101) It prints the following: value of param : 101 example 2: 3.times(cl2) It prints the following: value of param : 0 value of param : 1 value of param : 2 We can also inline the block a...

How to manage deadlines ?

Are you scared of Deadlines ? many people do. many meet their deadlines by working late , putting themselves under tremendous pressure.and in the process loose their peace of mind, ignore their family and so on. and if you miss it then you feel bad about it and you leave a bad impression on your team and can potentially impact the delivery of the project. So, why should one have deadlines ? one, it will make you focused and you can devote 100% only on that particular work and can easily postpone other work till you finish that. First thing to know is who is setting up those deadlines ?  is it you ?  your boss ? or a third party ? do you have nay say in it ?  make sure you have the final say in it otherwise you will end up stressing yourself. And,  other thing keep in mind is that not every project or work can have a dead line. if you do that then you are putting yourself under unnecessary pressure. deadlines should be set for a project or work where it has to...