Your SlideShare is downloading. ×
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Good programmer habits
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Good programmer habits

1,376

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,376
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. It’s about doing the right thingsKodelokus
  • 2. BE LAZYWoot??
  • 3. I’m not sureI’m doing something useful
  • 4. Class FindUniqueWord {def alphabets = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’,‘f’, ‘g’, ‘h’, ‘i’, ‘j’, ‘k’, ‘l’, ‘m’, ‘n’,‘o’, ‘p’, ‘q’, ‘r’, ‘s’, ‘t’, ‘u’, ‘v’, ‘w’,‘x’, ‘y’, ‘z’]function getWeight(String word) {int weight = 0;for (i=0; i<word.length(); i++) {for (j=0; j<alphabets.length(); j++) {if (word.chartAt(i) == alphabets[j])weight += j;}}return weight;}function getUniqueWords(String[] words) {List<int> unique = new ArrayList<int>();for (i=0; i<words.length; i++) {int weight = this.getWeight(words[i]);if (!unique.contains(weight)) {unique.add(weight);}}return unique.count();}}Class FindUniqueWord {function getUniqueWords(String[] words) {List<String> unique = newArrayList<String>();for (i=0; i<words.length; i++) {char[] c1 = words[i].toCharArray();Arrays.sort(c1);if (!unique.contains(new String(c1)) {unique.add(new String(c1));}}return unique.count();}}Find the number of unique word by letter combination(`aab`, `aba`, `bba`, `baa`) = 2 unique wordssimpler, more efficient,need less time
  • 5. What I Imagine When I’m Coding
  • 6. The Reality…
  • 7. The Point of being lazy is, you stop doing anything but think,to find an easy way to solve.More simple means less bug.
  • 8. So prepare before he come…
  • 9. Gather all mighty equipment and weaponwhile you canI hope can win with just one click
  • 10. CONCEPTUAL
  • 11. Imagine if I’m an Architect
  • 12. Software ArchitectureObject-OrientedFunctionalImperativeLogic ProgrammingEncapsulationPolymorphismInheritanceAbstractionProgramming ParadigmDesign PatternMVCObserverSingletonBuilderAbstract FactoryAdapterDecoratorStrategyProgramming TechniqueAnonymous FunctionInner ClassDependency InjectionMulti threadingSoftware DevelopmentEvent Driven DevelopmentDomain Driven DevelopmentService Oriented Architecture..?
  • 13. WTF?
  • 14. The invisible one is impossible to noticedUnless we understand our coding in design perspective
  • 15. PASSION
  • 16. That’s Interesting ….
  • 17. And to improve, simply you need to enjoying the process…..

×