December 12th, 2009 by Moti Karmona | מוטי קרמונה · 2 Comments
This is my recommended check-list for high level design review.
*********************************************************************** *** keep it simple and make sure it answers all the requirements ***
***********************************************************************
Reverify your Requirements
Functional specification, use cases and requirements are clear and publicly documented
August 10th, 2009 by Moti Karmona | מוטי קרמונה · No Comments
Recently, I have encountered an interesting paper (2006) about Chubby – Google’s (Paxos based) distributed lock service.
I was especially amazed by the observations made on the Google engineering capabilities and mindset inside a “formal” research publication.
Although one can easily get into a cynical state of mind reading this paper… I feel that this “pragmatic view” which combines a deep architectural and algorithmic know-how with keen understanding of the social factor in software development is exactly the key to create legendary software.
Anyway, very well written – highly recommended reading…
“Our developers sometimes do not plan for high availability in the way one would wish. Often their systems start as prototypes with little load and loose availability guarantees; invariably the code has not been specially structured for use with a consensus protocol. As the service matures and gains clients, availability becomes more important; replication and primary election are then added to an existing design.”
“Developers are often unable to predict how their services will be used in the future, and how use will grow. A module written by one team may be reused a year later by another team with disastrous results … Other developers may be less aware of the cost of an RPC.”
“Despite attempts at education, our developers regularly write loops that retry indefinitely when a file is not present, or poll a file by opening it and closing it repeatedly when one might expect they would open the file just once.”
“Developers rarely consider availability. We find that our developers rarely think about failure probabilities.“
“Developers also fail to appreciate the difference between a service being up, and that service being available to their applications.“
“Unfortunately, many developers chose to crash their applications on receiving [a failover] event, thus decreasing the availability of their systems substantially”
November 21st, 2008 by Moti Karmona | מוטי קרמונה · 4 Comments
“You can always start a weekend experiment but you can never know how it will end” (Moti Karmona, 2008 ;)
I was very curios and wanted to take the GAE for a quick test drive but the Google documentation have few inaccuracies and isn’t sufficient if it is your first Python encounter so I lost three hours of precious beauty sleep and compiled this blog-post-capsule for future generations.
Help –> Software Updates –> Available Software –> Add the http://pydev.sourceforge.net/updates site –> Install it –> Restart Eclipse
Configure Eclipse to use the Python interpreter by navigating to Window –> Preferences –> PyDev –> Interpreter –> Python –> New and select the location of python.exe on your system
Create your first project
File –> New –> PyDev project and click next –> Name your project and make sure Python 2.5 is selected.
Add necessary App Engine libraries to your project | Right click your Project folder –> Properties –> PyDev – PythonPath (see image below)
Open a command prompt and navigate to your application directory.
Type appcfg.py –email=yourgmailaccount@gmail.com update src\
To publish code within Eclipse, open Run –> Run configurations and make a copy of your previous run configuration. Change the Main Module to appcfg.py, and change the argument tab to –email=yourgmailaccount@gmail.com update ”${project_loc}/src”
Your code is now live! Test it by going to http://yourapp.appspot.com
October 28th, 2008 by Moti Karmona | מוטי קרמונה · 1 Comment
Yahoo have released the Y!OS (Yahoo Open Strategy) 1.0 platform.
This is a cool set of simple APIs that can give you access to everything you ever wanted in Y! but was afraid to ask for…
Yahoo! Social Platform (YSP) // The Yahoo Social Platform is a set of RESTful APIs for Profiles, Connections, Updates, Contacts and Status.
Yahoo! Query Language (YQL) // The Yahoo Query Language is a web service that functions much like SQL (see example below)
OAuth Authentication // OAuth is the authentication and authorization standard Yahoo has decided to use when giving third parties access to Yahoo user data.
Yahoo! Applications Platform (YAP) // Currently very limited and in a restricted sandbox.
________________________________
Example: How to use YQL APIs to access MyBlogLog profiles?
Simply ask for all the community members of MyBlogLog community with this YQL:
select * from mybloglog.members.find where community_id in (select id from mybloglog.community.find where name=”Karmona Pragmatic Blog”)
And once you have the IDs you can ask for my personal profile by:
select * from mybloglog.member where member_id =”2008070609482910″
Well… together with the existing BOSS API, this set of APIs is a powerful enablers to the Y! development network and I am sure some cool stuff are going to emerge from this innovative move…
Amazing!!!
________________________________
* You can have more YQL experiments using the YQL Console
** Boss Hack Day is coming to Tel-Aviv | November 6, 2008 @ Feature (!!!)
September 20th, 2007 by Moti Karmona | מוטי קרמונה · No Comments
Chronicle of a Death Foretold = Waterfall Shmoterfall = Checkmate in 10 moves * Note: I did see, participate and lead some successful waterfall projects (mainly due to some adoption of agile methodologies ;-) and this is my view of the projects which failed…
Release scoping start with marketing high-level-copy-paste-from-last-year-marketing-presentations MRD in ~1 month delay
1 month of quick lets-write-all-the-features-we-can PRD – This is also the last time you hear from the product manager until the next milestone-demo-crisis.
High level design for a couple of weeks which sum-up to a Very Rough Time Guesstimate a.k.a. VeRTiGo
Release time-frame is set ~1 year ahead with the needed VeRTiGo “squeezing” and high level time-frame is determined:
2 months of the waste above and last release leftover
1-2 months of Planning (functional and technical design)
4-5 months of Development – with ~3 Major Milestones
3 months of QA & stabilization
1 month of Project Buffer
Very soon the development teams are scattered like lonely wolfs – everyone for himself until the next integration or major milestones months away.
First milestone is ending with:
20% of the content is really Done a.k.a. “Even a Blind Chicken Finds a Kernel of Corn Now and Then”
50% is “done” with dirty bugy code, low quality, performance issues with missing or wrong functionality
30% is just not ready
Developers and low level management remind themselves yet again to put more buffers…
The PMO suggest (in relax and trusting tone) to postpone the milestone or remove content.
Management doesn’t get in panic (they have seen it before ;-) and decide not to decide: “Let’s see if we can cut the drawback in the next Milestone” a.k.a. The classic do {} while(timeRemaining > Last Milestone)
Next milestone has much more content and the pressure builds up… until the last milestone blaming game which usually ends up with ~2 month delay and half of the planned content.
August 4th, 2007 by Moti Karmona | מוטי קרמונה · No Comments
Before getting into the Java vs. Net battle lets start with some other options ;-)
If you like challenges then you must try the brainfuck language which was created by Urban Dominik Muller and noted for its extreme minimalism – 240 bytes compiler download here
e.g. you can easily print “Hello World!” and a newline to the screen with the line below:
If you favor comments then you might consider using CPL which was created out of a need for advance commenting features, not found in any other existing programming language (e.g. nested comments…) @ http://sourceforge.net/projects/c-p-l/So…
Without copy-pasting a word – I think the best references to the Java vs. Net debate are:
& nothing like a good flammable Slashdot discussion to get under-the-hood of this debate…
…Personally, after many years of Java-Java; I really like .Net-ing for the past year… especially after watching Steve Balmer, “Developers dance” @ http://youtube.com/watch?v=NSIMeRtVebM