Obfuscated Code Contest

This is a discussion on Obfuscated Code Contest within the Contests Board forums, part of the Community Boards category; Yay! I finally finished a project and it works as expected! It's been e-mailed as well. Hope it's not too ...

  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-19-2005 at 11:13 PM.

  2. #47
    C Programmer Stack Overflow's Avatar
    Join Date
    Apr 2004
    Posts
    477
    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,892
    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
    C Programmer Stack Overflow's Avatar
    Join Date
    Apr 2004
    Posts
    477
    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 03:26 PM.
    You're only born perfect.

Page 4 of 4 FirstFirst 1234
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, 03: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, 12:33 PM
  3. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21