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!"

1192022242599

Posts

  • EchoEcho ski-bap ba-dapModerator mod
    bowen wrote: »
    I should really learn RoR. I guess the padev is all set up for it eh?

    I've only read a teeny bit of it, but this seems pretty darn solid for learning Rails.

  • templewulftemplewulf The Team Chump USARegistered User regular
    bowen wrote: »
    I should really learn RoR. I guess the padev is all set up for it eh?

    I tried to set it up on my home server a while ago and got confused as fuck. There seemed to be a documentation gap between "rails new <project>" and very narrowly focused code snippets.

    For example, I have no idea what a "generator" is or how it's used to stub out a web app. If you give it a go, can you post some updates from the front to this thread?

    Twitch.tv/FiercePunchStudios | PSN | Steam | Discord | SFV CFN: templewulf
  • EndEnd Registered User regular
    edited October 2012
    when I think generator I think of an iterator function

    I don't think it's the same thing in ruby/rails as it is in python though.

    End on
    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpgsteam~tinythumb.png
  • EchoEcho ski-bap ba-dapModerator mod
    edited October 2012
    A generator in Rails is just a script that sets a basic scaffold up for you. "rails g controller" and it makes all the basic bare-bones CRUD methods, "rails g model" is ditto for the model, or "rails g scaffold" for the whole shebang.

    edit: that book I linked above mentions generators, but it seems to mostly ignore them and write all the code from scratch in order to teach it properly.

    Echo on
  • InfidelInfidel Heretic Registered User regular
    templewulf wrote: »
    bowen wrote: »
    I should really learn RoR. I guess the padev is all set up for it eh?

    I tried to set it up on my home server a while ago and got confused as fuck. There seemed to be a documentation gap between "rails new <project>" and very narrowly focused code snippets.

    For example, I have no idea what a "generator" is or how it's used to stub out a web app. If you give it a go, can you post some updates from the front to this thread?

    Better yet, to the front of PAdev. 8-)

    It could be a webseries.

    "rails new poopypants - Part 1"

    OrokosPA.png
    Delmainbowen
  • InfidelInfidel Heretic Registered User regular
    edited October 2012
    Echo wrote: »
    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.

    Out of all PHP :rotate: I think this is my personal top pet peeve.

    And I see you found out the hard way why you never use empty(), ever. It is best thought to not exist.

    Infidel on
    OrokosPA.png
  • InfidelInfidel Heretic Registered User regular
    Interesting, if you put a comma after a :rotate:, it won't parse.

    OrokosPA.png
  • DehumanizedDehumanized Registered User regular
    edited October 2012
    Yeah, the forum emoticon parser has got a bunch of little bugs like that. Regex all up ins

    Dehumanized on
  • EchoEcho ski-bap ba-dapModerator mod
    Infidel wrote: »
    Echo wrote: »
    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.

    Out of all PHP :rotate: I think this is my personal top pet peeve.

    "THIS function came from THIS language where it has that name and THAT came from THAT language, so we kept the names!"

    And that's why I call it a cargo cult language.

  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    Probably something to prevent
    foo:par
    from looking like
    foo :p ar

    I know I have often had problems with inadvertent emoticons.

    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
  • DrunkMcDrunkMc Registered User regular
    edited October 2012
    balrgh........so burnt out. I'm starting to think its time to move on. I'm a contractor here and no matter how much work I do I get zero credit. I did a small project that somehow BOOMED and became really interesting for our sponsors. So I finished it up, put it out the door.....they sent out an Email to us and their entire company thanking the woman who Emailed them the project for all her hard work........This is not the first time this has happened. Why is it so hard to give credit where credit is due? Grrrrrrrrrrrrrrrrrrrrrrrr. Really sucks cause I like the people I work with and the work that I do, just can't stand the ZERO credit I get.

    DrunkMc on
  • bowenbowen How you doin'? Registered User regular
    Yeah, the forum emoticon parser has got a bunch of little bugs like that. Regex all up ins

    Someone used regex for parsing? You don't say.

    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
  • bowenbowen How you doin'? Registered User regular
    Echo wrote: »
    bowen wrote: »
    I should really learn RoR. I guess the padev is all set up for it eh?

    I've only read a teeny bit of it, but this seems pretty darn solid for learning Rails.

    Thanks @echo , I have a book here for straight up ruby, is that just going to give me a basic overview of the language as a whole similar to writing apps? I imagine RoR is the "cgi" equivalent?

    What I'd really like is a web UI maker. So I don't have to toil with HTML and all that. Also so I don't have to fudge around with CSS. Really if I can avoid that whole process that'd be great. I notice you guys recommend some framework for making swag sites, but, whenever I tried using it it still wanted me to have some basic idea of what I wanted it to look like.

    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
  • urahonkyurahonky Registered User regular
    Heh, we tossed around HTML as something to put in my UI creating software.

  • DehumanizedDehumanized Registered User regular
    bowen wrote: »
    Yeah, the forum emoticon parser has got a bunch of little bugs like that. Regex all up ins

    Someone used regex for parsing? You don't say.

    It's certainly an ideal usage, but it's also never easy to match every intended input while rejecting every unintended input.

  • bowenbowen How you doin'? Registered User regular
    It's ideal until you realize they're using it for BBCode as well.

    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
    But that's what parsers do!

  • bowenbowen How you doin'? Registered User regular
    .. getting out my whetstone ..

    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
    Funny thing is that bbcode was created so whoever did it could avoid having to regex out unwanted HTML tags by just using [ ] instead of < > for the tags.

  • zeenyzeeny Registered User regular
    edited October 2012
    Infidel wrote: »
    Echo wrote: »
    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.

    Out of all PHP :rotate: I think this is my personal top pet peeve.

    And I see you found out the hard way why you never use empty(), ever. It is best thought to not exist.

    I'm gonna get tired linking this:

    https://github.com/php-fig/fig-standards/tree/master/accepted

    Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
    As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.


    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    zeeny on
  • zeenyzeeny Registered User regular
    edited October 2012
    urahonky wrote: »
    Heh, we tossed around HTML as something to put in my UI creating software.

    I see no reason for this software not to emulate a N64. Put it on as "desired", on the board please.

    zeeny on
    bowenurahonky
  • zeenyzeeny Registered User regular
    Did I ever tell you how much I like javascript?

  • bowenbowen How you doin'? Registered User regular
    zeeny wrote: »
    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    He does this from time to time.

    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
    zeeny wrote: »

    That's a really nice bow they tied on that turd.

  • InfidelInfidel Heretic Registered User regular
    bowen wrote: »
    bowen wrote: »
    zeeny wrote: »
    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    He does this from time to time.

    Same effect, new code, for VANILLA :rotate:

    OrokosPA.png
  • DelmainDelmain Registered User regular
    Infidel wrote: »
    bowen wrote: »
    bowen wrote: »
    zeeny wrote: »
    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    He does this from time to time.

    Same effect, new code, for VANILLA :rotate:

    Fie on you and your code.

  • zeenyzeeny Registered User regular
    Echo wrote: »
    zeeny wrote: »

    That's a really nice bow they tied on that turd.

    You are interpreting it wrong. This isn't intended to fix php, it's intended to help php programmers and projects to achieve interoperability despite the language's shocking deficiency in being consistent. Once you work with a production codebase that conforms to it, you will appreciate the difference.
    Not establishing a coding standard is right there in the top 3 of easy mistakes to make on multi-developer projects.

  • bowenbowen How you doin'? Registered User regular
    I'll just do single file PHP applications out of spite.

    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
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    I'm never voluntarily using Subversion for another project ever again.

    Worthless piece of horseshit.

  • ecco the dolphinecco the dolphin Registered User regular
    *mutter*mutter*supporting old embedded operating system*mutter*mutter*

    My eyebrows are frowning. FROWNING.

    oVo

    *mutter*mutter*should have been retired years ago*mutter*mutter*

    Penny Arcade Developers at PADev.net.
  • zeenyzeeny Registered User regular
    admanb wrote: »
    I'm never voluntarily using Subversion for another project ever again.

    Worthless piece of horseshit.

    Waaazzaaaaaaaaaaaaaaa........

  • NightslyrNightslyr Registered User regular
    Is all open source documentation worthless, or did I luck out with Symfony2 and Composer?

    PSN/XBL/Nintendo/Origin/Steam: Nightslyr 3DS: 1607-1682-2948
    Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
  • DehumanizedDehumanized Registered User regular
    edited October 2012
    Nightslyr wrote: »
    Is all open source documentation worthless, or did I luck out with Symfony2 and Composer?

    Not all, but most! Nobody likes documenting things, and especially nobody likes documenting things that they're contributing to for free with their spare time.

    Dehumanized on
  • NightslyrNightslyr Registered User regular
    Nightslyr wrote: »
    Is all open source documentation worthless, or did I luck out with Symfony2 and Composer?

    Not all, but most! Nobody likes documenting things, and especially nobody likes documenting things that they're contributing to for free with their spare time.

    Good point. Still, it sucks having to drill through github issue tracker comments to learn things that should be in the README.md, or the project's website, or a CLI --help command.

    PSN/XBL/Nintendo/Origin/Steam: Nightslyr 3DS: 1607-1682-2948
    Switch: SW-3515-0057-3813 FF XIV: Q'vehn Tia
  • SaerisSaeris Borb Enthusiast flapflapflapflapRegistered User regular
    edited October 2012
    zeeny wrote: »
    Infidel wrote: »
    Echo wrote: »
    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.

    Out of all PHP :rotate: I think this is my personal top pet peeve.

    And I see you found out the hard way why you never use empty(), ever. It is best thought to not exist.

    I'm gonna get tired linking this:

    https://github.com/php-fig/fig-standards/tree/master/accepted

    Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
    As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.


    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    I like how I've never seen this guide before but already follow the majority of its standards.

    Except, of course, for
    Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.

    Heretics!

    Saeris on
    borb_sig.png
  • DelmainDelmain Registered User regular
    Saeris wrote: »
    zeeny wrote: »
    Infidel wrote: »
    Echo wrote: »
    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.

    Out of all PHP :rotate: I think this is my personal top pet peeve.

    And I see you found out the hard way why you never use empty(), ever. It is best thought to not exist.

    I'm gonna get tired linking this:

    https://github.com/php-fig/fig-standards/tree/master/accepted

    Nothing can be done for the language so far, a lot can be done for code being produced from you personally and from the people you work with.
    As far as empty goes, "empty(array_shift($result)) omg why is it throwing an error!!!?" is a weekly conversation between php programmers.


    Edit: Wtf, somebody release a forum extension that fixes infid's avatar please. I didn't realize it's him I'm quoting.

    I like how I've never seen this guide before but already follow the majority of its standards.

    Except, of course, for
    Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body.

    Heretics!

    There is a special circle of hell for you and those like you.

  • DehumanizedDehumanized Registered User regular
    I go either way, based on how much code I need to embed within the braces

  • ecco the dolphinecco the dolphin Registered User regular
    BUG-8152: New bugs introduced due to desk

    Link to existing bugs: BUG-7238, BUG-8143

    These bugs keep on reoccuring due to my current desk being made of particle board, thus causing "Knock on Wood" to return false.

    Request desk upgrade to oak, or native rimu, to ensure permanent resolution of linked bugs.

    Penny Arcade Developers at PADev.net.
  • EchoEcho ski-bap ba-dapModerator mod
    Yeah, I already invented most of that style guide on my own. Was working on a general style guide of my own, actually.

  • Monkey Ball WarriorMonkey Ball Warrior A collection of mediocre hats Seattle, WARegistered User regular
    I'm flexible, I try to follow the style of whereever I'm working, which has up till this point always been next-line, but when I'm doing stuff for myself, I keep it same-line.

    In Go, you have to use same line, not doing so is a syntax error. Mostly because semicolons are optional and discouraged.

    "I resent the entire notion of a body as an ante and then raise you a generalized dissatisfaction with physicality itself" -- Tycho
This discussion has been closed.