Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Clean Code

  1. #11

    naay principle nga DRY.. so ang comments is most of the time repeating the code itself so dili na DRY..
    nindut ni siya pero most of the time ang katapulan sa programmer maoy maka ingon nga molihay nas "clean code"...
    pero as guidelines, go read this one..
    i read this mga around 2 years ago na guro.. don't know sa latest edition na ani.. hehehe

  2. #12
    i always use DRY, KISS and common sense!

  3. #13
    Quote Originally Posted by jeraldjames View Post
    Based on what I've read and understood from the book, comments are just one way of hiding clean coding failures. Your codes must speak for the name and functionality by itself, no need of comments.

    Normally, we comment a code because our code itself hides its intent.

    Any reactions?
    Hala! mao pud nang ako na learned sa pag.intern naku sa Makati last summer sa isa ka startup company. Ngtalk siya about clean code. Dili na nku e istorya kung nganu pero na sabtan nku nganu sakto iya g ingun.. ehehehe!

  4. #14
    Yep, your code is your documentation itself. Then ang function and its arguments daw kay dapat mufollow ug Verb/Noun pattern.

    Nagbasa basa raman ko ani nga book haha. I'm not working in the industry as a programmer by the way lol! Nagkaninterest lang kog balik kay naa man gud mi courses nga mga programming sa masters

  5. #15
    C.I.A. Sarevok's Avatar
    Join Date
    Apr 2007
    Gender
    Male
    Posts
    2,802
    Blog Entries
    4
    - Avoid code smells (i.e. long functions, duplicate functions).
    - Learn design patterns but don't overuse them (the only thing worse than not using any pattern is using it in a wrong way).
    - As much as possible, refactor (remove smelly code)

  6. #16
    kana pud na just the right/enough amount of comments (kun masubrahan mura nag fruitsalad). good naming (yaw nang bati kaau ug pangalan classes, variables, etc) unya strict coding convention pud.

  7. #17
    naka suway ko 1 project but developed by many teams... we achieved a clean code, by making a well documented coding guidelines which is approved by all teams... in a team, code reviewers really help

    naay man jud times nga dili ma follow(pero dili simang kaayo) ang recommended coding patterns, like variable naming, pero ma lisdan ug lain coding pattern based lang sa kato inyo nasabutan

  8. #18
    OOP principle: reuse the codes(methods)

  9.    Advertisement

Page 2 of 2 FirstFirst 12

Similar Threads

 
  1. How's your canteen or carenderia? Is it clean and sanitary?
    By tnbntng in forum General Discussions
    Replies: 30
    Last Post: 10-14-2015, 03:14 PM
  2. labor code..employee proby status ug regular status
    By zengatsu in forum Politics & Current Events
    Replies: 73
    Last Post: 09-23-2009, 03:09 PM
  3. Free Wordpress Theme with Clean Coding - Life Cycle
    By themespreview in forum Websites & Multimedia
    Replies: 1
    Last Post: 01-12-2009, 06:24 PM
  4. Dan Brown's The Da Vinci Code
    By JuRa^ in forum Arts & Literature
    Replies: 266
    Last Post: 09-09-2006, 02:32 AM
  5. PM max limit -> clean ur inboxes pls..
    By blitz in forum Support Center
    Replies: 16
    Last Post: 10-26-2005, 05:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top