This forum is in archive mode. You will not be able to post new content.

Author Topic: Don't repeat yourself  (Read 2028 times)

0 Members and 1 Guest are viewing this topic.

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Don't repeat yourself
« on: December 12, 2011, 10:26:11 PM »
Just browsing some comparison chart here.
Code: [Select]
http://vschart.com/



And i found one software development principle called DRY.
Means Don't Repeat yourself.
I didn't know about that.
   
found some info on wiki
 
Code: [Select]

 http://en.wikipedia.org/wiki/Don't_repeat_yourself
Damm software development field is too deep.

iAmLuFFy

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Don't repeat yourself
« Reply #1 on: December 17, 2011, 04:27:21 PM »
Pythons Django uses the DRY methodology.
>>>import this
-----------------------------

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Don't repeat yourself
« Reply #2 on: December 17, 2011, 05:32:08 PM »
Seams easy enough? Don't have duplicate code and use existing solutions to problems(if they exist that is). Its not really a part of software development, it IS software development.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: Don't repeat yourself
« Reply #3 on: December 17, 2011, 05:42:12 PM »
Seams easy enough? Don't have duplicate code and use existing solutions to problems(if they exist that is). Its not really a part of software development, it IS software development.

Well its used in software devlopment.. so its a part of software development.
iAmLuFFy

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Don't repeat yourself
« Reply #4 on: December 17, 2011, 05:45:27 PM »
Well its used in software devlopment.. so its a part of software development.

.. My point is. It is such a vital part and yet its not that much mentioned. I cannot understate how much cleaner code you will get if you put your mind into not having duplicate code anywhere.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline iAmLuFFy

  • Knight
  • **
  • Posts: 226
  • Cookies: 6
  • i aM MoDiFiEr nOt A cReAtOr
    • View Profile
Re: Don't repeat yourself
« Reply #5 on: December 17, 2011, 05:59:07 PM »
how much cleaner code you will get if you put your mind into not having duplicate code anywhere.

hmm.. that may be a problem to get what we want with this rule.
 
So we can ignore it.
iAmLuFFy

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Don't repeat yourself
« Reply #6 on: December 17, 2011, 06:03:18 PM »
My statement stands. DRY <-> Clean code, time saved.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.