Nao

  • Dadman with a boy
  • Posts: 16,082

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

DoctorMalboro

  • I like rounded borders.
  • Posts: 316

CJ Jackson

  • I got myself a new iPad, a different world to the iPhone!
  • Posts: 241
Re: Texasmans Programming Blog
« Reply #18, on April 8th, 2011, 01:40 AM »
Quote from Arantor on April 8th, 2011, 01:29 AM
Quote
You forgot to place a wildcard ($) before logic
Which would imply it's a constant rather than a variable, but you can't define a non-scalar constant, and not one whose result is the consequence of an expression rather than a literal constant. ;)
I agree, unless you cheat with json_encode and decode or serialisation, which works.

<?php
define('LOGIC', json_encode(array(
    'shit' => 'Shit',
    'damn' => 'Damn',
    'hell' => 'Hell',
    'fuck' => 'Fuck',
    'piss' => 'Piss',
    'crap' => 'Crap',
    'dang' => 'Dang',
    'heck' => 'Heck',
    )));
?>

but a better way would probably be a data class (static class).
Posted: April 8th, 2011, 01:39 AM
Quote from Nao/Gilles on April 8th, 2011, 01:35 AM
Quote from CJ Jackson on April 8th, 2011, 01:21 AM
You forgot to place a wildcard ($) before logic and is not to be confused with dollar,
More importantly, he forgot 'cunt' in the list. :angel:
:lol:

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Texasmans Programming Blog
« Reply #19, on April 8th, 2011, 01:42 AM »
Quote
I agree, unless you cheat with json_encode and decode or serialisation, which works.
It shouldn't do; you should not be able to define a constant as the result of an expression on the basis that defining it happens practically at parse time.

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #20, on April 8th, 2011, 02:45 AM »Last edited on April 8th, 2011, 02:51 AM by texasman1979
once upon a time, there was a daddy in simi poor physical condition riding a scooter made for a 6 year old. A daddy that is 31, 6'4'' (1.9 meters) and 220 lbs (100 kilos, 15.7 stone).

There was an evil psychic tree that new that soon he would be riding along showing off for his 6 yr old.

This tree in its evil wisdom allowed in a gust of wind to loose a small stick that would not be easily seen on the asphalt.

This daddy while riding along showing off for his 6 yr old unsuspectingly ran into the small unseen stick and flew like a bird for a moment head over hills, and injured his arm and leg when he landed.

While the 6 yr old is laughing hysterically and the daddy reeving in horrible pain, the thought "We ought to sweep this cul de sac free of debris.", passes through the daddys mind.

the moral is: dont try to compete with a 6 yr old, your just going to fail miserably. :)

needless to say, im glad it was me in horrible pain than him, but that doesnt heal up my now skinned joints.  :D
LOGIC is a FOUR letter word! :)


Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Texasmans Programming Blog
« Reply #22, on April 8th, 2011, 08:18 PM »
Quote from texasman1979 on April 8th, 2011, 02:45 AM
needless to say, im glad it was me in horrible pain than him, but that doesnt heal up my now skinned joints.  :D
As long as it doesn't impair any of your members linked to your keyboard... :P

DoctorMalboro

  • I like rounded borders.
  • Posts: 316

texasman1979

  • Posts: 99

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Texasmans Programming Blog
« Reply #25, on April 8th, 2011, 11:39 PM »
Kinda weird...
Might want to open your own blog on a platform. Noisen.com or, better for you (not French-centric), blogspot, wordpress.com or whatever... Or wait for Wedge to be released :P

texasman1979

  • Posts: 99
Re: Texasmans Programming Blog
« Reply #26, on April 9th, 2011, 06:02 AM »
yall are fucked, i try to make a friend, and all i get is the door.

so i guess the door it is. :(

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Texasmans Programming Blog
« Reply #27, on April 9th, 2011, 08:22 AM »
If you're offended by my post, then you are too weird for me. I tried to defend you anytime I could. If you have ego problems and can't even stick around for a few months before we get to know you and wanna invite you to the team -- your problem. You never even posted code. How are we supposed to know your code is any more readable than your "yall" business?
No efforts, no gain.
Ego issues? Babye. This is a workplace, not Hyde Park's Speakers' Corner.

CJ Jackson

  • I got myself a new iPad, a different world to the iPhone!
  • Posts: 241

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Texasmans Programming Blog
« Reply #29, on April 9th, 2011, 07:19 PM »
Quote from texasman1979 on April 9th, 2011, 06:02 AM
yall are fucked, i try to make a friend, and all i get is the door.

so i guess the door it is. :(
Friends don't generally talk down to people they're trying to befriend and make them feel kinda worthless by thinking that the person they're trying to befriend is basically an idiot who has to have basic ideas explained to them.