Click here to Skip to main content
11,477,007 members (74,955 online)

Clever Code

RSS Feed RSS feed

Showcase your best code, your most elegant solution, or your most hard fought subtle bug you've found and fixed. Please, do not post programming questions in this forum - they will be removed.

 
GeneralRe: Hard to find bugs Pin
Luc Pattyn4-Jun-09 13:49
mvpLuc Pattyn4-Jun-09 13:49 
GeneralRe: Hard to find bugs Pin
supercat95-Jun-09 9:48
membersupercat95-Jun-09 9:48 
GeneralRe: Hard to find bugs Pin
Luc Pattyn5-Jun-09 10:06
mvpLuc Pattyn5-Jun-09 10:06 
GeneralRe: Hard to find bugs Pin
supercat95-Jun-09 11:24
membersupercat95-Jun-09 11:24 
GeneralRe: Hard to find bugs Pin
Gary R. Wheeler14-Jun-09 2:32
memberGary R. Wheeler14-Jun-09 2:32 
GeneralRe: Hard to find bugs Pin
Maxxx_14-Jun-09 20:28
memberMaxxx_14-Jun-09 20:28 
GeneralRe: Hard to find bugs Pin
Maxxx_14-Jun-09 20:08
memberMaxxx_14-Jun-09 20:08 
GeneralFun Perl one-liner Pin
Michael Dunn20-May-09 19:45
sitebuilderMichael Dunn20-May-09 19:45 
Some time ago, there were some puzzle posts in the Lounge where the content was the ASCII values, in hex, of text. So instead of "Hello!" it was "48 65 6C 6C 6F 21". Of course, the talk turned to how to decipher the posts using code. After a few iterations with some other folks who knew Perl, I ended up with:
print map { chr hex } split foreach( <> )
Complicated, elegant, and subtle... all at once!

(I only later remembered that foreach and for do the same thing, so I could've made it even shorter!)

--Mike--
Dunder-Mifflin, this is Pam.

GeneralRe: Fun Perl one-liner Pin
leppie25-May-09 0:33
mvpleppie25-May-09 0:33 
GeneralRe: Fun Perl one-liner Pin
dpminusa8-Jun-09 1:57
memberdpminusa8-Jun-09 1:57 
GeneralRe: Fun Perl one-liner Pin
Michael Dunn9-Jun-09 16:57
sitebuilderMichael Dunn9-Jun-09 16:57 
GeneralRe: Fun Perl one-liner Pin
dpminusa9-Jun-09 21:09
memberdpminusa9-Jun-09 21:09 
GeneralNothing big, just a small LINQ query [modified] Pin
Computafreak15-May-09 10:36
memberComputafreak15-May-09 10:36 
GeneralRe: Nothing big, just a small LINQ query Pin
Robert Rohde16-May-09 23:27
memberRobert Rohde16-May-09 23:27 
GeneralRe: Nothing big, just a small LINQ query [modified] Pin
Computafreak17-May-09 2:39
memberComputafreak17-May-09 2:39 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult17-May-09 6:41
memberPIEBALDconsult17-May-09 6:41 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak17-May-09 6:58
memberComputafreak17-May-09 6:58 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult17-May-09 11:54
memberPIEBALDconsult17-May-09 11:54 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak17-May-09 22:55
memberComputafreak17-May-09 22:55 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult18-May-09 4:45
memberPIEBALDconsult18-May-09 4:45 
GeneralRe: Nothing big, just a small LINQ query Pin
Computafreak18-May-09 5:10
memberComputafreak18-May-09 5:10 
GeneralRe: Nothing big, just a small LINQ query Pin
PIEBALDconsult18-May-09 5:15
memberPIEBALDconsult18-May-09 5:15 
Generallocal variables in EF Linq query Pin
Mark Nischalke1-Apr-09 3:39
memberMark Nischalke1-Apr-09 3:39 
GeneralRe: local variables in EF Linq query Pin
Judah Himango17-Apr-09 8:12
memberJudah Himango17-Apr-09 8:12 
GeneralRe: local variables in EF Linq query Pin
Mark Nischalke17-Apr-09 8:24
memberMark Nischalke17-Apr-09 8:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid