Results 1 to 3 of 3
  1. #1
    tim's Avatar
    tim
    tim is offline Senior Member
    Join Date
    Dec 2007
    Posts
    435
    Rep Power
    7

    Default How To Write Unmaintainable Code

    Hi everyone. :)

    Some programmer's are masters in writing unmaintainable code. And for the rest of us, I recommend reading How To Write Unmaintainable Code.

    Just for some fun. :D
    Tim
    Eyes dwelling into the past are blind to what lies in the future. Step carefully.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,772
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by tim View Post
    Hi everyone. :)

    Some programmer's are masters in writing unmaintainable code. And for the rest of us, I recommend reading How To Write Unmaintainable Code.
    Java is a sissy language when it comes to some real men obfuscation. C is much better at this, especially good ol' K&R C. Here's an example:

    Java Code:
    main(o,O0)char**O0;{int OO,O;O=--o?atoi(O0[!0]):!
    0;for(o=((OO=O*O)-O+!0+!0)>>!0;OO;o+=((--OO%O)?-!
    0:((((o-!0)%O)?O:0)+!0))-(((o-!0)%O)?O:0)){printf
    ("\n%*d "+!!(OO%O),!0<<!0<<!0,o+=(o<!0)?O*O:0);}}
    This thingy prints out a magic square of odd size without using any memory proportional to the size of the square. Try to do that in Java ;-)

    kind regards,

    Jos

  3. #3
    coltragon is offline Senior Member
    Join Date
    Dec 2009
    Posts
    104
    Rep Power
    0

    Default

    well that is not understandable for me :P

    but this can be useful if im making a game for example, and i want to protect hackers to change their scores.

    instead of declaring score like this
    Java Code:
    if (playerkill==1) {
    score ++;
    }
    i could do it like this
    Java Code:
    if (cookieeaten==1) {
    playerWeight ++;
    }
    when a hacker goes looking for something to change his score what would he think?
    Beginner in Java Programming, Please don't trust my anwsers blind please :D

Similar Threads

  1. What are you using to write your code?
    By CaptainMorgan in forum New To Java
    Replies: 999
    Last Post: Yesterday, 06:03 AM
  2. Can I write code in 2 different files ?
    By fartek in forum New To Java
    Replies: 2
    Last Post: 02-14-2009, 04:48 PM
  3. Help me to write a secure code
    By Bhavis in forum Advanced Java
    Replies: 4
    Last Post: 01-21-2009, 07:06 AM
  4. How to write efficient maintainable code.
    By Zosden in forum Advanced Java
    Replies: 9
    Last Post: 05-01-2008, 05:48 AM
  5. How to write code comments
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-23-2008, 09:06 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
  •