Author Archive for bluestella

27
Nov
09

Code refactoring

URL: http://code.google.com/p/codeleanrefactoringseminar/downloads/list
How should you refactor your code?

* Incremental refactoring & the Boy Scout rule

* “Leave the campground cleaner than when you found it”

* Code quality

Code Rot & Technical Debt
Code rot – the decay in software that occurs as a result of not updating your software in respect to the changing environment in which resides
Technical debt – The situation that occurs when you opt to postpone some development activities in favor of a shorter release date.
“Agile – the power of moving quickly and easily; nimbleness: exercises demanding agility“
Does being agile means that you get your product out the door as fast as possible?

* Yes..even if its substandard it is still being agile..

Would you deliver a “squirrel burger” if it meants that you could make the deadline?
Is having a technical debt a bad thing?

* Its tactical decision.

True meaning of Agility

* Agility is measured by the speed of change, not the speed of delivery

How do you know if your code is suffering from code rot?

* immobile

* obscure

* rigidity

* fragility

* Dispensible

How do you know if your code is suffering from a code rot?
Code quality – your code base that many bad code smells.
Development effort – it is becoming more and more difficult to understand.
- take more time to work on the same parts of the code in your system.
Productivity – more difficult to change, developers missing deadlines.

Strategies for Code rot

* automated unit tests

* code reviews

* continuous code write

What if theres too much technical debt in your project?

* Rewrite vs. Refactor

* Depends on the time

What happends to shops that don’t refactor?

* The dead sea effect

* code quality drops

* senior developers quits. they can no longer maintain program

* morale in the shop drops. seniors quit.

* New hires come in, new developers don’t stay because of code quality.

* The big ball of mud

* in many case, systems with large technical debts devolve into systems with no discernible architecture or design (aka the “Big Ball of Mud”)

* common in development shops that suffers from the dead sea effect.

* prevent your application from becoming a BBOM by continously refactoring your code.

Refactor or Rewrite?

* rewriting solves the symptom, not the root of the problem

* the real problem is that there is no refactoring.

* The BBOM is the symptom of bad development practices.

* You should only rewrite a system if:

* The system does not work at all

* It is cheaper to create a new system than to maintain the exsiting system

Beware of the Second System effect

* The second system effect is the tendency for developers to redesign a successor system into giant..

The tale of the Squirrel Burger

What would you do?

* For me, I would do give them the squirrel burger for I am thinking of the sales not the quality of burger we have.

Would you serve it?

Answers:

Reckless/Deliberate

* We don’t have time to design?

Prudent

* we must ship now and deal with consequences

* Now we now how we should have done it

Inadvertent

* What’s layering?

Anatomy of a Software Development “Squirrel Burger”

* No Documentation

* Nobody understands how the system works.

* The shop is “agile” so they decided to document

* Low Code Quality

* Inefficient Development Proccess

If it isn’t broken, then why should we even fix it?

* Refactoring as defect prevention

* refactoring makes code easirer to understand and that makes it easier to find bugs on your code

Why refactor our code if the client doesn’t pay us to refactor?

* Refactoring and the story of Louis Pasteur

* During Pasteur’s time, the concept of washing your hands before an operation was thought to be rediculous

* Refactoring is something that clients rarely ask for.

Refactoring Part II

*fizzbuzzzzbaz coding*

The two values of software

* Function

* Form

Some Bad Code smell Examples

* Contived complexity

* Bad design they want to try out.

Single Responsibility Principle
Many bad code smells inviolate this principle.
Its should do only one and one thing.

Does the following code violate the SRP?
Examples:

* Statement-level examples

* Method-level examples

* Class-level examples

Bad code Smells
The Couplers

* siamse twins, kill one affects the otherother

The Bloaters

* Class, that no one undestands it

Object Orrientation Abusers

* Program code they still writing C. Ugly code structure.

30
Jun
09

TeamCouncilofGreen



TeamCouncilofGreen, originally uploaded by bluestella.

I wasn’t able to do a full length theme for my past-college group but have got something before we leave college. I am not saying this will be my last editing “photoshopping” yet I’ll be setting up something for my past-barkada. Iba parin yung nakasama ko for the past 3 years. Hope one of this days magkasama sama naman ang Team yung isang grupo na tila walang kaguluhan walang awayan, walang problema. Alam kong kaya parin ng grupo na maging isang malaking group that Benilde once had.

Go Team Council of Green. Hope to see the group soon and hope that we will have a big fiesta party one time. :)

25
Jun
09

Microsoft-Smart Dev showdown

For those who wish to be part of Microsoft-Smart Dev showdown but due to some important task to finish and still wants to know whats going on inside the SMX Convention Center I have something for you here. :)

Thanks to Mr. Abram Limpin

I am working for a livestream via ustream.tv but I can’t so I’ll just give you some links instead:

http://www.ustream.tv/channel/developer-showdown

http://developershowdown.spaces.live.com/

24
Jun
09

St. John Bosco – Patron Saint of Magicians

I was busy googling about present administration of my alma mater, Don Bosco Makati and again came through my wits that I misses my school.  I googled for some quotation about Don Bosco, what he said, what famous quotation were. I came through this site having our Patron Saint as the Saint of magician. yikes~

St. John Don Bosco – Patron Saint of Magicians

When most people, Catholics or not, find out that there actually is a Catholic saint whose sphere of influence includes stage magic, they generally ask if I’m sure. The answer is, I’m very sure. January 31 is the day set aside on the Catholic liturgical calendar to honour St. John Don Bosco. Don is simply the Italian honorific for a respected person, equivalent to our Sir. He was referred to as Don even during his life by both villagers and the children for whom he cared. Many people would wonder how it is how it is that the Catholic Church and magic could get mixed up together. During the later half of the 19th century, as Europe’s poor were suffering from the effects of Industrialization, Don Bosco saw how most of the children in his village remained uneducated and unchurched. After Mass on Sundays, he would round up his little friends and relate the Bible stories he learned in church to them. To keep their attention he would use magic tricks as he retold these stories. As a young man, Don Bosco became a priest and directed his ministry solely to poor children. He needed a way to get kids interested in coming to church and to accept the aid he was offering. He used puzzles, riddles and juggling but it was the magic that most quickly caught the kids’ attention. Stories that have come down to us from his contemporaries include some specific tricks he used. He was said to be especially good at tying three ropes together to form one seamless rope in order to explain the mystery of the Christian Trinity. He also would pull coins from ears and change pebbles into money delighting the children who were under his care. Don Bosco started a community of Catholic priests, nuns and brothers who still to this day help street kids and youth in gangs throughout the world including New York City. Catholic magicians in Europe still celebrate this day by performing benefit shows for children. Some Catholic magicians in America celebrate the day in their own creative ways. Though the day might easily go past us, as it has so many times previously, it’s gratifying to sit and reflect, whether or not you are Catholic, on the “magical effect” that tricks have on people and especially children. The real magic occurs when, during performances, we can transport our audience to an alternative world and reality, even if for only a few seconds. Being able to show something fantastic, something “unbelievable” is our special province. Magic can allow us to bring gasps, smiles and open-mouth gapes to anyone we wish. We intentionally stupefy, stagger, mesmerize, enthral and amaze for no other reason than to see the smiles on a thousand faces. It’s not so strange that our most appreciative audiences are frequently kids; they are the most willing to temporarily suspend belief. When we look back to the first magic trick we can remember, it’s not so hard to see why Don Bosco chose to help kids with the use of magic. Happy Don Bosco day everyone! “They followed him because he had amazed them for a long time with his magic.” – Acts of the Apostles 8:11

22
Jun
09

A(H1N1), one on one

What’s with H1N1 that people here are so scared of? Are there written articles about it? Yes you will be reading something from me now. This was actually mailed to me by my friend. Just take a look. :)

A = stands for the type of influenza or the effect it can cause to the victim
it can be A, B orC but the A type is the strongest type cause it may casue death
pero it’sthe same sa mga influenza na nakilala na natin beforehand

anyhooo

H stands for Hemagglutinin it is the protein that is responsible for the attachment on the host cell
so yung first step na gagawin ng virus is to inject the rna or dna na dala nya so yang H protein na yan ang parang nag seset ng program in order for the virus to enter

while

N stands for Neuraminidase which is responsible for the breaking up of the host cell
kasi after the adhesion to the membranes the is a reassembling happening inside the affected cell dun nagfoform yung head, body and tail part ng virus tapos the N protein will program the cell to burst so that the offsprings of the  virus can get out and infect more cells. ayun kumalat na ang cells

and then

the number represents the variations of that disease brought by the virus

example sa HIV there are many variations na so ranging from 1 up to 1000 na siguro ahaha joke lang tapos ayun nagpakabibo ako sabi ko bakit yung cure for the HIV patients up to now wala eh kung ang vaccine naman pala for disease brought by a virus ay yung makakapigil sa protein to do its job

sabi ng prof ko madami na daw reasearch ang nagawa yung iba promising pero hindi parin mapatay patay yung different variations ng HIV virus kaya ayun let’s pray na sana sooner matagpuan ang mga cure sa ganitong nakakatakot na disease

and mag-iingat tayo kasi kapag nag mutate at nagkaroon ng panibagong variation ang swine flu virus…

mas deadlier ang second outbreak. kaya palakasin natin ang ating mga resistensya para naman matuloy ang mga balak nating reunion kapag uugod ugod na tayo! alrytie?

bongga diba ang topic namin sa botany ang lawak ng kaalaman ni prof yun nga lang saglit lang yun back to reality boring again ahaha kasi binalik ng prof namin yung topic about plants pinakita nya yung mga virus ng tomato sa cabbage ahaha ayun nakatulog na ulit ako

kayo ba anu mga natutunan nyo this week share it dali!
para lahat tayo kahit minsan nag-uusap ng nakakanose bleed na bagay ahaha

sana shark nalang ako ahaha ang labo eh kasi sabi sa trivia
“Sharks are immune to all known diseases. “
eto source ko ahaha ano to thesis http://studentsblog.web44.net/?p=68

yehey alam ko na email nyo
SIMPLY ME,
Julianne
A = stands for the type of influenza or the effect it can cause to the victim
it can be A, B orC but the A type is the strongest type cause it may casue death
pero it’sthe same sa mga influenza na nakilala na natin beforehand

anyhooo

H stands for Hemagglutinin it is the protein that is responsible for the attachment on the host cell
so yung first step na gagawin ng virus is to inject the rna or dna na dala nya so yang H protein na yan ang parang nag seset ng program in order for the virus to enter

while

N stands for Neuraminidase which is responsible for the breaking up of the host cell
kasi after the adhesion to the membranes the is a reassembling happening inside the affected cell dun nagfoform yung head, body and tail part ng virus tapos the N protein will program the cell to burst so that the offsprings of the  virus can get out and infect more cells. ayun kumalat na ang cells

and then

the number represents the variations of that disease brought by the virus

example sa HIV there are many variations na so ranging from 1 up to 1000 na siguro ahaha joke lang tapos ayun nagpakabibo ako sabi ko bakit yung cure for the HIV patients up to now wala eh kung ang vaccine naman pala for disease brought by a virus ay yung makakapigil sa protein to do its job

sabi ng prof ko madami na daw reasearch ang nagawa yung iba promising pero hindi parin mapatay patay yung different variations ng HIV virus kaya ayun let’s pray na sana sooner matagpuan ang mga cure sa ganitong nakakatakot na disease

and mag-iingat tayo kasi kapag nag mutate at nagkaroon ng panibagong variation ang swine flu virus…

mas deadlier ang second outbreak. kaya palakasin natin ang ating mga resistensya para naman matuloy ang mga balak nating reunion kapag uugod ugod na tayo! alrytie?

bongga diba ang topic namin sa botany ang lawak ng kaalaman ni prof yun nga lang saglit lang yun back to reality boring again ahaha kasi binalik ng prof namin yung topic about plants pinakita nya yung mga virus ng tomato sa cabbage ahaha ayun nakatulog na ulit ako

kayo ba anu mga natutunan nyo this week share it dali!
para lahat tayo kahit minsan nag-uusap ng nakakanose bleed na bagay ahaha

sana shark nalang ako ahaha ang labo eh kasi sabi sa trivia
“Sharks are immune to all known diseases. “
eto source ko ahaha ano to thesis http://studentsblog.web44.net/?p=68

yehey alam ko na email nyo
SIMPLY ME,
Julianne



iBlog5

IBLOG5

Chat me here!


Free livehelp by Hab.la

Ads

FeedJIT

Subscribe to bluestella

Where am I?

Flickr Photos

13112009083

13112009082

Statements1

i love you, goodbye

More Photos

 

December 2009
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  

RSS IS-EBIZ feed

Tioti

Website Visitor Tracker

bluestella widgets

Donate to Hope