It’s interesting what one can find when cleaning up an old laptop before dumping it Old photos that I’ve long forgotten of (some embarrassing ones too, omg the haircuts I supported throughout the time! :D), snippets of code back from the day when technology X was just coming out of its stables and I was trying my hand at it (again, some of them rather embarrassing as they never really took off, so in hindsight that was just a waste of time) … and in the case of yours truly, also snippets of blog articles and ideas that I was working on ages ago which again never saw the daylight. In this particular case, I came across a blog article that I nearly finished back in the day but never quite finished — and then other projects captured my attention so I buried this in the hard disk and left it to rot
This particular article I think surfaced in the early days of my aws-version-mgmt project on SourceForge (what happened to them? It’s all github and bitbucket nowadays..) — and as the work was progressing on that and I was looking for volunteers to lend me a hand at this open-source project, it occurred to me that some other open source folks might benefit from my experiences and learnings from this so I put together this (rather long) article. Since it’s quite long, I’m going to attach it here as a PDF — feel free to download it and spread it — however, just to save you some time and help you decide if this is something worth your attention, I’m including below some snippets from the article.
I stumbled upon this potential idea recently, when one of my friends from Romania was over here for a conference. His company was paying for his trip expenses and they put him up in a hotel in Redwood City as it turns out. As you do when you travel, you try and connect with old colleagues and friends who are in the area — so he wanted to come and visit me. Due to work commitments we decided to meet during the week in the evening and he said he’d come over and stay the night. We exchanged addresses and agreed on times etc and then the evening came when he was supposed to turn up. His taxi dropped him to my door as expected but as the conversation started to flow he confessed that the taxi ride was a bit difficult to organize: he had to talk to the concierge who had to look around for local taxi companies (apparently they still exist in the Valley ) and then talk to a few (some rather exorbitant as I understand) and finally booked him a taxi. Then the on-board system wouldn’t take his Romanian credit card so they had to go to a cash point and used his (Romanian again) debit card to draw cash and pay the driver. Throw in this a call he got from his Romanian bank in the middle of it all — as they were trying to ensure this wasn’t a fraud — and you got a painful experience.
I’ve come across this recently working on a project in Netflix and thought worth sharing.
As a side note, since we use Gradle, we decided to go with Eric Wendelin‘s gradle plugin gradle-js-plugin. This allows us to take our original source file
abc.js and generate an
abc.min.js in the same directory. Now, we want to keep a copy of the minified version in Git so we can investigate if any issues come up. As such, after we run the minification we need to commit back
abc.min.js (which should be the only file changed at this stage!) into git — and of course push the commit set back to git.
Looking the other day through the JDK Enhancements Proposals (aka “JEP“) I came across JEP-269: “Convenience Factory Methods for Collections”. Oh hello, where have you been all these previous JDK releases? It seems finally the Java world has woken up to what other JVM languages (and not only!) have been offering for a while: an easy way to declare and initialize a collection.
According to the JEP summary, this JEP aims to:
Define library APIs to make it convenient to create instances of collections and maps with small numbers of elements, so as to ease the pain of not having collection literals in the Java programming language.
That sounds cool — I dig To be honest, one of the reasons why I turned my attention to Groovy language in the first place was that it made such things so easy:
def set = ['1', '2', '3'] as Set
def list = ['x', 'y', 'z']
def map = ['a':1, 'b':2]
Tell me you don’t prefer this to the Java equivalent:
Set<String> set = new HashSet<String>(); set.add( '1'); set.add('2'); set.add('3');
And check out also the neigbours’ giant decorations!
Does anyone remember a company called Borland? Or am I showing my age too much?
Spotted the other day, at a team event with my Netflix colleagues, in Mountain View.