Club PA 2.0 has arrived! If you'd like to access some extra PA content and help support the forums, check it out at patreon.com/ClubPA
The image size limit has been raised to 1mb! Anything larger than that should be linked to. This is a HARD limit, please do not abuse it.
Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it, follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!

[Programming] Thread: Fixed last bug in 5 month thread

19293959798100

Posts

  • DelmainDelmain Registered User regular
    damn right I can

    syndalis wrote: »
    Apple is a terrible company.
  • djmitchelladjmitchella Registered User regular
    There are two approaches to array indexing in programming languages:
    1. Those who start with an array index of 1, and
    1. Those who start with an array index of 0

    (via the ember slack channel, to give credit where it's due)

    ecco the dolphinRendurahonkyKambingDelmainInfidelbuilderr0rTomantaPolaritieDisruptedCapitalistSmasherseasleepySyphyre
  • bowenbowen How you doin'? Registered User regular
    That took a few seconds. Funny though.

    Ladies.
    ecco the dolphinironsizidePolaritieDisruptedCapitalist
  • KakodaimonosKakodaimonos Registered User regular
    I have an old copy of Numerical Recipes in C where they have the unit offset array and vector handlers. So you don't have to worry about converting your old Fortran arrays to the new C style arrays that start at 0.

  • ecco the dolphinecco the dolphin Registered User regular
    Wow

    Frameworks are really really good nowadays.

    I was like "Urgh, need to add a new action to the controller, and tie it into the URL etc..."

    Turns out it was:
    1.) Add a public function to the controller class
    2.) PROFIT

    Well played, ASP.NET, well played.

    * Technically step 1b was also "register this action with the project's internal security/access framework", but the point still stands! =P

    Penny Arcade Developers at PADev.net.
    admanbcrimsoncoyoteDehumanizedEchoTofystedeth
  • ASimPersonASimPerson And they will tremble again at the sound of our silence!Registered User regular
    edited August 2015
    There are two approaches to array indexing in programming languages:
    1. Those who start with an array index of 1, and
    1. Those who start with an array index of 0

    (via the ember slack channel, to give credit where it's due)

    donald_knuth.png

    ASimPerson on
    redoctober2.png
    SE++ Forum Battle Archive | PDT is not PST | DRUNKSTUCK: A Homestuck recap
    Gethecco the dolphinhtmbuilderr0rCarpyironsizidecrimsoncoyotePolaritieDisruptedCapitalistMvrck
  • ecco the dolphinecco the dolphin Registered User regular
    Oh. So AngularJS automatically parses JSON results from $resource/$http, so that all you need to do is wait on its $promise.

    So damned convenient.

    Penny Arcade Developers at PADev.net.
    ironsizidethatassemblyguyTryCatcherbowenDehumanizedDisruptedCapitalist
  • DehumanizedDehumanized Registered User regular
    It's downright impressive how far along asp.net has come since they introduced asp mvc. Even working in webforms is almost pleasant now.

  • admanbadmanb the bored genie Seattle, WARegistered User regular
    I started doing web dev... just under 10 years ago now, and every time I pick up a new framework I'm amazed at how big an improvement it is over what I still think of as the status quo.

    bowenurahonkyJimmy KingDisruptedCapitalistecco the dolphin
  • bowenbowen How you doin'? Registered User regular
    Welcome to the new world ecco.

    Ladies.
    DisruptedCapitalistecco the dolphin
  • urahonkyurahonky Registered User regular
    The word "errors" has officially lost all meaning to me.

  • bowenbowen How you doin'? Registered User regular
    Is there a software license that allows it to be public source, but limit it's use in commercial applications?

    IE, if I wanted to put some code in github but not really allow people to really take my shit and sell it to others? I don't care if someone uses it in their personal in house app or whatever.

    Ladies.
  • zerzhulzerzhul Registered User, Moderator mod
    edited August 2015
    Could creative commons share-alike non-commercial work?

    http://creativecommons.org/licenses/by-nc-sa/4.0/

    edit: apparently it is suggested that CC licenses not be used for software, but they *could* be used for software.

    edit again: it seems like in the open source community, declaring non-commercial is frowned upon? I can't find any software-specific license that's in popular use that holds non-commercial.

    zerzhul on
  • urahonkyurahonky Registered User regular
    Sigh so if the other developer doesn't get portion of the code finished, pushed, and deployed by EOB tomorrow it looks like I'm going to have to start looking at doing it myself too.

  • bowenbowen How you doin'? Registered User regular
    edited August 2015
    zerzhul wrote: »
    Could creative commons share-alike non-commercial work?

    http://creativecommons.org/licenses/by-nc-sa/4.0/

    edit: apparently it is suggested that CC licenses not be used for software, but they *could* be used for software.

    edit again: it seems like in the open source community, declaring non-commercial is frowned upon? I can't find any software-specific license that's in popular use that holds non-commercial.

    Yeah, that was my finding too.

    That's why I'm using "public source."

    I just don't want someone to bundle my software with their own, or take my own and just sell it without royalties, like I said, I have no problem if someone wants to use it themselves, just have a problem with selling it.

    That's ultimately the big issue I have with FOSS, what I want isn't considered "open source" by definition.

    bowen on
    Ladies.
  • zeenyzeeny Registered User regular
    zerzhul wrote: »
    Could creative commons share-alike non-commercial work?

    http://creativecommons.org/licenses/by-nc-sa/4.0/

    edit: apparently it is suggested that CC licenses not be used for software, but they *could* be used for software.

    edit again: it seems like in the open source community, declaring non-commercial is frowned upon? I can't find any software-specific license that's in popular use that holds non-commercial.

    GPL is as non-commercial as it gets. Don't worry about it, if you release something under it odds are it won't be touched with a 10 feet pole.

    a5ehrenhtmPolaritieInfidelThe Anonymous
  • bowenbowen How you doin'? Registered User regular
    GPL allows for people to package it up and sell it though, so long as they give the original source.

    I just don't like the idea that if I did decide to try and offer a service around it, that I'd have to compete with myself being sold by someone else.

    But, like I said, I'm okay with some guy or some company taking it and using it internally and never doing anything else with it.

    Ladies.
  • RendRend Registered User regular
    bowen wrote: »
    GPL allows for people to package it up and sell it though, so long as they give the original source.

    I just don't like the idea that if I did decide to try and offer a service around it, that I'd have to compete with myself being sold by someone else.

    But, like I said, I'm okay with some guy or some company taking it and using it internally and never doing anything else with it.

    iirc, if you include something which is released under the GPL license, any code which incorporates it must ALSO be released under the GPL license. It's not impossible to get around, but if a company improperly uses GPL code, they could jeopardize every proprietary line of code in their whole code base, which is why on the whole, corporations don't touch it unless absolutely necessary.

    Again though, IIRC. I could be thinking of a different license, but I'm pretty sure at my company's open source training, the takeaway was "apache license is good, GPL license is unusable."

    Delmain
  • bowenbowen How you doin'? Registered User regular
    edited August 2015
    Rend wrote: »
    bowen wrote: »
    GPL allows for people to package it up and sell it though, so long as they give the original source.

    I just don't like the idea that if I did decide to try and offer a service around it, that I'd have to compete with myself being sold by someone else.

    But, like I said, I'm okay with some guy or some company taking it and using it internally and never doing anything else with it.

    iirc, if you include something which is released under the GPL license, any code which incorporates it must ALSO be released under the GPL license. It's not impossible to get around, but if a company improperly uses GPL code, they could jeopardize every proprietary line of code in their whole code base, which is why on the whole, corporations don't touch it unless absolutely necessary.

    Again though, IIRC. I could be thinking of a different license, but I'm pretty sure at my company's open source training, the takeaway was "apache license is good, GPL license is unusable."

    You're right, GPL is mostly copyleft.

    Still doesn't stop someone from taking "GPL Webserver FOSS" and selling it as "Bowen's Awesome Webserver" for $20 or selling a service based on installing it on people's computers.

    That's the kind of shit I want to stop.

    I think the CC BY-NC-SA is the one I'm looking for. Seems to fit exactly what I want it to do. I get the copyleft that GPL has, so improvements or changes could be incorporated back into the main source, and I "stop" people from using for a commercial stuff, and, potentially competing with me.

    I'm okay with not making a sale, I understand some people will download and work out how to use it on their own. I hate it when people take my stuff and take credit and make money off it though.

    bowen on
    Ladies.
  • djmitchelladjmitchella Registered User regular
    Rend wrote: »
    Again though, IIRC. I could be thinking of a different license, but I'm pretty sure at my company's open source training, the takeaway was "apache license is good, GPL license is unusable."

    That's how we do things here; BSD/MIT/etc is ideal, LGPL is possibly okay, but you have to be very sure you need that functionality enough to jump through the hoops to keep things legal; GPL = no way, no how.

    Rendecco the dolphinThe Anonymousa5ehren
  • bowenbowen How you doin'? Registered User regular
    @zerzhul thanks btw

    Ladies.
  • ecco the dolphinecco the dolphin Registered User regular
    admanb wrote: »
    I started doing web dev... just under 10 years ago now, and every time I pick up a new framework I'm amazed at how big an improvement it is over what I still think of as the status quo.

    It's like the frameworks want you to focus on the data that's being moved around, instead of ancillary details like resource management. :p
    urahonky wrote: »
    The word "errors" has officially lost all meaning to me.

    Was this because you repeated it 40 times really quickly?

    errorerrorerroreroerrooeroerororoeoreooorooooerrrrrerooooreoo

    Penny Arcade Developers at PADev.net.
  • NogsNogs Crap, crap, mega crap. Registered User regular
  • urahonkyurahonky Registered User regular
    Bookmarked, thanks @Nogs and yes @ecco the dolphin it's because I type stuff like "this.state.errors = errors;" about a hundreds times and always type "errrors" and "erorr". Ugh!

    ecco the dolphin
  • gavindelgavindel The reason all your software is brokenRegistered User regular
    Year end review was today. As I have been at my company only a month, my demands were a reasonable 30% bonus and a pony. Sadly, I was forced to settle for a second hand yacht. What is tech coming to these days?


    ecco the dolphinurahonkyPolaritie
  • crimsoncoyotecrimsoncoyote Registered User regular
    Oooh, we're doing a hackathon for a couple days next week at work. Looks like I get to dive into some angular

    urahonky
  • djmitchelladjmitchella Registered User regular
    ow, the "Build Log" page is making me sad

    Hm. How big _are_ the logs?
    teamcity wrote:
    u9sg4vydoyq7.png
    alright, I'll let you have this one.

    2,034,282 lines. Looking in there, an awful lot of it seems to be preprocessor warnings about boost headers, which are a:verbose, and b:seem to happen for every source file in some of the projects. (fake edit: I asked the guys on those projects, and they said "yeah, we looked into them, we've confirmed they're harmless, but they would be time-consuming to fix and management does not think build log size is a priority compared to new features / customer-facing bugfixes". Which is fair enough, I guess)

    urahonky
  • EtheaEthea Registered User regular
    ow, the "Build Log" page is making me sad

    Hm. How big _are_ the logs?
    teamcity wrote:
    u9sg4vydoyq7.png
    alright, I'll let you have this one.

    2,034,282 lines. Looking in there, an awful lot of it seems to be preprocessor warnings about boost headers, which are a:verbose, and b:seem to happen for every source file in some of the projects. (fake edit: I asked the guys on those projects, and they said "yeah, we looked into them, we've confirmed they're harmless, but they would be time-consuming to fix and management does not think build log size is a priority compared to new features / customer-facing bugfixes". Which is fair enough, I guess)

    Make boost be included as a system path and watch 90% of those go away

  • SeolSeol Registered User regular
    (fake edit: I asked the guys on those projects, and they said "yeah, we looked into them, we've confirmed they're harmless, but they would be time-consuming to fix and management does not think build log size is a priority compared to new features / customer-facing bugfixes". Which is fair enough, I guess)
    Which is fine until there's something new in the build log which isn't harmless, and you never spot because it's on line 1,300,000 of 2,000,000.

    I guess you could write a test that says every line in the log matches one of these patterns that we have decided are acceptable, if you need to protect against that...

  • SaerisSaeris Chronogestaltist Trinity, New MexicoRegistered User regular
    Nogs wrote: »

    I haven't actually used Flux, but from reading examples of it, I always got the impression that the pattern has too much implementation overhead (the boilerplate mentioned in the first link) to scale to large apps. So it's appealing to see something like this that apparently understands the issue and seeks to solve it.

    I'm getting closer and closer to the conclusion that pure functions are the only sane way to do UI.

    Nlgya.png
    Geth
  • InfidelInfidel Heretic Registered User regular
    So I had to fork and patch up formsy-react today to get it working with react 0.14 and ES6 class style.

    On the upside, I'm learning React really quick.

    OrokosPA.png
    Play D&D 4e? :: Check out Orokos and upload your Character Builder sheet! :: Orokos Dice Roller
    The PhalLounge :: Chat board for Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
    ecco the dolphin
  • ecco the dolphinecco the dolphin Registered User regular
    I just learned about directives in AngularJS.

    I'm like

    "How did <div some-example-here></div> render into this really neat UI? FROM WHAT DARK MAGICK DID IT COME?"

    and directives are that answer.

    Penny Arcade Developers at PADev.net.
    crimsoncoyotebuilderr0radmanb
  • NogsNogs Crap, crap, mega crap. Registered User regular
    Infidel wrote: »
    So I had to fork and patch up formsy-react today to get it working with react 0.14 and ES6 class style.

    On the upside, I'm learning React really quick.

    did you submit a PR?

    rotate.jpg
    PARKER, YOU'RE FIRED! <-- My comic book podcast! Satan look here!
  • NogsNogs Crap, crap, mega crap. Registered User regular
    I just learned about directives in AngularJS.

    I'm like

    "How did <div some-example-here></div> render into this really neat UI? FROM WHAT DARK MAGICK DID IT COME?"

    and directives are that answer.

    And the thing is, angular directives actually kinda suck.

    basically, it's not unheard of for people to literally drop in React in place of Angular Directives, but still use every other part of Angular.

    rotate.jpg
    PARKER, YOU'RE FIRED! <-- My comic book podcast! Satan look here!
  • ecco the dolphinecco the dolphin Registered User regular
    Nogs wrote: »
    I just learned about directives in AngularJS.

    I'm like

    "How did <div some-example-here></div> render into this really neat UI? FROM WHAT DARK MAGICK DID IT COME?"

    and directives are that answer.

    And the thing is, angular directives actually kinda suck.

    basically, it's not unheard of for people to literally drop in React in place of Angular Directives, but still use every other part of Angular.

    Oh schnap! I am in your webs, learning your technologies and methodologies. =P

    Could I ask why they kinda suck? Or be thrown a few links to stuff?

    Penny Arcade Developers at PADev.net.
  • hippofanthippofant ティンク Registered User regular
    Nogs wrote: »
    I just learned about directives in AngularJS.

    I'm like

    "How did <div some-example-here></div> render into this really neat UI? FROM WHAT DARK MAGICK DID IT COME?"

    and directives are that answer.

    And the thing is, angular directives actually kinda suck.

    basically, it's not unheard of for people to literally drop in React in place of Angular Directives, but still use every other part of Angular.

    Oh schnap! I am in your webs, learning your technologies and methodologies. =P

    Could I ask why they kinda suck? Or be thrown a few links to stuff?

    I think it's partially because there's a new web technology every few years. Not sure the stuff is "built to last", per se.

  • InfidelInfidel Heretic Registered User regular
    Nogs wrote: »
    Infidel wrote: »
    So I had to fork and patch up formsy-react today to get it working with react 0.14 and ES6 class style.

    On the upside, I'm learning React really quick.

    did you submit a PR?

    Not yet, but he definitely wants some testing and feedback on it. I'm going to run it through the paces and make sure our approach is "correct" before I bother with the PR.

    By end of next week we will either have abandoned it or adopted it fully.

    OrokosPA.png
    Play D&D 4e? :: Check out Orokos and upload your Character Builder sheet! :: Orokos Dice Roller
    The PhalLounge :: Chat board for Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
  • ironsizideironsizide You must whip it Registered User regular
    I posted in the SE++ Job thread, but: I gots a new job. Moving from far-too-much responsibility for no benefits and not nearly compensated enough to great benefits, 40hr work week culture, only being a developer, and an honest-to-goodness TEAM to work with.

    |_
    Oo\ Ironsizide
    camo_sig2.png
    Infidelecco the dolphinEchobowencrimsoncoyoteurahonkybuilderr0rDisruptedCapitalistDelmainmightyjongyogavindelseasleepy
  • ecco the dolphinecco the dolphin Registered User regular
    ironsizide wrote: »
    I posted in the SE++ Job thread, but: I gots a new job. Moving from far-too-much responsibility for no benefits and not nearly compensated enough to great benefits, 40hr work week culture, only being a developer, and an honest-to-goodness TEAM to work with.

    Praise the honky!

    Now we just have to wait until ASimPerson reports on his good news. *knock on wood*

    Penny Arcade Developers at PADev.net.
    Infidelironsizidebowencrimsoncoyoteurahonky
  • ASimPersonASimPerson And they will tremble again at the sound of our silence!Registered User regular
    ironsizide wrote: »
    I posted in the SE++ Job thread, but: I gots a new job. Moving from far-too-much responsibility for no benefits and not nearly compensated enough to great benefits, 40hr work week culture, only being a developer, and an honest-to-goodness TEAM to work with.

    Praise the honky!

    Now we just have to wait until ASimPerson reports on his good news. *knock on wood*

    Getting there!

    redoctober2.png
    SE++ Forum Battle Archive | PDT is not PST | DRUNKSTUCK: A Homestuck recap
    ecco the dolphinurahonkybuilderr0rironsizide
This discussion has been closed.