Geeks With Blogs
Josh Reuben March 2015 Entries
Java Annotations Refresher
Annotations (Metadata) embed metadata in source code, for design-time/compile-time/ru... processing Syntax - @<annotation-name>(&l... initializations>) the bedrock of JEE Annotation Definition Import java.lang.annotation package @interface - indicates an annotation type annotation types automatically extend Annotation interface - specifies annotationType() - returns a Class object representing the invoking annotation. use an annotation to annotate a declaration (classes, methods, ......

Posted On Friday, March 20, 2015 9:39 AM

Scalable Service Architecture
Overview A scalable cloud based architecture has converged upon a common design meta-pattern leveraging the following components, which are explained below: A Forward-Cache Proxy An elastic service Load Balancer Stateless Server Facade Nodes A Shared Memory State Cache Client requests hit the Forward-Cache Proxy which returns any memoized service requests if it can. If a new request signature passes the forward cache proxy, it hits the Load Balancer which dynamically allocates the request to one ......

Posted On Friday, March 13, 2015 5:03 AM

The Docker Container Command Line Interface
IMHO, docker lightweight virtualization is an incredible game-changer. It totally sweeps the “DevOps” board and along with etcd and Kubernetes pods, supports complex application chain orchestrations through mapped ports. In this short post, I have summarized my investigations into the Docker CLI. Image Management build <dockerfile> - create an image according to a dockerfile instructionscommit <container> - create an image from a containercreate - create a new container from an imageimages ......

Posted On Monday, March 9, 2015 10:18 AM

Python OOP
Back in the day, I did a fair bit of work with BioPython – I thought it was time to revisit this glue language ! Classes Python allows for the definition of classes. The builtin __init__ function serves as the ctor. Remember to pass self as 1st param to all class functions class MyClass(): def __init__(self): self.y = 5 def doSomething(self): pass x = MyClass() x.doSomething() Static methods use @classmethod to specify that a function is static – dont have to instantiate to call it. class MyClass(): ......

Posted On Sunday, March 1, 2015 6:30 PM

Java Collections Refresher
Jumping around between programming languages, its very easy to forget what is what.Here's my short summary of Java Collections (obviously you can go a step further with Guava !) Collections Overview In java.util package generics, autoboxing/unboxing, ranged for loop, type safety. Algorithms defined as static methods within the Collections class for all collections. a collection can store only references, not primitive value types. Autoboxing/unboxing allows passing / retrieving primative values – ......

Posted On Sunday, March 1, 2015 3:51 PM

Copyright © JoshReuben | Powered by: