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

[Programming] Kafkaesque rabbits in the queue at the pub

11920222425100

Posts

  • DehumanizedDehumanized Registered User regular
  • LD50LD50 Registered User regular
    No.

    ecco the dolphiniTunesIsEvilkimezerzhuldjmitchellabowenNogsmightyjongyoEchothatassemblyguyOrcaInfidelASimPersona5ehrenBarrakkethEvigilantMvrckDisruptedCapitalist
  • DehumanizedDehumanized Registered User regular
    The thing that floors me the most about that is that it has upvotes at all

  • Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    Oh my lord

  • ecco the dolphinecco the dolphin Registered User regular
    Huh.

    That answer has been upvoted more since the screencap was taken. It's 31 at the time of this post.

    Penny Arcade Developers at PADev.net.
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    PHP is a terrible language, but in principle it's not a bad answer

  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    The things that make PHP terrible probably wouldn't even show up in the functionality of pre-processing.

    And when you're already using C, PHP syntax probably doesn't look terrible.

  • bowenbowen How you doin'? Registered User regular
    I'm really not 100% sure what they're trying to accomplish with it anyways? How can you use php libraries in a C preprocessor? How in the world?

    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
  • EtheaEthea Registered User regular
    Promotion Post

    If you are a C++ developer please be aware that CMake is taking over the world :p .Visual Studio 15 now has experimental support for the new CMake IPC server ( https://cmake.org/cmake/help/v3.7/manual/cmake-server.7.html ). This is going to allow really nice integration between IDE's and CMake. Now IDE's can ask CMake what all the include directories for a target is, what defines the compile line will have etc. This should remove the CMake/IDE loop that developers currently have to do.

    Grape ApeRendmightyjongyoecco the dolphinthatassemblyguyBarrakkethironsizide
  • urahonkyurahonky Registered User regular
    Nogs wrote: »
    urahonky wrote: »
    So it looks like I'm stuck on 0.14.7 forever then.

    Now do research on changelogs, bring up the problem in an issue, see if you can repro on other tablet interfaces. Perhaps it is aa known bug, or a regression they arent aware of.

    Could also try updating to 15.0.0, and iterating up each patch and minor release, seeing if there is a particular version of 15 that introduced it.

    @Nogs I'm reasonably sure it's the 300ms delay on touches. Going to try and pull in the react-touch-event-plugin again and see. I've removed the animation for the tabs and there's definitely a delay from when I tap the screen and when it actually registers the click.

  • urahonkyurahonky Registered User regular
    And the final result:

    It was unmountOnExit on the tabs. I set that to true and it went back to being incredibly fast. Had nothing to do with touch delay.

  • NogsNogs Crap, crap, mega crap. Crap, crap, mega crap.Registered User regular
    Interesting, lemme know if and how you fixed it

    rotate.jpg
    PARKER, YOU'RE FIRED! <-- My comic book podcast! Satan look here!
  • urahonkyurahonky Registered User regular
    http://react-bootstrap.github.io/components.html#tabs

    For the Tabs component there's a new property called "unmountOnExit" which is default to false. I set it to true and now every tab clicks instantly.

    Not sure if it's a bug in react-bootstraps code or not but I got it working at least.

    Nogs
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    bowen wrote: »
    I'm really not 100% sure what they're trying to accomplish with it anyways? How can you use php libraries in a C preprocessor? How in the world?

    I guess they're trying to do something that the preprocessor can't easily do. The idea is to run it through PHP -> CPP -> compiler

  • bowenbowen How you doin'? Registered User regular
    Phyphor wrote: »
    bowen wrote: »
    I'm really not 100% sure what they're trying to accomplish with it anyways? How can you use php libraries in a C preprocessor? How in the world?

    I guess they're trying to do something that the preprocessor can't easily do. The idea is to run it through PHP -> CPP -> compiler

    I'd like to see practical examples because something tells me this recommendation is garbage even though it's shit from a butt 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
  • bowenbowen How you doin'? Registered User regular
    holy shit:

    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
    ecco the dolphinUselesswarriorInfideladmanbkimeBaron DirigibleEchoAyuliniTunesIsEvilEvigilanttemplewulfironsizide
  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    hawt

    kimebowenEvigilant
  • DehumanizedDehumanized Registered User regular
    yeah, that feature's pretty nice. it doesn't usually get you all the way there but it saves a lot of effort if you just need to slurp in some JSON or XML

    DisruptedCapitalist
  • Alistair HuttonAlistair Hutton Dr EdinburghRegistered User regular
    bowen wrote: »
    Phyphor wrote: »
    bowen wrote: »
    I'm really not 100% sure what they're trying to accomplish with it anyways? How can you use php libraries in a C preprocessor? How in the world?

    I guess they're trying to do something that the preprocessor can't easily do. The idea is to run it through PHP -> CPP -> compiler

    I'd like to see practical examples because something tells me this recommendation is garbage even though it's shit from a butt too.

    The C preprocessor is just a crappy templating language, I doesn't have any semantic connection with C, it's just convention that it gets used.

    I have a thoughtful and infrequently updated blog about games http://whatithinkaboutwhenithinkaboutgames.wordpress.com/

    I made a game, it has penguins in it. It's pay what you like on Gumroad.

    Currently Ebaying Nothing at all but I might do in the future.
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    messing around a little with ASP.NET Core

    am I missing something or do I need to write an entire class just to put a DbSet into a dropdown list

    come on Microsoft... I thought you unfucked your shit!

  • bowenbowen How you doin'? Registered User regular
    Does it use MVVM or something that you can databind a list of strings?

    Not very familiar with ASP or Core

    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
    edited October 2016
    DbSet is IQueryable. Surprised that Html.DropdownListFor doesn't work.

    Dehumanized on
  • LD50LD50 Registered User regular
    I think chances are pretty good that if you need the power of a full programming language in place of the traditional preprocessor, you're probably not using the right tool for the job. I agree with bowen that most examples where a full language for a preprocessor is necessary are contrived, and for those that aren't there is probably a better solution (like actualfact code generation tools, or a higher level language with C interop or a native code interface).

    bowenInfidelthatassemblyguy
  • InfidelInfidel Heretic Registered User regular
    LD50 wrote: »
    I think chances are pretty good that if you need the power of a full programming language in place of the traditional preprocessor, you're probably not using the right tool for the job. I agree with bowen that most examples where a full language for a preprocessor is necessary are contrived, and for those that aren't there is probably a better solution (like actualfact code generation tools, or a higher level language with C interop or a native code interface).

    Yeah, the examples are pretty contrived. Loop unrolling at the preprocessor level? Congrats on making your code ugly and a pain to use by anyone else, all for the sake of early optimization.

    It's that or templating type stuff, where I don't see the gains in the latter either.

    OrokosPA.png
  • LD50LD50 Registered User regular
    edited October 2016
    Doesn't the compiler loop unroll anyway? And if you need templating, use C++.

    LD50 on
    Infidel
  • EchoEcho ski-bap ba-dapModerator mod
    Bought an Arduino starter kit today.

    https://www.youtube.com/watch?v=gXBWA7WkbDw

    Saeristhatassemblyguyecco the dolphinadmanbironsizide
  • InfidelInfidel Heretic Registered User regular
    LD50 wrote: »
    Doesn't the compiler loop unroll anyway? And if you need templating, use C++.

    Exactly. The "good" examples of how it could be used lead to worse code.

    This doesn't even touch the nightmare it introduces with debugging, if you were using this extensively.

    OrokosPA.png
  • urahonkyurahonky Registered User regular
    edited October 2016
    So my work is going to have non-QA personnel (normal users of the software) come in after hours and "test" our software in a development environment. They will be giving them gift cards for every bug they find.

    Are you shitting me? HIRE A QA PERSON YOU FUCKWITS!

    urahonky on
    bowendjmitchellaecco the dolphinNogsUselesswarriorEchoSporkAndrewironsizideStabbity Style
  • NogsNogs Crap, crap, mega crap. Crap, crap, mega crap.Registered User regular
    urahonky wrote: »
    So my work is going to have non-QA personnel (normal users of the software) come in after hours and "test" our software in a development environment. They will be giving them gift cards for every bug they find.

    Are you shitting me? HIRE A QA PERSON YOU FUCKWITS!

    Wtf....that makes literally no sense.

    I mean, even the metric of reward doesnt make any sense. Reward for bug found? So many things wrong with that.

    rotate.jpg
    PARKER, YOU'RE FIRED! <-- My comic book podcast! Satan look here!
  • PhyphorPhyphor Building Planet Busters Tasting FruitRegistered User regular
    What could possible go wrong?

    a7c147a09fcd012f2fe600163e41dd5b

    mightyjongyogavindelbowenInfidelEtheaurahonkya5ehrenironsizideStabbity StyleNaphtali
  • DehumanizedDehumanized Registered User regular
    cobra farm woooooooo

  • Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    If I have a page, say,

    https://foo.bar/fizz.html

    And I need to request data from

    https://foo.bar:18888/json/query=n:1

    Is that going to be clobbered by the stuff that prevents cross site requests with pure XmlHTTPRequest?

  • KakodaimonosKakodaimonos Code fondler Helping the 1% get richerRegistered User regular
    C++ Zen.

    If you have a template where every parameter has a default value and you never override the defaults, are you really using a template?

    ecco the dolphin
  • ecco the dolphinecco the dolphin Registered User regular
    C++ Zen.

    If you have a template where every parameter has a default value and you never override the defaults, are you really using a template?

    std::string answer("Yes.");

    Penny Arcade Developers at PADev.net.
    Kakodaimonos
  • InfidelInfidel Heretic Registered User regular
    Apothe0sis wrote: »
    If I have a page, say,

    https://foo.bar/fizz.html

    And I need to request data from

    https://foo.bar:18888/json/query=n:1

    Is that going to be clobbered by the stuff that prevents cross site requests with pure XmlHTTPRequest?

    The server identity is based on scheme/host/port, so it would be treated the same as https://bar.foo/json would.

    OrokosPA.png
  • Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    Infidel wrote: »
    Apothe0sis wrote: »
    If I have a page, say,

    https://foo.bar/fizz.html

    And I need to request data from

    https://foo.bar:18888/json/query=n:1

    Is that going to be clobbered by the stuff that prevents cross site requests with pure XmlHTTPRequest?

    The server identity is based on scheme/host/port, so it would be treated the same as https://bar.foo/json would.

    Oh.

    Bollocks.

    I assume most REST APIs would allow CORS server side and thus if I enable CORS client side it should work or is that a dangerous assumption?

  • zeenyzeeny Registered User regular
    Apothe0sis wrote: »
    Infidel wrote: »
    Apothe0sis wrote: »
    If I have a page, say,

    https://foo.bar/fizz.html

    And I need to request data from

    https://foo.bar:18888/json/query=n:1

    Is that going to be clobbered by the stuff that prevents cross site requests with pure XmlHTTPRequest?

    The server identity is based on scheme/host/port, so it would be treated the same as https://bar.foo/json would.

    Oh.

    Bollocks.

    I assume most REST APIs would allow CORS server side and thus if I enable CORS client side it should work or is that a dangerous assumption?

    No reason to have this assumption unless it's explicitly offered as a service.

  • KakodaimonosKakodaimonos Code fondler Helping the 1% get richerRegistered User regular
    C++ Zen.

    If you have a template where every parameter has a default value and you never override the defaults, are you really using a template?

    std::string answer("Yes.");

    It's even better. There's a partial template specialization that's also not used.

    This is the most robust API that no one ever uses.

    ecco the dolphin
  • urahonkyurahonky Registered User regular
    Nogs wrote: »
    urahonky wrote: »
    So my work is going to have non-QA personnel (normal users of the software) come in after hours and "test" our software in a development environment. They will be giving them gift cards for every bug they find.

    Are you shitting me? HIRE A QA PERSON YOU FUCKWITS!

    Wtf....that makes literally no sense.

    I mean, even the metric of reward doesnt make any sense. Reward for bug found? So many things wrong with that.

    Seriously it's the worst. On top of that, if we had a QA person, then I wouldn't get tickets that say "This thing wasn't working. Not sure why, can't replicate, please diagnose and fix. Top priority."

    So now I have to spend hours trying to figure out what the fuck they were talking about and how to replicate.

    Uselesswarrior
  • bowenbowen How you doin'? Registered User regular
    Those normal users are going to turn features into bugs "yeah that's great, but that's not how it should work, so that's a bug and worth $10 in amazon gift cards"

    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
    EchourahonkyKakodaimonosNogsDisruptedCapitalistNaphtali
This discussion has been closed.