As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

cmd /v:on /c "set TITLE=Programming Thread & echo !TITLE!"

1181921232499

Posts

  • InfidelInfidel Heretic Registered User regular
    PROGRAMMING :rotate:

    OrokosPA.png
  • bowenbowen How you doin'? Registered User regular
    Oh well, carry on then.

    Now I'm wondering if you can CGI c# through mono.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    Can it write to stdout? If so, it can cgi

  • bowenbowen How you doin'? Registered User regular
    Well now you've made me want to try it, good job phyphor.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • InfidelInfidel Heretic Registered User regular
    Phyphor wrote: »
    Can it write to stdout? If so, it can cgi

    But can it FastCGI?

    OrokosPA.png
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    edited October 2012
    Infidel wrote: »
    Phyphor wrote: »
    Can it write to stdout? If so, it can cgi

    But can it FastCGI?

    Pfft, there is only FastCGI!
    bowen wrote: »
    Well now you've made me want to try it, good job phyphor.

    http://fastcgi.com

    You can probably link against the C library. The library is kinda crappy, but then so are most of the webservers you'll link to, so you won't actually get to use fancy features like parallel requests per connection and stuff

    Phyphor on
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    Jimmy King wrote: »
    Ugh. php and choadigniter. Quit reminding me how super extra bad it is. I'm really likely to be taking a job where I'll be dealing with it consistently for awhile and possibly forever.

    And my coffee this morning sucks. We've got keurig machines here and I grabbed the last k-cup out of some normal coffee without looking at it. What I seem to have is some sort of flavored vanilla bullshit that makes my cup smell funny and doesn't taste like coffee at all.

    Probably still better than the "hot chocolate" k-cup I tried one afternoon.

  • bowenbowen How you doin'? Registered User regular
    "I never knew you could capture the essence of poo so remarkably well in chocolate form!" -admanb that one afternoon.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • TomantaTomanta Registered User regular
    bowen wrote: »
    "I never knew you could capture the essence of poo so remarkably well in chocolate form!" -admanb that one afternoon.

    Some people pay good money for poop coffee.
    Civet Coffee

  • Jimmy KingJimmy King Registered User regular
    I'm going to push for a rewrite of that platform in Django since a rewrite is already on the table. I brought it up when interviewing and it sounded like it would possibly be ok to do but since there's so much php code already there, they kind of wanted the rewrite using php as well just to avoid rewriting as much code and were leaning towards CI for that, which makes sense.

    There's also random chunks in C, Python, and shell script. I was told those are definitely open for Python rewrites. If the php is bad enough, I'm sure it'd be ok to just scrap it all as well.

    I'm trying not to worry about it too much until someone here can make a decision on wtf they're doing, though. They don't want to bring me on until January/February, and I can't change jobs until then because of shit I've got going on. I've got platform here that I like and would like to build out more using technology I like, so if I can feel that my job is secure, I wouldn't mind staying here as long as they get rid of the on call support for random regular user bs. There's a lot going on with that which from the rumors going around could result in raises, bonuses for staying until some given date, etc. though. So I'm just hoping someone here can decide exactly what their plan is before I have to make a decision.

    @admanb I've heard enough about their hot chocolate that I haven't bothered to try it. I made the mistake of trying a raspberry something or other coffee because that's all there was once and my mug smelled like artificial raspberry for 3 days. I haven't used anything other than plain old coffee from those things since then until today's accident.

  • bowenbowen How you doin'? Registered User regular
    Yeah, rich people put the weirdest shit in their mouths.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    Echo
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    edited October 2012
    If the alternative was a hot chocolate k-cup I would drink poop coffee all day every day.

    admanb on
    bowen
  • bowenbowen How you doin'? Registered User regular
    Rewriting it as PHP to avoid rewriting parts of the code seems to be a bad idea anyways. You'll likely have to rewrite everything anyways. I have never had a situation during a rewrite where I went "gee sure would be swell if I could use this module" because it was just as bad as the wrest and I'd have to compromise my code to use it.

    For instance, they wanted me to use the crazy 5+ hour parsing code for my library for HL7. Just change what table it went to and change some of the analyzing. I said no, spent less time writing my parser, and used my remaining time to rewrite the original ones.

    I've been wanting to change it to C for a while though. .NET seems to crash randomly at times and I've yet to explain it. I could restart the application and there it goes, works perfect and the error logs don't indicate anything either.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • Jimmy KingJimmy King Registered User regular
    Oh yeah, I'm totally with you. I think just the fact that it's in PHP means it should be rewritten if they can fund it, even if it's "good" PHP.

    That is my only major sticking point with the place. They don't hate PHP and that makes me nervous. We talked about it in my interview, they are of the belief that every tool has its place. I have that same belief, just sometimes I think that place is the garbage or a giant fire or the pits of hell.

    Overall it's a good environment though, so good environment with good people and as far as I can tell currently room for pay to go up, so vs what this place is likely to become, I can live with questionable tools for awhile while I try to push my belief that PHP needs killed with fire on them.

    Nightslyr
  • bowenbowen How you doin'? Registered User regular
    Better than Java applets. :rotate:

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • TomantaTomanta Registered User regular
    My coworker just said that the poop coffee is actually pretty good (he had some at a coffee convention).

    I just don't understand the thought process of someone who goes "Hmm, these coffee beans my cat ate aren't digested. I can still use them!".

    Much like I don't understand the thought process of someone who <insert programming reference here. Nothing appropriate is coming to mind>.

  • EchoEcho ski-bap ba-dapModerator mod
    Tomanta wrote: »
    I just don't understand the thought process of someone who goes "Hmm, these coffee beans my cat ate aren't digested. I can still use them!".

    Well, to be fair booze was invented by a person who thought it was a good idea to eat that rotten fruit on the ground.

  • bowenbowen How you doin'? Registered User regular
    With enough knowledge of digestion you could come to the conclusion that if it's roasted properly there's no danger and that the resulting product might actually taste pretty nice.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    admanb
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    I'm not gonna lie, I would drink poo coffee if it was available.

  • EtheaEthea Registered User regular
    I have had poo coffee, and it was amazing.

    admanb
  • bowenbowen How you doin'? Registered User regular
    This conversation is pretty weird.

    So how about them pointers?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    admanb
  • electricitylikesmeelectricitylikesme Registered User regular
    bowen wrote: »
    With enough knowledge of digestion you could come to the conclusion that if it's roasted properly there's no danger and that the resulting product might actually taste pretty nice.

    Also what do people think honey is?

  • bowenbowen How you doin'? Registered User regular
    Nothing like tasty, tasty vomit.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    bowen wrote: »
    With enough knowledge of digestion you could come to the conclusion that if it's roasted properly there's no danger and that the resulting product might actually taste pretty nice.

    Also what do people think honey is?

    Deliciousness

  • Jimmy KingJimmy King Registered User regular
    Ha. The job decision just got made for me. I was just handed my papers. I get a big fat bonus if I stay through the end of March. Time to call up the other place and see what I can work out with them.

    bowenadmanb
  • EchoEcho ski-bap ba-dapModerator mod
    var_dump(empty($this->input->post());
    
    PHP Fatal error: Can't use method return value in write context

    what does that even mean

  • EchoEcho ski-bap ba-dapModerator mod
    edited October 2012
    ...and that's how I learned that empty($foo) is just a wrapper for "!isset($foo) || !$foo".

    PHP. :rotate:

    Echo on
  • bowenbowen How you doin'? Registered User regular
    lolwat

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EchoEcho ski-bap ba-dapModerator mod
    <various Psyduck images here>

  • bowenbowen How you doin'? Registered User regular
    I almost want to see if I can't make a php not php (pnp) and fix all the really stupid shit and make php actually somewhat intelligent again.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • DehumanizedDehumanized Registered User regular
    bowen wrote: »
    I almost want to see if I can't make a php not php (pnp) and fix all the really stupid shit and make php actually somewhat intelligent again.

    sisyphus.jpg

    Nightslyr
  • bowenbowen How you doin'? Registered User regular
    Wait.

    How did you get that picture of me?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EchoEcho ski-bap ba-dapModerator mod
    Goddamn PHP and its inability to settle for a naming convention. Sometimes it's isset() without an underscore and elsewhere it's is_null() with one.

  • TomantaTomanta Registered User regular
    Access Project #1: VBA part is mostly done outside of some cleanup, went perfectly fine. Currently on hold.

    Access Project #2: Shoot me, shoot me now. (It's not that bad, just somewhat flying blind on what exactly I should be working on at this point, need to get with my supervisor. It's UI design that drives me nuts).

    Is it normal to feel like I'm wasting time doing research and trying to figure out how to do something up until I get it working? Because I feel like I haven't done anything at all today until I think about what I have actually accomplished.

  • bowenbowen How you doin'? Registered User regular
    Not if you're working with Access and/or VBA.

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • NightslyrNightslyr Registered User regular
    Echo wrote: »
    var_dump(empty($this->input->post());
    
    PHP Fatal error: Can't use method return value in write context

    what does that even mean

    Wait... isn't a method return value placed in a write context with something like:
    echo "My name is " . $person->getName();
    

    ??

    PSN/XBL/Nintendo/Origin/Steam: Nightslyr 3DS: 1607-1682-2948
    Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
  • bowenbowen How you doin'? Registered User regular
    Pft, that's a silly way!
    echo "My name is {$person->getName()}";
    

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
    DelmainNightslyr
  • NightslyrNightslyr Registered User regular
    bowen wrote: »
    Pft, that's a silly way!
    echo "My name is {$person->getName()}";
    

    Yeah, I normally use the braces for my own code, but fall into "I'm writing PHP online for newbies to decipher" mode when I write code online. It's a learned response from PHPFreaks.

    Coincidentally, IPB sucks. One of the admins there was all gung-ho about dumping SMF for IPB. It, uh...hasn't gone well. Since the forum change, activity is down a lot and those of us on staff have fuck all for mod tools. And, laughably, the admins keep trying to figure out a way to monetize the forums when I'm sitting there thinking "There's hardly anyone here... who's going to give us money for access? Ourselves?"

    I'm hoping that the downturn in activity means that people are smartening up and going for RoR, or Python, or C#/MVC, or something palatable instead of the shit smear of PHP. I plan on jumping ship from PHP to RoR with my open source stuff in the coming months. I finally got RVM installed properly (stupid Linux Mint for being weird with permissions at times), and now just need to buckle down and learn it.

    PSN/XBL/Nintendo/Origin/Steam: Nightslyr 3DS: 1607-1682-2948
    Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
  • bowenbowen How you doin'? Registered User regular
    I should really learn RoR. I guess the padev is all set up for it eh?

    not a doctor, not a lawyer, examples I use may not be fully researched so don't take out of context plz, don't @ me
  • EchoEcho ski-bap ba-dapModerator mod
    Nightslyr wrote: »
    Echo wrote: »
    var_dump(empty($this->input->post());
    
    PHP Fatal error: Can't use method return value in write context

    what does that even mean

    Wait... isn't a method return value placed in a write context with something like:
    echo "My name is " . $person->getName();
    

    ??

    empty() needs to access value by reference (in order to check whether that reference points to something that exists), and PHP doesn't support references to temporary values returned from functions.

    So I'd have to do
    $foo = $this->input->post();
    var_dump(empty($foo));
    

    to do what I want.

    PHP. :rotate:

This discussion has been closed.