Thread: Obfuscated Code Contest

  1. #46
    verbose cat
    Join Date
    Jun 2003
    Posts
    209
    Yay! I finally finished a project and it works as expected! It's been e-mailed as well. Hope it's not too big...!

    -jEssYcAt
    Last edited by jEssYcAt; 01-20-2005 at 12:13 AM.

  2. #47
    Not too big at all.

    I have recieved 11 of 17 submissions; things are looking good. No rush to anyone, you still have 11 days to send in your submissions. Since so many people have participated, I will only take submissions up until January 31st. So, on Febuary 1st, I can organize the last submissions that were sent.


    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

  3. #48
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    How about copying and pasting the 4 page HelloWorldBit program found in Petzold? According to the following description,

    "Macro preprocessors are often used to create hard to read code by masking the standard language syntax and grammar from the main body of code."

    it fits the definition of obsfucated code eventhough in reality it is nothing more than "basic" Windows API.

    There are plenty of macros and typedefs (many buried several layers deep in the the "std" header files) to confuse and confound those not skilled in the smoke and mirrors of Windows programming syntax. It's all legal C code, but other than use of identifiable function, loop, and switch structures, it might as well be another language completely.
    You're only born perfect.

  4. #49
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I'm gonna have to back out. I just haven't had the time to sit down and code "just because." Good luck to you all.

  5. #50
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Well, elad, I doubt that program would readily compile on a Linux box.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #51
    Quote Originally Posted by Thantos
    I'm gonna have to back out. I just haven't had the time to sit down and code "just because." Good luck to you all.
    Alright. I'm sure there will be plenty more contests for you to participate in.

    Quote Originally Posted by CornedBee
    Well, elad, I doubt that program would readily compile on a Linux box.
    Heh. Same here. Besides, the contest is graded mostly by your ingenuity. If something like this pops up, I'll know for sure someone was eager to win.

    The main reason why I give bonus points to people that include a detailed explanation of their code is because it shows that they wrote the code. Now if the explanation is bent, warped out of shape, and completely off basis, it waves a red flag.


    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

  7. #52
    Registered User
    Join Date
    Mar 2002
    Posts
    1,595
    >>Well, elad, I doubt that program would readily compile on a Linux box.

    True enough. It was more a way of expressing frustration with learning the (confuscated) syntax of Windows than any serious attempt at writing confuscated cross platform code.
    Last edited by elad; 01-21-2005 at 04:26 PM.
    You're only born perfect.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. True ASM vs. Fake ASM ????
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 04-02-2003, 04:28 AM
  2. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  3. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM