- From The Editor
- Congratulations!
- The Login
- Bring it back
- Final Point
- Staff and Exec News
- Anomalies of Code
- This Months Challenge
- Previous Months Challenge
- myViral
- The Legality of Hacking
- Defining Cyber Crime
- Effectiveness of Computer Hacking Laws
- 1030. Fraud and Related Activity in Connection with Computers
- Fun Stuff
- Something fun to do with a pop can...
- Toothpick Magic (or otherwise known as 'Science')
- This Just In!
- More LoL's
- KeePass Version 1.15 Tutorial and Review
- Installing KeePass
- Using KeePass
- Former Staff Bio: Vice CinC Barnseyboy
- Processor Architecture
- myMusic
- Multiple OS's and Various Implementations
- Coders Corner - Intro To Perl Bots v2
- Contact Us!
- Comments (2)
Anomalies of Code
By: Gen Zerhash
From the lack of responses, and my un-dieing will to increase the amounts of comments coming in. If you have a bit of code which doesn’t make sense to you please post in the comments. You may be featured in the following months code. If you get featured you will gain +v in irc, and an award!
This Months Challenge
-
JAPH Souffle.
-
-
Ingredients.
-
44 potatoes
-
114 onions
-
101 g flour
-
107 kg salt
-
99 bottles of beer
-
97 cups acid
-
72 l oil
-
32 pins
-
8 l urine
-
108 pines
-
101 laptops
-
80 mouses
-
47 keyboards
-
102 idiots
-
104 hackers
-
67 voodoo puppets
-
116 crackpipes
-
111 megawatts
-
110 numbers
-
97 commas
-
115 dweebs
-
117 sheep
-
74 creeps
-
-
Method.
-
Put potatoes into the mixing bowl. Put onions into the mixing bowl. Put
-
flour into the mixing bowl. Put salt into the mixing bowl. Put bottles
-
of beer into the mixing bowl. Put acid into the mixing bowl. Put oil into
-
the mixing bowl. Put pins into the mixing bowl. Put pines into the
-
mixing bowl. Put onions into the mixing bowl. Put laptops into the mixing
-
bowl. Put mouses into the mixing bowl. Put keyboards into the mixing
-
bowl. Put idiots into the mixing bowl. Put flour into the mixing bowl.
-
Put hackers into the mixing bowl. Put voodoo puppets into the mixing
-
bowl. Put pins into the mixing bowl. Put onions into the mixing bowl. Put
-
flour into the mixing bowl. Put hackers into the mixing bowl. Put
-
crackpipes into the mixing bowl. Put megawatts into the mixing bowl. Put
-
numbers into the mixing bowl. Put commas into the mixing bowl. Put pins
-
into the mixing bowl. Put crackpipes into the mixing bowl. Put dweebs into
-
the mixing bowl. Put sheep into the mixing bowl. Put creeps into the
-
mixing bowl. Liquify contents of the mixing bowl. Pour contents of the
-
mixing bowl into the baking dish.
-
-
Serves 1.
The context is… chef?
Previous Months Challenge
Well, this one is pretty straight forward, or is it?
The idea i wanted to get out here is again precedence. Perl does calculate strings by their ASCII character number.
However that is specific to the “gt”(greater than) and “lt”(less than) operators. If you took a deeper look and played with the letters you would notice that the result is always 2!
The ‘<’ is a binary operator returning a true and a false. Because “one” and “two” dont really have a numerical value, it is treated in the form of truth. Because it exists it is true! On the other hand a null value would be false, or a numerical 0.
This is just a way of perl trying to always be runnable.
So, as both “one” and “two” are true… “one” is not greater than “two”.
For anyone which isn’t full aware of the ternary operator it is pretty simple and derives from C.
(some statement)?(do if true):(do if false);
yippee… :)
can’t wait to get a fancy new accomplishment… hahahahaha… :P