• (cs) in reply to NoName
    NoName:
    Anyhow, I don't believe the open source storry. Who in his right mind buys open source?  It is open source, you can have the source code for nothing...

    Yeah totally.  I mean, any joe user can just whip out his compiler and config the web server to integrate these suckers on his web site.  And if something breaks, that cute secretary will pop open her copy of Visual Studio and debug the problem.  And Barney the security guard does all the customization.  Even if your average office worker isn't this skilled, every IT help desk worker is skilled in every language, and they all have plenty of time with which to make any necessary modifications.

    Sorry if I come off as patronizing.  Your just sound so funny that I couldn't help but respond in kind.
  • Your Name (unregistered)

    Maybe he needed more precision than the intrinsic types would allow.  I wrote some JavaScript code that needed to do arithmetic with 641 bit numbers, so I wrote my own VPA functions using an array of numbers, which are all doubles in JS, for each number.  I read the numbers in from hex strings because it was easier than reading decimal strings.  I didn't examine the code carefully (I don't do VB), but it seems likely that this code could be used with arbitrary precision numbers. 

    P.S.  To the left of the CAPTCHA, is says, "Take That Spam".  What spam?  And why do you want me to take it?  Oh, you meant, "Take that, spam".  (Note the strategically placed comma and proper capitalization.) 

    P.P.S.  The forum software on this site is a major WTF in itself.  I'd like to think that most of the people who post here know enough about HTML or UBB code to format their own posts.  Why do we need this buggy, over-engineered software that takes forever to load?  And the emoticons constantly fidgiting on the left is very distracting and annoying.  Like ten times more annoying than Clippy(TM). 


  • Your Name (unregistered) in reply to Chris F
    Chris F:
    NoName:
    Anyhow, I don't believe the open source storry. Who in his right mind buys open source?  It is open source, you can have the source code for nothing...

    Yeah totally.  I mean, any joe user can just whip out his compiler and config the web server to integrate these suckers on his web site.  And if something breaks, that cute secretary will pop open her copy of Visual Studio and debug the problem.  And Barney the security guard does all the customization.  Even if your average office worker isn't this skilled, every IT help desk worker is skilled in every language, and they all have plenty of time with which to make any necessary modifications.

    Sorry if I come off as patronizing.  Your just sound so funny that I couldn't help but respond in kind.


    Open source != free.  Just because you get the source when you buy software, that doesn't mean you can distribute it to anyone you want any more than you can distribute the binaries of commercial software.  I don't know if this applies here, though. 

    P.S.  The CAPTCHAs are broken.  As in "don't work".  I have to try two or three times to post successfully.  Alex, please look into this. 
  • (cs) in reply to Your Name
    Anonymous:
    P.S.  The CAPTCHAs are broken.  As in "don't work".  I have to try two or three times to post successfully.  Alex, please look into this. 

    You unlock this door with the key of imagination. Beyond it is another dimension - a dimension of sound, a dimension of sight, a dimension of mind. You're moving into a land of both shadow and substance, of broken code and broken forum. You've just crossed over into... the The Daily WTF....
  • (cs) in reply to Your Name

    Anonymous:

    P.P.S.  The forum software on this site is a major WTF in itself.  I'd like to think that most of the people who post here know enough about HTML or UBB code to format their own posts.  Why do we need this buggy, over-engineered software that takes forever to load?  And the emoticons constantly fidgiting on the left is very distracting and annoying.  Like ten times more annoying than Clippy(TM). 

    Been posted. Use search tool. Stop whining. Never had any problems. Must just be you.

    Drak

  • (cs) in reply to Your Name
    Anonymous:


    Open source != free.  Just because you get the source when you buy software, that doesn't mean you can distribute it to anyone you want any more than you can distribute the binaries of commercial software.  I don't know if this applies here, though. 


    Actually, when you are given the source for internal use only, that's NOT open-source. See http://www.opensource.org/ about this and the payment matter.

  • (cs) in reply to Your Name

    Anonymous:

    P.S.  The CAPTCHAs are broken.  As in "don't work".  I have to try two or three times to post successfully.  Alex, please look into this. 

    I have an amazing new concept - if you sign up you can actually post without having to do the captcha dance.

     

  • rempelos (unregistered) in reply to Chris F
    Chris F:
    NoName:
    Anyhow, I don't believe the open source storry. Who in his right mind buys open source? It is open source, you can have the source code for nothing...

    Yeah totally. I mean, any joe user can just whip out his compiler and config the web server to integrate these suckers on his web site.  And if something breaks, that cute secretary will pop open her copy of Visual Studio and debug the problem. And Barney the security guard does all the customization. Even if your average office worker isn't this skilled, every IT help desk worker is skilled in every language, and they all have plenty of time with which to make any necessary modifications.

    Sorry if I come off as patronizing.  Your just sound so funny that I couldn't help but respond in kind.


    That's all about open source and its benefits to world computing. Any man who can write a couple of lines of code can make it open source. That doesn't mean that the quality of the code is higher, it means that other programmers can see what actually is in and either improve it or completly discard it. So if you need an a good open source application, search one being supported by a community or at least one having a lot of commiters.

    Just think of the nightmare where this application is purchased as closed source.


  • James Cane (unregistered) in reply to heinzkunz
    Anonymous:
    Anonymous:
    Anonymous:
    JohnO:
    <font size="2"> </font>

    <font size="2">System.Diagnostics.Debug.WriteLine(Int32.Parse("A", System.Globalization.NumberStyles.HexNumber).ToString());</font>


    This is a joke, right?

    Nice setup.  When someone says "It's not a joke, it's printing to the screen," will you start ranting about how much you think C# sucks, or will you smugly show a way to do it with 50% less code?

    C#: 110 characters System.Diagnostics.Debug.WriteLine(Int32.Parse("A", System.Globalization.NumberStyles.HexNumber).ToString());



    Java: 44 characters System.out.print(Integer.parseInt("A", 16);

    BLOCKED SCRIPT 26 characters alert(parseInt("A", 16));



    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.

  • azaris (unregistered) in reply to James Cane
    Anonymous:
    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.


    VB .NET:

    Console.WriteLine(Convert.ToInt32("A", 16))

    43 characters. Clearly this proves something.
  • Justin (unregistered) in reply to rogthefrog
    rogthefrog:
    It's posts like these that truly demonstrate the truism that open source really attracts only and all the best programmers in the world.


    Oh per-lease... Troll, troll, troll, troll. troll.  Sigh.  What the hell: you can't see what's duff in closed source, and no-one, but no-one, has ever claimed what you say about oss.  I had to say it, troll.

    J.
  • (cs) in reply to Justin

    I'm getting the idea from this code that in VB(S), you can't just add hex numbers.

    Even Javascript knows how to do it:

    var hex1 = 0x0f;
    var hex2 = 0xa3;

    var result = hex1 + hex2;

    alert(result.toString(16));


    alerts "b2".

    Alerting without the toString(16) auto-converts result to (10) and displays 178. I'm not sure if that's a feature or bug.
  • James Cane (unregistered) in reply to azaris

    Anonymous:
    Anonymous:
    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.


    VB .NET:

    Console.WriteLine(Convert.ToInt32("A", 16))

    43 characters. Clearly this proves something.

    Those damned semi-colons!!

     

  • Ymgve (unregistered) in reply to dhromed
    dhromed:
    I'm getting the idea from this code that in VB(S), you can't just add hex numbers.

    Even Javascript knows how to do it:

    var hex1 = 0x0f;
    var hex2 = 0xa3;

    var result = hex1 + hex2;

    alert(result.toString(16));


    alerts "b2".

    Alerting without the toString(16) auto-converts result to (10) and displays 178. I'm not sure if that's a feature or bug.

    It's neither a feature nor a bug. It's how a language should behave when asked to print out an integer.

    Whether you used hex, decimal or binary when you initiated a variable is, and should be, irrelevant.

  • James Cane (unregistered) in reply to dhromed

    dhromed:
    I'm getting the idea from this code that in VB(S), you can't just add hex numbers.

    Even Javascript knows how to do it:

    var hex1 = 0x0f;
    var hex2 = 0xa3;

    var result = hex1 + hex2;

    alert(result.toString(16));


    alerts "b2".

    Alerting without the toString(16) auto-converts result to (10) and displays 178. I'm not sure if that's a feature or bug.

    Not so.  Code very similar to that will work in VBScript.  Just replace "0x" with "&H"

    The thing is, what you're doing is specifying numeric values in code using hex notation.  The interpreter evaluates them as an internal numeric type before even executing the code.  That's not the same as dynamically interpreting a string containing a numeric value expressed in hex at run-time.

    I hate to say it, but your post has exposed a pretty fundamental flaw in your understanding of the way the Javascript language actually works.

     

  • SteelGolem (unregistered) in reply to James Cane
    i think the point they were going for was about the namespaces. your code should "properly" be written (assuming no using statements as they did originally):
     
    <FONT face=Tahoma>System.Console.WriteLine(System.Convert.ToInt32("A", 16)); // 58 chars</FONT>
  • SteelGolem (unregistered) in reply to SteelGolem

    err where'd the blockquote go? :<

  • szeryf (unregistered)

    Heh, didn't anyone but me notice that the "pad the second" part is screwed? :-) if Len(h1)>Len(h2), it adds Len(h1)+1 zeroes :-)

  • James Cane (unregistered) in reply to SteelGolem
    Anonymous:
    i think the point they were going for was about the namespaces. your code should "properly" be written (assuming no using statements as they did originally):
     
    <FONT face=Tahoma>System.Console.WriteLine(System.Convert.ToInt32("A", 16)); // 58 chars</FONT>

    Yeah, I know.  But it's no fun that way!

    Besides, Console.WriteLine and Convert.ToInt32 both work with the default Using statements, as supplied by the C# IDE.

  • (cs) in reply to azaris
    Anonymous:
    Anonymous:
    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.


    VB .NET:

    Console.WriteLine(Convert.ToInt32("A", 16))

    43 characters. Clearly this proves something.


    Perl:

    print hex('A');


    15 characters...

    And to change it back:

    printf "%x", 'A';

        dZ.

  • (cs) in reply to James Cane
    Anonymous:

    dhromed:
    I'm getting the idea from this code that in VB(S), you can't just add hex numbers.

    Even Javascript knows how to do it:

    var hex1 = 0x0f;
    var hex2 = 0xa3;

    var result = hex1 + hex2;

    alert(result.toString(16));


    alerts "b2".

    Alerting without the toString(16) auto-converts result to (10) and displays 178. I'm not sure if that's a feature or bug.

    Not so.  Code very similar to that will work in VBScript.  Just replace "0x" with "&H"

    The thing is, what you're doing is specifying numeric values in code using hex notation.  The interpreter evaluates them as an internal numeric type before even executing the code.  That's not the same as dynamically interpreting a string containing a numeric value expressed in hex at run-time.

    I hate to say it, but your post has exposed a pretty fundamental flaw in your understanding of the way the Javascript language actually works.

     


    Oh, don't be too harsh. Your points are just as valid without the last comment.

  • vhawk (unregistered)

    Seeing this makes me sick.  Junk code - but then ...   ahhh this is done in VB .... what else can you expect

  • James Cane (unregistered) in reply to Caffeine

    Caffeine:
    Oh, don't be too harsh. Your points are just as valid without the last comment.

    You're right.  Apologies.

  • goober foober (unregistered) in reply to DZ-Jay

    DZ-Jay:
    Anonymous:
    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.


    VB .NET:

    Console.WriteLine(Convert.ToInt32("A", 16))

    43 characters. Clearly this proves something.


    WTF are you guys thinking by using WriteLine()? You can save 4 for chars by using Write() instead. Geez, the wasters are out in force today. ;-)

  • goober foober (unregistered) in reply to DZ-Jay

    DZ-Jay:
    Anonymous:
    C#:

    Console.WriteLine(Convert.ToInt32("A", 16));

    44 characters.  Same as your Java line.


    VB .NET:

    Console.WriteLine(Convert.ToInt32("A", 16))

    43 characters. Clearly this proves something.


    WTF are you guys thinking by using WriteLine()? You can save 4 for chars by using Write() instead. Geez, the wasters are out in force today. ;-)

  • Sebastian (unregistered)

    Computer programmers are from Mars, VB programmers from venus...

  • (cs) in reply to Quinnum
    Quinnum:

    Anonymous:

    P.S.  The CAPTCHAs are broken.  As in "don't work".  I have to try two or three times to post successfully.  Alex, please look into this. 

    I have an amazing new concept - if you sign up you can actually post without having to do the captcha dance.

     

    And the forum software still won't work properly.

    Simon

  • (cs) in reply to DZ-Jay
    DZ-Jay:

    Perl:

    print hex('A');


    15 characters...

    And to change it back:

    printf "%x", 'A';

        dZ.

    Bah, you can trim that some :)  You can save 3 characters on the first conversion:
     
    print hex A;
     
    Of course, on the second example, you'd want to be passing a decimel for conversion, not a hex (since you're converting to hex):
     
    printf"%x",10;
     
    Remove the space after printf to save another character, and drop the quotes around the decimel value as they aren't needed.  That saves 3 characters (well 2, since I had to change A to 10).
     
    On a completely unrelated note, why do people say perl programmers write such unreadable code?
  • (cs) in reply to JoeS
    JoeS:
    DZ-Jay:

    Perl:

    print hex('A');


    15 characters...

    And to change it back:

    printf "%x", 'A';

        dZ.

    Bah, you can trim that some :)  You can save 3 characters on the first conversion:
     
    print hex A;
     


    Ah, true, but then someone would bash Perl for being so unreadable.

    JoeS:

    Of course, on the second example, you'd want to be passing a decimel for conversion, not a hex (since you're converting to hex):
     
    printf"%x",10;



    Oops! missed that :)
     
    JoeS:

    On a completely unrelated note, why do people say perl programmers write such unreadable code?


    Hum... to get to the other side?

        -dZ.
  • John (unregistered) in reply to JoeS

    "On a completely unrelated note, why do people say perl programmers write such unreadable code?"

    (note: I have been doing the vast majority of my coding in perl, for the last 10ish years)

    Because, when you take all of the shortcuts, use all of the built-in variables, it IS unreadable code. It's just like all of the complaints about early, pre-structured, basic coding in the early/mid 80's. Just without the line numbers.

    That said ... if you take the time to use explicit, well named, variables, and use decent formatting ... perl is no less readable than just about any other language.

  • (cs) in reply to felix

    felix:
    Anonymous:


    Open source != free.  Just because you get the source when you buy software, that doesn't mean you can distribute it to anyone you want any more than you can distribute the binaries of commercial software.  I don't know if this applies here, though. 


    Actually, when you are given the source for internal use only, that's NOT open-source. See http://www.opensource.org/ about this and the payment matter.

    Who made that site the authority on the definition of open-source?

  • (cs) in reply to John
    Anonymous:
    Because, when you take all of the shortcuts, use all of the built-in variables, it IS unreadable code. It's just like all of the complaints about early, pre-structured, basic coding in the early/mid 80's. Just without the line numbers.


    The difference is that Perl programmers often brag about all the shortcuts that allows them to write code that much faster...

    Anonymous:

    That said ... if you take the time to use explicit, well named, variables, and use decent formatting ... perl is no less readable than just about any other language.


    Just be very, very sure you never EVER confuse scalar and list context. Nowadays that could get you branded a terrorist and shot accidentally in no time.
  • (cs) in reply to JoeS
    JoeS:
    On a completely unrelated note, why do people say perl programmers write such unreadable code?

    <FONT face="Courier New" size=2>#!/usr/bin/perl -wi@_=(Listen,5,LocalPort,shift||9999,Proto,"tcp",Reuse,1);$w=z
    no IO'Socket'INET;no IO'Select;use Fcntl;use Time'HiRes"time";$SIG{PIPE}=IGNORE
    ;$_="* commands:N'sayS;emoteS.rsay <user>S,remote <user>SwwhoN quitN?help\r\n";
    s/S/ <stuff>N/g;s/N(.)/\r\n  $1  /g;$h=$_;sub e{$2?"$n says '$4'":"$n $4"}sub r
    {@p=grep{$_ ne$p}@p;$s->close}sub z{new IO'Select}sub p{$$p[3].="@_\xff\xf9";$w
    ->add($s)}eval$^I;eval{require IO'Socket'INET6}and$m=new IO'Socket'INET6@_;$l=(
    new IO'Socket'INET@_)||$m||die;sub b{for(@p){$$_[3].="@_\r\n\xff\xf9",$w->add($
    $_[0])if$$_[1]}}sub g{b"* $n leaves"if$n;$n=$$p[1]=$$p[2]=0;$r->remove($s);$$p[
    3]||r}sub f{($p)=grep{$$_[0]==$s}@p}($r=z)->add($l);$r->add($m);for($m||=0;;){(
    $R,$W)=$r->select($w);for$s(@$W){f;$n=$$p[1];($e=$s->syswrite($$p[3]))?(substr(
    $$p[3],0,$e,""),$$p[3]&&next):g;$w->remove($s);0 eq$n&&r}for$s(@$R){if($s==$l||
    $s==$m){$s=$s->accept||next;fcntl$s,F_SETFL,O_NONBLOCK;$r->add($s);push@p,$p=[$
    s,$"="","",""];p"enter a username: ";next}f||next;$n=$$p[1];$e=$s->sysread($$p[
    2],9,length$$p[2])or g;defined$e or$w->remove($s),r;for($$p[2]=~s/\xff((\xff)|[
    \0-\xfa]|[\xfb-\xfe].)/$2?"\0":""/segx;$$p[2]=~s/\A *(.*?) *\r?\n//;$$p[4]=$t){
    $_=$1;$t=time;$n?/^(('|"|say )|:|;|emote )() *([!-~][ -~]*)$/i?b e:/^quit$/i?g:
    /^(\?|help)$/i?p$h:/^((\.|>|rsay )|,|<|remote ) *([a-z]+) +([!-~][ -~]*)$/i?do{
    $e="> ".e."\r\n";($f)=grep{$$_[1]=~/^$3$/i}@p;$f?do{p">$$f[1]$e";local($p,$s)=(
    $f,$$f[0]);p$e}:p"* no such user\r\n"}:/^w(ho)?$/i?p"* users (idle times):\r\n"
    ,sort{lc$a cmp lc$b}map{$e=$t-$$_[4];$e=sprintf"%dh%02dm%02d.%ds",$e/3600,$e/60
    %60,$e%60,$e*10%10;$e=~s/^[0hm]{1,6}//;$$_[1]?"  $$_[1] ($e)\r\n":""}@p:p""eq$_
    ?"":"* bad command\r\n":/^([a-z]+)$/i?(grep{$$_[1]=~/^$1$/i}@p)?p"already tak".
    "en; try again: ":($n=$$p[1]=$1,b"* $n enters"):p"bad username; try again: "}}}</FONT>

  • David P. Murphy (unregistered)

    I assume all variables in this language are always initialized implicitly, since otherwise "c" is being tested without being set.

    As an aside, I'm probably being an egoist but I don't think I need to go read Quantum Computering to understand hex/decimal conversion.
    ok
    dpm

  • (cs) in reply to emptyset
    JoeS:
    On a completely unrelated note, why do people say perl programmers write such unreadable code?

    Laziness and ignorance are fertile breeding grounds for inductive fallacies.  It also helps to have a healthy dose of stupidity.
  • (cs) in reply to dubwai
    dubwai:

    felix:


    Actually, when you are given the source for internal use only, that's NOT open-source. See http://www.opensource.org/ about this and the payment matter.

    Who made that site the authority on the definition of open-source?



    They came up with the term and trademarked it.   Terms like free software have been around for years, but it doesn't tell you anything about <slashdot>free as in beer os speech</slashdor>  they wanted to capture a specific concept, so they found a term that wasn't in use before, trademarked it, and then made it popular.

    You may not agree with their goals, but they are the authority them.  
  • (cs) in reply to David P. Murphy
    Anonymous:

    As an aside, I'm probably being an egoist but I don't think I need to go read _Quantum Computering_ to understand hex/decimal conversion.
    dpm


    Maybe not in the general case, but in this specific case you do need to read _Quantum Computering_ to understand it.   Make sure you look at the link provided, NOT a google search or other such.  
  • Roman (unregistered) in reply to hmm
    Anonymous:

    christoofar:
    Private Function AddHexCrapToLong(val1, val2) As Long
        Dim x As Long
        Dim y As Long
        
        x = CLng("&H" & val1)
        y = CLng("&H" & val2)
        
        AddHexCrapToLong = x + y
    End Function

    Private Function AddHexCrapToMoreHex(val1, val2) As Long
        AddHexCrapToMoreHex = Hex(AddHexCrapToLong(val1, val2))
    End Function

    Private Sub Command1_Click()
      MsgBox AddHexCrapToLong("AB", "CD")  --Result is 376 (base 10)
      MsgBox AddHexCrapToMoreHex("AB", "CD") --Result is 178 (base 16)
    End Sub

    Ok I'm not familiar with VB at all...what does "&H" accomplish?  And how would this be accomplished in a language like C#? Because I'm not aware of any way to convert a hex string to int or long in that language.  Int32.Parse( string ) will throw an exception if you give it something like "F" or "0xF"...

    int decAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);

  • (cs) in reply to emptyset
    emptyset:
    JoeS:
    On a completely unrelated note, why do people say perl programmers write such unreadable code?

    <FONT face="Courier New" size=2>#!/usr/bin/perl -wi@_=(Listen,5,LocalPort,shift||9999,Proto,"tcp",Reuse,1);$w=z
    no IO'Socket'INET;no IO'Select;use Fcntl;use Time'HiRes"time";$SIG{PIPE}=IGNORE
    ;$_="* commands:N'sayS;emoteS.rsay <USER>S,remote <USER>SwwhoN quitN?help\r\n";
    s/S/ <STUFF>N/g;s/N(.)/\r\n  $1  /g;$h=$_;sub e{$2?"$n says '$4'":"$n $4"}sub r
    {@p=grep{$_ ne$p}@p;$s->close}sub z{new IO'Select}sub p{$$p[3].="@_\xff\xf9";$w
    ->add($s)}eval$^I;eval{require IO'Socket'INET6}and$m=new IO'Socket'INET6@_;$l=(
    new IO'Socket'INET@_)||$m||die;sub b{for(@p){$$_[3].="@_\r\n\xff\xf9",$w->add($
    $_[0])if$$_[1]}}sub g{b"* $n leaves"if$n;$n=$$p[1]=$$p[2]=0;$r->remove($s);$$p[
    3]||r}sub f{($p)=grep{$$_[0]==$s}@p}($r=z)->add($l);$r->add($m);for($m||=0;;){(
    $R,$W)=$r->select($w);for$s(@$W){f;$n=$$p[1];($e=$s->syswrite($$p[3]))?(substr(
    $$p[3],0,$e,""),$$p[3]&&next):g;$w->remove($s);0 eq$n&&r}for$s(@$R){if($s==$l||
    $s==$m){$s=$s->accept||next;fcntl$s,F_SETFL,O_NONBLOCK;$r->add($s);push@p,$p=[$
    s,$"="","",""];p"enter a username: ";next}f||next;$n=$$p[1];$e=$s->sysread($$p[
    2],9,length$$p[2])or g;defined$e or$w->remove($s),r;for($$p[2]=~s/\xff((\xff)|[
    \0-\xfa]|[\xfb-\xfe].)/$2?"\0":""/segx;$$p[2]=~s/\A *(.*?) *\r?\n//;$$p[4]=$t){
    $_=$1;$t=time;$n?/^(('|"|say )|:|;|emote )() *([!-~][ -~]*)$/i?b e:/^quit$/i?g:
    /^(\?|help)$/i?p$h:/^((\.|>|rsay )|,|<|remote ) *([a-z]+) +([!-~][ -~]*)$/i?do{
    $e="> ".e."\r\n";($f)=grep{$$_[1]=~/^$3$/i}@p;$f?do{p">$$f[1]$e";local($p,$s)=(
    $f,$$f[0]);p$e}:p"* no such user\r\n"}:/^w(ho)?$/i?p"* users (idle times):\r\n"
    ,sort{lc$a cmp lc$b}map{$e=$t-$$_[4];$e=sprintf"%dh%02dm%02d.%ds",$e/3600,$e/60
    %60,$e%60,$e*10%10;$e=~s/^[0hm]{1,6}//;$$_[1]?"  $$_[1] ($e)\r\n":""}@p:p""eq$_
    ?"":"* bad command\r\n":/^([a-z]+)$/i?(grep{$$_[1]=~/^$1$/i}@p)?p"already tak".
    "en; try again: ":($n=$$p[1]=$1,b"* $n enters"):p"bad username; try again: "}}}</FONT>

    Please chose the response you feel is most appropriate:
     
    1) Now that's what I call a block of code
    2) I see you're writing structured perl, although I prefer to use circles instead of squares
    3) Copy&Paste, Eclipse w/Perl, Ctrl+Shift+F ... next
    4) Too many alphanumerics, not enough symbols; not a true perl programmer
    5) There is no way the DailyWTF forum software will handle this quote correctly
  • (cs) in reply to James Cane
    Anonymous:
    I hate to say it, but your post has exposed a pretty fundamental flaw in your understanding of the way the Javascript language actually works.


    I don't claim to understand how any language works at the core. :)

    I'm one of those self-taught idiots. I'm not formally schooled in anything related to computer science and/or programming.
  • (cs)

    Who doesn't love to open a ASP/JSP/PHP/etc. page and see this?  The architecture likely consists of 50 include files.

  • (cs) in reply to rempelos
    Anonymous:

    That's all about open source and its benefits to world computing. Any man who can write a couple of lines of code can make it open source. That doesn't mean that the quality of the code is higher, it means that other programmers can see what actually is in and either improve it or completly discard it. So if you need an a good open source application, search one being supported by a community or at least one having a lot of commiters.


    Coming from a Java devleoper, open source usually means it's not worth taking for free, let alone at any price.  "We're an open source company" usually means "We throw a bunch of poop at the wall.  Some of it will stick."
  • (cs) in reply to emptyset
    emptyset:
    JoeS:
    On a completely unrelated note, why do people say perl programmers write such unreadable code?

    <font face="Courier New" size="2">#!/usr/bin/perl -wi@_=(Listen,5,LocalPort,shift||9999,Proto,"tcp",Reuse,1);$w=z
    no IO'Socket'INET;no IO'Select;use Fcntl;use Time'HiRes"time";$SIG{PIPE}=IGNORE
    ;$_="* commands:N'sayS;emoteS.rsay <user>S,remote <user>SwwhoN quitN?help\r\n";
    s/S/ <stuff>N/g;s/N(.)/\r\n  $1  /g;$h=$_;sub e{$2?"$n says '$4'":"$n $4"}sub r
    {@p=grep{$_ ne$p}@p;$s->close}sub z{new IO'Select}sub p{$$p[3].="@_\xff\xf9";$w
    ->add($s)}eval$^I;eval{require IO'Socket'INET6}and$m=new IO'Socket'INET6@_;$l=(
    new IO'Socket'INET@_)||$m||die;sub b{for(@p){$$_[3].="@_\r\n\xff\xf9",$w->add($
    $_[0])if$$_[1]}}sub g{b"* $n leaves"if$n;$n=$$p[1]=$$p[2]=0;$r->remove($s);$$p[
    3]||r}sub f{($p)=grep{$$_[0]==$s}@p}($r=z)->add($l);$r->add($m);for($m||=0;;){(
    $R,$W)=$r->select($w);for$s(@$W){f;$n=$$p[1];($e=$s->syswrite($$p[3]))?(substr(
    $$p[3],0,$e,""),$$p[3]&&next):g;$w->remove($s);0 eq$n&&r}for$s(@$R){if($s==$l||
    $s==$m){$s=$s->accept||next;fcntl$s,F_SETFL,O_NONBLOCK;$r->add($s);push@p,$p=[$
    s,$"="","",""];p"enter a username: ";next}f||next;$n=$$p[1];$e=$s->sysread($$p[
    2],9,length$$p[2])or g;defined$e or$w->remove($s),r;for($$p[2]=~s/\xff((\xff)|[
    \0-\xfa]|[\xfb-\xfe].)/$2?"\0":""/segx;$$p[2]=~s/\A *(.*?) *\r?\n//;$$p[4]=$t){
    $_=$1;$t=time;$n?/^(('|"|say )|:|;|emote )() *([!-~][ -~]*)$/i?b e:/^quit$/i?g:
    /^(\?|help)$/i?p$h:/^((\.|>|rsay )|,|<|remote ) *([a-z]+) +([!-~][ -~]*)$/i?do{
    $e="> ".e."\r\n";($f)=grep{$$_[1]=~/^$3$/i}@p;$f?do{p">$$f[1]$e";local($p,$s)=(
    $f,$$f[0]);p$e}:p"* no such user\r\n"}:/^w(ho)?$/i?p"* users (idle times):\r\n"
    ,sort{lc$a cmp lc$b}map{$e=$t-$$_[4];$e=sprintf"%dh%02dm%02d.%ds",$e/3600,$e/60
    %60,$e%60,$e*10%10;$e=~s/^[0hm]{1,6}//;$$_[1]?"  $$_[1] ($e)\r\n":""}@p:p""eq$_
    ?"":"* bad command\r\n":/^([a-z]+)$/i?(grep{$$_[1]=~/^$1$/i}@p)?p"already tak".
    "en; try again: ":($n=$$p[1]=$1,b"* $n enters"):p"bad username; try again: "}}}</stuff></user></user></font>


    hilarious!
  • (cs) in reply to dan
    Anonymous:
    wierd it cut me off.

    I think the joke is "System.Diagnostics.Debug.WriteLine" is a lot longer than "out.write()"

    and System.Globalization.NumberStyles.HexNumber is a lot longer than str2hex()



    We all know that longer names make the filesize longer and thus makes the final code base very long. Imagine how much smaller the final product will be by replacing every call of System.Diagnostics.Debug.WriteLine with S.D.D.W - the savings would be so immense as to actually best Paula's own effort.

    In fact, we can go one step further and require a maximum of 3 characters for any variable and 4 characters for any class. Anything beyond that becomes a lot longer and thus unnecessary.

    That would allow us to claim our specs are l337 since kids have been trying to reduce the number of characters in their language since authors stopped being paid by the word.

  • (cs) in reply to Mung Kee
    Mung Kee:

    Coming from a Java devleoper, open source usually means it's not worth taking for free, let alone at any price.  "We're an open source company" usually means "We throw a bunch of poop at the wall.  Some of it will stick."


    Verily thou shalt say it again! Can I get an Amen to the crap that is OSS! Apache, Tomcat, Xerces, Ant - its all the crap of Satan himself. In fact it is such a big pile of steaming poop that it cannot even stick to the wall.

    Only the righteous 100% purity of closed-source Java code can set you free from the crap that is Eclipse!

    The heavenly light IE will expose the excrement that is Firefox!

    Give me another Amen for those that toil daily to produce closed-source code so that they may lift up their unwashed breathen from the toliet of OSS and into the embrace of the righteous Saints McNealy and Gates!

    Brothers and Sisters, don't get me started on the doody that steams mightly in the bowels of the GNU tools!

  • (cs) in reply to Justin

    Anonymous:
    rogthefrog:
    It's posts like these that truly demonstrate the truism that open source really attracts only and all the best programmers in the world.


    Oh per-lease... Troll, troll, troll, troll. troll.  Sigh.  What the hell: you can't see what's duff in closed source, and no-one, but no-one, has ever claimed what you say about oss.  I had to say it, troll.

    J.

    You forgot to remove the breakpoint before the sense of humor function in your neural network.

  • (cs) in reply to GalacticCmdr
    GalacticCmdr:
    Mung Kee:

    Coming from a Java devleoper, open source usually means it's not worth taking for free, let alone at any price.  "We're an open source company" usually means "We throw a bunch of poop at the wall.  Some of it will stick."


    Verily thou shalt say it again! Can I get an Amen to the crap that is OSS! Apache, Tomcat, Xerces, Ant - its all the crap of Satan himself. In fact it is such a big pile of steaming poop that it cannot even stick to the wall.

    Only the righteous 100% purity of closed-source Java code can set you free from the crap that is Eclipse!

    The heavenly light IE will expose the excrement that is Firefox!

    Give me another Amen for those that toil daily to produce closed-source code so that they may lift up their unwashed breathen from the toliet of OSS and into the embrace of the righteous Saints McNealy and Gates!

    Brothers and Sisters, don't get me started on the doody that steams mightly in the bowels of the GNU tools!



    Amen!

        -dZ.

  • (cs) in reply to GalacticCmdr
    GalacticCmdr:
    Mung Kee:

    Coming from a Java devleoper, open source usually means it's not worth taking for free, let alone at any price.  "We're an open source company" usually means "We throw a bunch of poop at the wall.  Some of it will stick."


    Verily thou shalt say it again! Can I get an Amen to the crap that is OSS! Apache, Tomcat, Xerces, Ant - its all the crap of Satan himself. In fact it is such a big pile of steaming poop that it cannot even stick to the wall.

    Only the righteous 100% purity of closed-source Java code can set you free from the crap that is Eclipse!

    The heavenly light IE will expose the excrement that is Firefox!

    Give me another Amen for those that toil daily to produce closed-source code so that they may lift up their unwashed breathen from the toliet of OSS and into the embrace of the righteous Saints McNealy and Gates!

    Brothers and Sisters, don't get me started on the doody that steams mightly in the bowels of the GNU tools!



    Ummmmm....uhhhhh.......yeah...what he said...I guess.
  • (cs) in reply to Mung Kee

    Mung Kee:
    "We're an open source company" usually means "We throw a bunch of poop at the wall.  Some of it will stick."

    Actually, it usually means "we see no reasonable justification for paying lots of money on server OSes, RDBMSes and programming languages when there are a bunch of free ones out there that work well enough". Or replace "we see no reasonable justification for paying" with "we can't afford to pay".

  • AC (unregistered) in reply to -L
    Anonymous:
    JohnO:
    <font size="2">

    System.Diagnostics.Debug.WriteLine(Int32.Parse("A", System.Globalization.NumberStyles.HexNumber).ToString());

    </font>

    This is a joke, right?


    no, this is .NET

Leave a comment on “Hexing Around”

Log In or post as a guest

Replying to comment #:

« Return to Article