Not talking about cute and glossy girlz of Ethiraj or Stella Marys guyz... Very much the S/W Arch and we are in the next dining of Design Patterns. Hope we are almost neatly confused on Creational Pattern., if you aren't, plz go back and read my previous blog again and get yourself confused. Only a muddy water could become clear by settling 'down'...
So, traversing on with the next biggie of the Patternz.. Structural Pattern. Lets take an orthodox IT Motor Giant GM as a metaphor here. Long while ago, (in 1984) the IT Titan EDS (now HP Enterprise Services) was an entity or I should say an internal entity of GM. So an automation program for this kind, would treat this architecture as GM as an outer entity and EDS as an inner entity of GM viz, making EDS a subset of GM.
However, things changed after 12 years EDS got its own pair of wings leaving GM cribbing 'kilikku rekka mulachiduthu, parannnndhu poiduthu...'. And now, we are, at this stage, in a position to change the architecture of this. Now EDS, nomore an inner entity of GM. So, at a minimal impact, this complicated change needs to be implemented. At this place comes too handy our Structural Pattern!!
So Structural pattern is basically for to manage Structural change, when there is a change in the architecture than needs to be accomplished without major hiccups..!
Signing off now... Next blog would either be on my behavior on my lost and found purse or about the behavioral pattern... Depending on my sleepy time at office or home...
0-0!!
Monday, May 24, 2010
Wednesday, May 19, 2010
The 3 biggies of D Patterns...
Continuing with where we left last time, the Design Patterns matterz, let us first peep into the broad classification of the Design Patterns. But before seeing through that, as I always used to say, take any practise in S/W engg., either be in OOPS or Design Patterns or MVC etc, they simply copycat the real life strategy. If you have 'felt' OOPS you will be one among the very few who accept with this... Ofcourse, I am one there!! ;-)
The reason for the above sentence being present in here is - anything, any object, any creature would suffer the following linear cycle stages - a) Creation, b) Growth, c) Behavior and ofcourse, d) Elimination (or Disposal). And know what? The categories of DP as well, follow these patterns strictly and the attire of them is as follows:
So once the client code starts accessing the Business classes by creating objects for each and every one of them... Just for an example, in a Teaching institution, the client code starts instantiating for the Student object, the Faculty Object, the Classroom object, Textbook object, Examination, Fees, Batches, and so on and on and on... The client code creating those objects, using the objects, closing the objects and disposing / releasing the objects - thus making itself too (we can even add a couple more o there) complicated to maintain and for the readability as well. Another well proven demerit in this approach is the client code is too heavily coupled with the Concrete classes. (A concrete class is one which can be instantiated directly).
So to solve these kind of issues, we have the saviour Creational Pattern. This category of patterns deals with Centralizing the object creation or to delegate the object creation.
Lets see Structural Pattern and Behavioral pattern in my next blog!!
0-0 (Love all) ;-)
The reason for the above sentence being present in here is - anything, any object, any creature would suffer the following linear cycle stages - a) Creation, b) Growth, c) Behavior and ofcourse, d) Elimination (or Disposal). And know what? The categories of DP as well, follow these patterns strictly and the attire of them is as follows:
- Creational Pattern
- Structural Pattern.
- Behavioral Pattern
So once the client code starts accessing the Business classes by creating objects for each and every one of them... Just for an example, in a Teaching institution, the client code starts instantiating for the Student object, the Faculty Object, the Classroom object, Textbook object, Examination, Fees, Batches, and so on and on and on... The client code creating those objects, using the objects, closing the objects and disposing / releasing the objects - thus making itself too (we can even add a couple more o there) complicated to maintain and for the readability as well. Another well proven demerit in this approach is the client code is too heavily coupled with the Concrete classes. (A concrete class is one which can be instantiated directly).
So to solve these kind of issues, we have the saviour Creational Pattern. This category of patterns deals with Centralizing the object creation or to delegate the object creation.
Lets see Structural Pattern and Behavioral pattern in my next blog!!
0-0 (Love all) ;-)
Monday, May 17, 2010
Design Patterns - Re-use, dont re-invent the wheel!!
Long time since I had done any note on Technical stuffs... It is always an easy but risky thing to write something technically, the very reason being, we gonna write something which is rite there very much existing.. Since it is existing, no need to add any spicy masala, juicy jigar thanda to it... Just write as-is... Sametime, any inaccuracy would be a 'digging a perfect my own grave' on this topic..
Before I start sharing of what I know in Design patterns, I would like to give the due tribute to the great techy tutor, one of the great teachers of my time I believe - Mr. Shabarinath KP who gave me the exact of know-what of Design Patterns... I am sure 80% of this Design Patterns blog would be from the notes I had taken from his classroom session!! And the other 20% would be my grammer mistakes!!
Ok, no more big fun, babool, boomer drags... Lets get straight in DP matters...
First, before getting to know 'about' anything, it is always a good 'practice' that we get to know why do we need that! So, lets see 'why' design patterns before hopping to 'How' of the D patterns.
My dad is a seasoned mechanic in motor cars and he is passionate on repairing them. (No, no, he is not a Khan, he can repair only Motor cars and bikes). During the 80's our business flourished like anything... In the mid 90's the business started taking a little deceleration, but it was not seamingly visible. In the 21st century, the business almost taking a reverse gear...
The very reason for this downfall is not only the recent recessions and blah blah.. The simple and subtle cause is almost all the Motor Cars manufacturers offer the AMC (Annual Maintenace contract) at a reasonable rate. So any customer (that may include me as well - sorry dad), who has bought the car for a mountain price, would always, 20 out 22 times, prefer for getting serviced, repaired in the authorized repairing/service centre and definitely not the risk of going to some unknown mechanics!
So, why do we need to go for an authorized Service centre instead of a local craftsman? - Reason is the standards, it is well known for Authorized Centre's practices (or atleast the look-alike ;-)) and most importantly, it is proven... We still believe Sachin IS the best even if he delivers an HatTrick of Golden ducks...
This exactly the same reason, why do we need to go for Design Patterns. Its a kind of just re-using the wheel instead of re-inventing it... (ahh., the title is now used... ;-)). So DP has its standards, best practices and most most importantly, its tested, tested and tested and proven to be error proof, if used appropriately and correctly...
The term 'appropriately' mentions whether a particular problem could be fixed/approached/achieved by DP. The instance 'correctly' denotes the usage of the guidelines correctly and as per the stated (and tested/proven) 'rules'...
So, as per the 'text book' definition, "Design patterns are documented, tried and tested solutions for recurring problems in a given context".
So another very nice and hi-fi requirement for the DP is that it makes the visualization of the architecture more simple and efficient. One can clearly and quickly snap the HLD (High Level Design) when seeing a particular problem...
Fine.. Thats tooo much of 'Y' about DP... Lets explore the patterns of design in detail hereon!!
Cheers!!!
Before I start sharing of what I know in Design patterns, I would like to give the due tribute to the great techy tutor, one of the great teachers of my time I believe - Mr. Shabarinath KP who gave me the exact of know-what of Design Patterns... I am sure 80% of this Design Patterns blog would be from the notes I had taken from his classroom session!! And the other 20% would be my grammer mistakes!!
Ok, no more big fun, babool, boomer drags... Lets get straight in DP matters...
First, before getting to know 'about' anything, it is always a good 'practice' that we get to know why do we need that! So, lets see 'why' design patterns before hopping to 'How' of the D patterns.
My dad is a seasoned mechanic in motor cars and he is passionate on repairing them. (No, no, he is not a Khan, he can repair only Motor cars and bikes). During the 80's our business flourished like anything... In the mid 90's the business started taking a little deceleration, but it was not seamingly visible. In the 21st century, the business almost taking a reverse gear...
The very reason for this downfall is not only the recent recessions and blah blah.. The simple and subtle cause is almost all the Motor Cars manufacturers offer the AMC (Annual Maintenace contract) at a reasonable rate. So any customer (that may include me as well - sorry dad), who has bought the car for a mountain price, would always, 20 out 22 times, prefer for getting serviced, repaired in the authorized repairing/service centre and definitely not the risk of going to some unknown mechanics!
So, why do we need to go for an authorized Service centre instead of a local craftsman? - Reason is the standards, it is well known for Authorized Centre's practices (or atleast the look-alike ;-)) and most importantly, it is proven... We still believe Sachin IS the best even if he delivers an HatTrick of Golden ducks...
This exactly the same reason, why do we need to go for Design Patterns. Its a kind of just re-using the wheel instead of re-inventing it... (ahh., the title is now used... ;-)). So DP has its standards, best practices and most most importantly, its tested, tested and tested and proven to be error proof, if used appropriately and correctly...
The term 'appropriately' mentions whether a particular problem could be fixed/approached/achieved by DP. The instance 'correctly' denotes the usage of the guidelines correctly and as per the stated (and tested/proven) 'rules'...
So, as per the 'text book' definition, "Design patterns are documented, tried and tested solutions for recurring problems in a given context".
So another very nice and hi-fi requirement for the DP is that it makes the visualization of the architecture more simple and efficient. One can clearly and quickly snap the HLD (High Level Design) when seeing a particular problem...
Fine.. Thats tooo much of 'Y' about DP... Lets explore the patterns of design in detail hereon!!
Cheers!!!
Friday, May 14, 2010
Thanks to APS fathers... (Not fathers of APS)
The newly promoted dads, the trio, Ramesh, Krishna, Shantosh's treat is happening atlast today!!! Should have happened last week. But didnt due to technical / managerial reasons... ;-)
And, I am on leave today... Am going to Accord directly from home.. Not alone.. Planning to take Saravana as well... Mom not allowing me to take him with me...
Got to convince her...
See you chaps...
Cheers...
And, I am on leave today... Am going to Accord directly from home.. Not alone.. Planning to take Saravana as well... Mom not allowing me to take him with me...
Got to convince her...
See you chaps...
Cheers...
Sunday, May 09, 2010
Radio Mirchi - Cool Machi!!
Mom and dad had gone for the Nithyashree concert (Navarasam in Kamarajar Arangam). I gave the tickets as a gift to my mom as Mother's day gift!! (after Hari and Ramesh not interested in the show) :-) Mom was more happy for how I got the ticken than for the 750/- x 2 pass!!! The couple pass was given to me as prize for participating in a call with the RJ and talked about the worst defeat that India faced on Friday... I won the tickets by talking about my nation's defeat!! :-)
Today too, been to office since there were few issues in the interface run due to some server restart... ahhh... Nowadays, I am searching for some time during the day..... One more thing.., planning to add an additional label to my blog... Technical it would be... And to start with, it would be on Design Patterns!!
Got to get up tooo early tomorrow.... Seeeeuuu!!!
Cheers!!
Today too, been to office since there were few issues in the interface run due to some server restart... ahhh... Nowadays, I am searching for some time during the day..... One more thing.., planning to add an additional label to my blog... Technical it would be... And to start with, it would be on Design Patterns!!
Got to get up tooo early tomorrow.... Seeeeuuu!!!
Cheers!!
Sura - Surely Sorry for Vijay and a whip for his fans...
Yessss!!! Whoa!! Jolllly.... My 4 year old cousin jumped in excitement when I told him we would go to Vijay *er Sura. Yes, we went to Sura yesterday since Saravana is a staunch fan of Vijay and Sura is produced / snatched by Sun Pictures... Adding to my woes, everytime Sun TV shows the promo of that movie where the hero delivers absolutely meaningless punch monologues with fulllll of feelingggs and (e)motions in his face, the kid looks at me, querying 'when' - I reply him with smile - 'today'!! Many 'today's passed by and that today came yesterday when I finally booked 3 tickets online for Sura Night Show in Sathyam.
Apart from the Butter Popcorn with Onion Cream masala, nothing, not-a-thing was enjoyable in the movie I should say... Not even there were any good looking girls both in the film as well as in the theatre... All were kids with their parents... (may be its a Vijay movie) :-(
If Vijay planning to launch himself in politics, it is correct that media and especially cine media is a great weapon for that. Unfortunately he is using the weapon in the wrong side, which, for sure would end up in attacking himself... We all (ok, atleast few of us) know that he does have the charisma and the mass attraction. But no one knows why he is just chosing the formula based films and that too wrong formulae...
Apart from the Butter Popcorn with Onion Cream masala, nothing, not-a-thing was enjoyable in the movie I should say... Not even there were any good looking girls both in the film as well as in the theatre... All were kids with their parents... (may be its a Vijay movie) :-(
If Vijay planning to launch himself in politics, it is correct that media and especially cine media is a great weapon for that. Unfortunately he is using the weapon in the wrong side, which, for sure would end up in attacking himself... We all (ok, atleast few of us) know that he does have the charisma and the mass attraction. But no one knows why he is just chosing the formula based films and that too wrong formulae...
Wednesday, May 05, 2010
Pain injects the laziness or is it the vice versa??
Just came from SDAT... Having a light fever and heavy body pain... Especially the pain that keeps pulling the thread in your joints ohhh.. I hate that... For that instance, any creature / living being hates pain rite, including the micro amoeba...
Having a deep thought of bunking the office today quoting my (very real) body pain and fever... Feeling very lazy because of this pain... Or is it paining because I am zombie like this? Hmmm, my percentage quotient now says to call Simon and inform about my leave today... But I am sure once I inform about my sick leave, I will call back Simon again and tell him that I will be coming and create a gritty opportunity for my APS folks primarily my Super Sustain Bro to make a nice kalaikkal on me... So, dropped immediately the plan of cutting the work off today...
Got to buy the Ravanan music cd.. NO NO, I havent become clean... This is for the pudhu maapilla Hari... Seems he had decided against internet mp3s for ARR songs...
Another nice news.. I think Chandma would be interested in this... Fitness One has been launched inside the campus of SDAT swimming pool... The same high sky rates but some creditable discounts available it seems...
If mom knows this, she will insist me to join in there... Should not be known to her..
OK.. Got to start to office... The morning pleasent climate no longer seems to be prevailing and Chennai Hot Sun is back to form...
Starting... and so signging off...
Cheers!!
Having a deep thought of bunking the office today quoting my (very real) body pain and fever... Feeling very lazy because of this pain... Or is it paining because I am zombie like this? Hmmm, my percentage quotient now says to call Simon and inform about my leave today... But I am sure once I inform about my sick leave, I will call back Simon again and tell him that I will be coming and create a gritty opportunity for my APS folks primarily my Super Sustain Bro to make a nice kalaikkal on me... So, dropped immediately the plan of cutting the work off today...
Got to buy the Ravanan music cd.. NO NO, I havent become clean... This is for the pudhu maapilla Hari... Seems he had decided against internet mp3s for ARR songs...
Another nice news.. I think Chandma would be interested in this... Fitness One has been launched inside the campus of SDAT swimming pool... The same high sky rates but some creditable discounts available it seems...
If mom knows this, she will insist me to join in there... Should not be known to her..
OK.. Got to start to office... The morning pleasent climate no longer seems to be prevailing and Chennai Hot Sun is back to form...
Starting... and so signging off...
Cheers!!
Monday, May 03, 2010
InPopularGone...
80 out of 90 cinema goers would say either of the following answers - "yes / ofcourse / obviously" for the question, "do you prefer popcorn during a movie?"... Dont know why the corn turned inside out reaally turns us in especially during a movie, even not just bothered about the tiny pickings that get caught inbetween the teeth...
We Chennaites simply love the Butter Popcorn with the masala with a Pepsi combo given for 100/- (or 120/- I dont remember) in Sathyam Complex... wowwww.... It adds up the taste to the movie if the movie is good... It catches up with the disappointment if the movie is not...
Whatsoever, the popcorn is like a chwwweet little charming Girl Friend!! (OK, for girls, the PC is the hard-shouldered cum credit carded beau). And this block of the blog is definitely not for the sake of telling about the pops...
When I booked the ticket for Clash of Titans in PVR cinemas, I did have the expectation of not only the movie but also for the tasty popping corns... But alas, both severely disappointed me...
The movie proving to be brrrrr... and most importantly, my favorite gf, the pop-corn is horrible in taste... Absolutely there was just nothing in the stuff and it was something like a 100 times chewed bug-fun errrrrr-aaahhhh... sorry, big fun bubble gum... Atleast big funla mutta udalam...
If this was my opinion or perception, its the same with Hari as well... Oh yeah... Hari is back with a bang today... (Here bang refers to the milk sweets he had got for us from Gupta - yummmy they were...). Seems he didnt have a good time with the popcorn while in PVR for VTV... Correctly said by him, the corn available in our canteen is far better than that posh, hiiiiiighhhhhly priced tasteless corn... Infact, I am not sure whether even we, the APS folks would be interested to munch it if it is made available in any of our bays...
PVR guys, plz make your popcorn a bit spicy and add some good taste to that, otherwise, the profit might just start popping out of your crease....
We Chennaites simply love the Butter Popcorn with the masala with a Pepsi combo given for 100/- (or 120/- I dont remember) in Sathyam Complex... wowwww.... It adds up the taste to the movie if the movie is good... It catches up with the disappointment if the movie is not...
Whatsoever, the popcorn is like a chwwweet little charming Girl Friend!! (OK, for girls, the PC is the hard-shouldered cum credit carded beau). And this block of the blog is definitely not for the sake of telling about the pops...
When I booked the ticket for Clash of Titans in PVR cinemas, I did have the expectation of not only the movie but also for the tasty popping corns... But alas, both severely disappointed me...
The movie proving to be brrrrr... and most importantly, my favorite gf, the pop-corn is horrible in taste... Absolutely there was just nothing in the stuff and it was something like a 100 times chewed bug-fun errrrrr-aaahhhh... sorry, big fun bubble gum... Atleast big funla mutta udalam...
If this was my opinion or perception, its the same with Hari as well... Oh yeah... Hari is back with a bang today... (Here bang refers to the milk sweets he had got for us from Gupta - yummmy they were...). Seems he didnt have a good time with the popcorn while in PVR for VTV... Correctly said by him, the corn available in our canteen is far better than that posh, hiiiiiighhhhhly priced tasteless corn... Infact, I am not sure whether even we, the APS folks would be interested to munch it if it is made available in any of our bays...
PVR guys, plz make your popcorn a bit spicy and add some good taste to that, otherwise, the profit might just start popping out of your crease....
Sunday, May 02, 2010
Rain Rain Go away!!!
Every single soul would turn me around kick me in my back for this very title in this hhhhhott shoot summer... But I continued to say this on Saturday early morning when I saw through the lovely gentle drizzlings outside my bedroom window... A msg quoting the bad weather and the impossibility of today's cricket match we have planned, from atl Ramesh disappointed (and disturbed) me still further..
Checked with others and Goodri (he is soooo good, so didnt want to use bad!!) promptly replied with his stylish 'noope'...
Krishna called up and consoled 'this too would pass in few mins'... But Rain God had different plans and not having any mercy on the thousands and thousands of street cricketers who were looking forward for the weekends to establish their abilities with the tennis ball and gloveless hands... Closed my eyes and cuddled in my pillow...
When I opened my eyes, my ears could still hear the little rain outside and the clock in my mobile told me the time is ....... 8:30 AM!!!
And that said it all!! No cricket for today!!!
Consoling myself and got ready to get myself immersed in SDAT. I really wanted to experience the swim action during a rainy day... ufff... The closed gates of SDAT, for the first time in the day reminded me that its not only the day of rain... its my day, our day... - The Workers day...
Happy working and long live Marina!!! :-)
Checked with others and Goodri (he is soooo good, so didnt want to use bad!!) promptly replied with his stylish 'noope'...
Krishna called up and consoled 'this too would pass in few mins'... But Rain God had different plans and not having any mercy on the thousands and thousands of street cricketers who were looking forward for the weekends to establish their abilities with the tennis ball and gloveless hands... Closed my eyes and cuddled in my pillow...
When I opened my eyes, my ears could still hear the little rain outside and the clock in my mobile told me the time is ....... 8:30 AM!!!
And that said it all!! No cricket for today!!!
Consoling myself and got ready to get myself immersed in SDAT. I really wanted to experience the swim action during a rainy day... ufff... The closed gates of SDAT, for the first time in the day reminded me that its not only the day of rain... its my day, our day... - The Workers day...
Happy working and long live Marina!!! :-)
Subscribe to:
Posts (Atom)