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

PA Programming Thread :: PAdev.net - Need hosting for a service of yours? Check it out.

17677798182100

Posts

  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    edited January 2012
    e: Damn double post.

    GnomeTank on
    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • bowenbowen How you doin'? Registered User regular
    Jasconius wrote:
    The reason Obj-C is in demand is because all of the REAL hipsters instead have been wandering the desert with shit like Titanium and refuse to touch raw Objective-C code.

    Huge swaths of the internet dedicated to Rails guys desperately trying to port ActiveRecord to CoreData, write REST adapters, so that they can just point it at a Rails server URL and hope the app will somehow piece itself together.

    I've made a nice career of cleaning up after their mess and doing it the right way.

    I don't know, if I was in the desert I'd prefer to use my divining rod rather than some crazy diwining rod. What is that, moon language, get off my lawn.

    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
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    I actually work in the medical field but we usually work with brutally anonymized data so HIPAA isn't a direct concern by the time anything comes to my desk.

  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    Errr, why would Rails guys be trying to do anything with Cocoa/iOS? Have they never heard the "tool for the job" axiom? I love Ruby, and I love Rails...but umm, it has a pretty set in stone niche that it's good at...and iOS development is not part of that package.

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited January 2012
    GnomeTank wrote:
    Errr, why would Rails guys be trying to do anything with Cocoa/iOS? Have they never heard the "tool for the job" axiom? I love Ruby, and I love Rails...but umm, it has a pretty set in stone niche that it's good at...and iOS development is not part of that package.

    All of the silicon startups need to have 'apps' these days, and a lot of the valley cretins are lifetime Rails folk, and that's basically how it comes together.

    From what I've been told in coworker reports from the frontline, Rails people outnumber Objective-C people 4-5 to 1 in Austin coffee shops.

    The first startup I worked for, I inherited the 1.0 iOS app from a Rails guy who had the app rigged on first run to query Rails for all records in the database, and had a framework that mimicked ActiveRecord function calls on the client side to retrieve his data from CoreData

    and every time the app started it would reconcile with Rails to update the entire DB

    Almost literally slaving CoreData to a remote SQL database

    it was not good

    I can't remember the name of the framework... but it's out there, and quite popular.

    Jasconius on
  • bowenbowen How you doin'? Registered User regular
    Jasconius wrote:
    I actually work in the medical field but we usually work with brutally anonymized data so HIPAA isn't a direct concern by the time anything comes to my desk.

    Yeah bit HIPAA compliancy isn't even a thing that you'd need to worry about. You should be employing at the bare minimum what HIPAA requires just because it's critical/personal data. Especially transfer over the wire.

    Why they were charging us that much to ensure compliance is retarded, how about you design non-retarded software then.

    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
    RoR uses sqlite doesn't it? WTF was that guy thinking Jasc?

    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
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    $50k sounds like a "we've never done HIPAA before actually don't know what it is so here's a number to cover our asses"

    That's what I would quote I didn't know what those letters stood for

  • bowenbowen How you doin'? Registered User regular
    Jasconius wrote:
    $50k sounds like a "we've never done HIPAA before actually don't know what it is so here's a number to cover our asses"

    That's what I would quote I didn't know what those letters stood for

    I told them we needed a 256-512 bit encryption on data from the server to the client and that would cover HIPAA compliancy other than having to do authentication locally against the server to make sure we have another layer in case the device was "compromised."

    I explained the requirements pretty much outright and they wouldn't be held liable if it violated compliancy as I would inherit the codebase from them either way.

    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
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited January 2012
    He was using Postgres in production

    He was thinking he was a super genius

    10 year veteran java programmer for the DoD doing helicopter guidance software who transition to Rails and was billing triple digits per hour


    on my third day on the job, his version of the app took 10 minutes to boot on the first run because was inserting into CoreData 1 record at a time (70k+ records)

    six weeks later he was fired

    But he's the prototypical hipster

    Speaks at all the regional un-official TED conferences and everything

    Jasconius on
  • bowenbowen How you doin'? Registered User regular
    Jasconius wrote:
    He was using Postgres in production

    He was thinking he was a super genius

    10 year veteran java programmer for the DoD who transition to Rails and was billing triple digits per hour


    on my third day on the job, his version of the app took 10 minutes to boot on the first run because was inserting into CoreData 1 record at a time (70k+ records)

    six weeks later he was fired

    But he's the prototypical hipster

    Speaks at all the regional un-official TED conferences and everything

    ... wat.

    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
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    bowen wrote:
    RoR uses sqlite doesn't it? WTF was that guy thinking Jasc?

    RoR can handle a swath of SQL databases. The default has transitioned from MySQL to Sqlite.

  • bowenbowen How you doin'? Registered User regular
    What could an application possibly need to insert into a database at boot, anyways?

    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
  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    bowen wrote:
    RoR uses sqlite doesn't it? WTF was that guy thinking Jasc?

    RoR has adapters for Postress, MySQL and Sqlite out of the box, and there are SQL Server and Oracle adapters readily available. There are even MongoDB bindings.

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    Damn.

    The library used to be called "CoreResource"

    but it appears as if their site is defunct and I can't find it on Github anymore

    Too bad. I was hoping we could all share a laugh.

    It had a fancy wood texture background and CSS3 and stuff on it

  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    edited January 2012
    bowen wrote:
    What could an application possibly need to insert into a database at boot, anyways?

    It was more likely that the ActiveRecord/Rails side of things was running all available Rails Migrations at app startup, to make sure the database was up to date from a DDL perspective. In RoR, Rails drives the database structure, not the other way around.

    GnomeTank on
    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    bowen wrote:
    What could an application possibly need to insert into a database at boot, anyways?

    The app was for photography, and instead of making remote calls to the Rails server based on user inputs in the app, he wanted to download the entire DB and run queries locally.

    So literally "get all photos for X user", instead of that being a web service call (which requires you to actually program in Objective-C and do callbacks and such), he wanted to have the entire DB in CoreData so that he could effectively write a CoreData fetch once and call it as needed, assuming the database would always be synced.

  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    To be clear, when I said app startup, I meant iPhone app startup. Took 10 minutes.

  • GnomeTankGnomeTank What the what? Portland, OregonRegistered User regular
    Jasconius wrote:
    To be clear, when I said app startup, I meant iPhone app startup. Took 10 minutes.

    The saddest part is that he probably thought he was terribly clever, and got one over on those nerdy programmers and their efficiency and best practice tomfoolery.

    Sagroth wrote: »
    Oh c'mon FyreWulff, no one's gonna pay to visit Uranus.
    Steam: Brainling, XBL / PSN: GnomeTank, NintendoID: Brainling, FF14: Zillius Rosh SFV: Brainling
  • bowenbowen How you doin'? Registered User regular
    That is retarded.

    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
    Sounds like an awful lot of overhead.

  • urahonkyurahonky Registered User regular
    Also I don't trust Netbeans to be my SVN... Am I the only one? I know I'm the only one in my office that doesn't use Netbeans for my SVN (I use Tortoise).

  • zeenyzeeny Registered User regular
    Jasconius wrote:
    bowen wrote:
    What could an application possibly need to insert into a database at boot, anyways?

    The app was for photography, and instead of making remote calls to the Rails server based on user inputs in the app, he wanted to download the entire DB and run queries locally.

    So literally "get all photos for X user", instead of that being a web service call (which requires you to actually program in Objective-C and do callbacks and such), he wanted to have the entire DB in CoreData so that he could effectively write a CoreData fetch once and call it as needed, assuming the database would always be synced.

    <3

  • InfidelInfidel Heretic Registered User regular
    I think of the Apple UI requirements and "startup responsiveness" and just chuckle.

    OrokosPA.png
  • agoajagoaj Top Tier One FearRegistered User regular
    Why would Java's collections.sort() be stable on windows and unstable on mac?

    ujav5b9gwj1s.png
  • urahonkyurahonky Registered User regular
    agoaj wrote:
    Why would Java's collections.sort() be stable on windows and unstable on mac?

    God I hope this isn't true... I have a TON of Collections.sort() in my program that I still need to test on Mac...

  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    So has anyone here used D? I think I might play around with it for a bit

  • centraldogmacentraldogma Registered User regular
    urahonky wrote:
    agoaj wrote:
    Why would Java's collections.sort() be stable on windows and unstable on mac?

    God I hope this isn't true... I have a TON of Collections.sort() in my program that I still need to test on Mac...

    Keep in mind:
    Java API wrote:
    This sort is guaranteed to be stable: equal elements will not be reordered as a result of the sort.

    When people unite together, they become stronger than the sum of their parts.
    Don't assume bad intentions over neglect and misunderstanding.
  • bowenbowen How you doin'? Registered User regular
    Phyphor wrote:
    So has anyone here used D? I think I might play around with it for a bit

    Looking up D makes it look like a mix of C# and C++ and that looks pretty sweet if that's the case. Domain languages are cool, runtime interop is cool too.

    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
  • IncindiumIncindium Registered User regular
    Jasconius wrote:
    He was using Postgres in production
    Could you elaborate on that point? I don't have the best opinion of PostgreSQL because of my experience in integrating with a VOIP switch platform that uses it for an underlining database for their stuff. I couldn't tell for sure if some of the goofiness that we encountered was the DB platform as a whole or just the particular implementation using it.

    steam_sig.png
    Nintendo ID: Incindium
    PSN: IncindiumX
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    Incindium wrote:
    Jasconius wrote:
    He was using Postgres in production
    Could you elaborate on that point? I don't have the best opinion of PostgreSQL because of my experience in integrating with a VOIP switch platform that uses it for an underlining database for their stuff. I couldn't tell for sure if some of the goofiness that we encountered was the DB platform as a whole or just the particular implementation using it.

    There's nothing to say. I don't have any problems with it. Has served me fine, but most of my stuff has been pretty small potatoes, from a load perspective.

  • urahonkyurahonky Registered User regular
    urahonky wrote:
    agoaj wrote:
    Why would Java's collections.sort() be stable on windows and unstable on mac?

    God I hope this isn't true... I have a TON of Collections.sort() in my program that I still need to test on Mac...

    Keep in mind:
    Java API wrote:
    This sort is guaranteed to be stable: equal elements will not be reordered as a result of the sort.

    Ahh okay.

  • EtheaEthea Registered User regular
    agoaj wrote:
    Why would Java's collections.sort() be stable on windows and unstable on mac?

    Are you using a custom Comparator that can could cause the sort to be unstable I expect.

  • agoajagoaj Top Tier One FearRegistered User regular
    This is what I'm using.
    int myTime = -1;		
    		try
    		{
    		myTime = Integer.parseInt(time);
    		int p2Time = Integer.parseInt(arg0.time);
    		return myTime - p2Time;
    		}
    		catch(NumberFormatException e){
    			if(myTime > -1) return myTime;
    			return 0;
    		}
    


    On windows it stays stable, on mac in switches every time I click on the list(that triggers a sort).

    ujav5b9gwj1s.png
  • bowenbowen How you doin'? Registered User regular
    That exception seems unnecessary.

    By this is Java isn't it?

    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
  • jackaljackal Fuck Yes. That is an orderly anal warehouse. Registered User regular
    That doesn't seem like it would behave symmetrically, which it probably should if you want it to be stable.

  • agoajagoaj Top Tier One FearRegistered User regular
    Is it better to just return -1/0/1?

    ujav5b9gwj1s.png
  • jackaljackal Fuck Yes. That is an orderly anal warehouse. Registered User regular
    I mean if the instance has "15" and you pass in an instance with "bloop" it returns 15 (meaning the instance is greater), but if you have the instance with "bloop" and you pass in the instance with "15" you return 0 (meaning they are equal). The order you get will depend on what order the items are compared in and that won't be stable or probably even well defined.

  • bowenbowen How you doin'? Registered User regular
    edited January 2012
    I guess I would do a regex and bool to see if it's a numeric value whatsoever. Then do parseint (and error out if it catches something outside the range of an int, because the regex won't check that).

    I'm not a big fan of "do a try/catch to test things" sort a guy though. That's the kind of thinking that ends you up with a local cache of an entire database on a cellphone.

    bowen on
    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
  • agoajagoaj Top Tier One FearRegistered User regular
    I'm fine with weird ordering for non-numbers. Everything in the list is a number though.

    ujav5b9gwj1s.png
This discussion has been closed.