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] Mirror, mirror, on the wall, show the git diff for them all

19495969799

Posts

  • EchoEcho Moderator mod
    Grape Ape wrote: »
    I'm guessing you all don't have a morning stand up?

    It's a bit of an odd outfit here - it's a small company run on the side by the owner. He has his regular day job, so our sprint meetings are after office hours. It was literally the last thing yesterday.

    And no, no standups here yet. Though we did start doing planning poker yesterday, so at least it's moving in the right direction.

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • zeenyzeeny Registered User regular
    Echo wrote: »
    zeeny wrote: »
    Echo wrote: »
    Hey, other new guy on the team. Check your TFS and don't start on tasks assigned to me and then get annoyed when we've worked on the same thing.

    Also my solution was better.

    Maybe you two could talk more and silently pick up tasks less ;o)

    I mentioned that I start the day by looking at available tasks, wink wink nudge nudge. Didn't want to be all passive-aggressive about it.

    Not to mention the sprint meeting where stuff was handed out was yesterday.

    Still, man, if its a problem and bothering you, just discuss if saying "Hey dude, picking up X, that cool?" is ok with both of you. Communication is always nice!

  • zeenyzeeny Registered User regular
    edited June 2016
    dp

    zeeny on
  • TofystedethTofystedeth veni, veneri, vamoosi Registered User regular
    edited June 2016
    admanb wrote: »
    Nothing worse than a lazy developer. Maybe a clever, lazy developer.

    I was tracking down an issue in some Python scripts.

    The script that had the issue looked ok, but had just a few imports.
    import os
    import sys
    
    sys.path.append(os.path.join('..//..','modules'))
    import pythonBase
    

    And in pythonBase
    import abc
    import atexit
    
    ... many lines later
    import zlib
    

    Yes, he imported every single base Python library and some packages.

    That's not a lazy developer. A lazy developer would never take the time to type all that.

    Or wrote a script that was basically
    foreach module in modules
        writeline("import " + module)
    
    

    Tofystedeth on
    steam_sig.png
    admanbbowenKakodaimonosNightslyrthatassemblyguyan_alt
  • SavgeSavge Indecisive Registered User regular
    Does anyone know of any formal development methodologies or disciplines for solo programmers? A lot of stuff out there like Agile is meant for coordinating teams of people and keeping everyone on track, but a lot of that stuff is kind of ridiculous if you're just working on some side project by yourself.

    What ends up happening is I make some plans then just sit down and write code and keep a list sometimes of small things I need to do, but I find myself getting off track all the time and sometimes I end up not knowing what I should do next or how to choose what to do next.

  • zerzhulzerzhul Registered User, Moderator mod
    Spending the time to create a backlog with relative complexities can be very valuable for self-guided projects, even if you don't need to do sprints or whatever.

    Grape ApethatassemblyguyschussPolaritieEvigilant
  • DehumanizedDehumanized Registered User regular
    edited June 2016
    sometimes team members just space out. heck, we have a physical board with index cards and magnets that we put our names on and someone started trying to work on a task that my pair had pulled a few weeks back.

    and yeah, just making a backlog and figuring out what you want to commit to doing for an iteration even if you're completely solo and that iteration isn't timeboxed at all can be useful.

    Dehumanized on
    Grape Ape
  • EchoEcho Moderator mod
    What they've said. I like to stick to one task at a time and make sure that I get every new idea/bug I find down on a card for later.

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • SavgeSavge Indecisive Registered User regular
    We will have to be maintaining a legacy Angular app but will also be doing green field development. Can anyone convince me otherwise that React isn't the clear and obvious choice for the green field development?
    React is the good and smart choice. Pair it with Redux for extra points.

    Be careful with Redux, if you attempt to be a purist and keep every bit of your application state in the Redux store it will slow your development time way down with extra boilerplate and more abstractions to wrap your head around. Making every component in your React application a pure component isn't too practical.

  • MadpoetMadpoet Registered User regular
    It used to be developers could goof off during compile time, but modern systems compile so quickly that there is no longer even enough time to go get a proper cup of tea.
    This has led to techniques such as Test Driven Development, which allow the developer breaks under the guise of "Running my test suite".

    ecco the dolphinEchomightyjongyogavindelEvigilant
  • DehumanizedDehumanized Registered User regular
    the only long breaks we get in our dev/test/deploy cycle is waiting for a few specific deploy jobs to pass. a full local testing cycle takes about 40 seconds and, honestly, that's a super slow number that we're always trying to improve.

    and 90% of that deploy job is waiting on AWS environments to reconfigure

  • SavgeSavge Indecisive Registered User regular
    I'm working on a React app and I am wondering if anyone here knows how I would go about creating a PDF client side and rendering it for a user to print?

  • KakodaimonosKakodaimonos Registered User regular
    Madpoet wrote: »
    It used to be developers could goof off during compile time, but modern systems compile so quickly that there is no longer even enough time to go get a proper cup of tea.
    This has led to techniques such as Test Driven Development, which allow the developer breaks under the guise of "Running my test suite".

    Unless you work on embedded systems. Then you get the whole compile, deploy, cold start up and wait for results cycle to goof off.

    And if you're doing custom logic on FPGAs? Hello 12 hour build and test times.

    zerzhulmightyjongyoecco the dolphinhtm
  • EchoEcho Moderator mod
    edited June 2016
    Madpoet wrote: »
    It used to be developers could goof off during compile time, but modern systems compile so quickly that there is no longer even enough time to go get a proper cup of tea.
    This has led to techniques such as Test Driven Development, which allow the developer breaks under the guise of "Running my test suite".

    Right now I'm troubleshooting 2FA stuff that gets stuck mid-way in the integration tests and I have to dump and re-migrate the database each time to make sure I start with a clean slate and see if I made any progress. :rotate:

    edit: nope, no test fixtures for the data here.

    Echo on
    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • zeenyzeeny Registered User regular
    edited June 2016
    Savge wrote: »
    Does anyone know of any formal development methodologies or disciplines for solo programmers? A lot of stuff out there like Agile is meant for coordinating teams of people and keeping everyone on track, but a lot of that stuff is kind of ridiculous if you're just working on some side project by yourself.

    What ends up happening is I make some plans then just sit down and write code and keep a list sometimes of small things I need to do, but I find myself getting off track all the time and sometimes I end up not knowing what I should do next or how to choose what to do next.

    Kanban is what I do on everything personal. It's initially hard, but it's worth it.

    zeeny on
    zerzhulEthea
  • InfidelInfidel Heretic Registered User regular
    Savge wrote: »
    I'm working on a React app and I am wondering if anyone here knows how I would go about creating a PDF client side and rendering it for a user to print?

    https://parall.ax/products/jspdf

    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
  • SpawnbrokerSpawnbroker Registered User regular
    Ugh, so my current company doesn't pay out vacation, and they also have a section in the employee handbook that says an employee can't take vacation once they give notice they're leaving.

    Dick move, guys. I'm regretting being nice and giving 3 weeks notice, now.

    Battle.net: Spawnbroker#1471
    Steam: Spawnbroker
    Final Fantasy XIV: Spawn Broken
  • bowenbowen How you doin'? Registered User regular
    Ugh, so my current company doesn't pay out vacation, and they also have a section in the employee handbook that says an employee can't take vacation once they give notice they're leaving.

    Dick move, guys. I'm regretting being nice and giving 3 weeks notice, now.

    yeah you take your vacation before you give notice

    duh

    Ladies.
  • SpawnbrokerSpawnbroker Registered User regular
    bowen wrote: »
    Ugh, so my current company doesn't pay out vacation, and they also have a section in the employee handbook that says an employee can't take vacation once they give notice they're leaving.

    Dick move, guys. I'm regretting being nice and giving 3 weeks notice, now.

    yeah you take your vacation before you give notice

    duh

    My company also has a policy that any vacation has to be approved 2 weeks in advance.

    There are a lot of reasons I am leaving this company.

    Battle.net: Spawnbroker#1471
    Steam: Spawnbroker
    Final Fantasy XIV: Spawn Broken
  • bowenbowen How you doin'? Registered User regular
    edited June 2016
    bowen wrote: »
    Ugh, so my current company doesn't pay out vacation, and they also have a section in the employee handbook that says an employee can't take vacation once they give notice they're leaving.

    Dick move, guys. I'm regretting being nice and giving 3 weeks notice, now.

    yeah you take your vacation before you give notice

    duh

    My company also has a policy that any vacation has to be approved 2 weeks in advance.

    There are a lot of reasons I am leaving this company.

    "hi my mom just died, I need to use my time for bereavement"

    bowen on
    Ladies.
  • admanbadmanb the bored genie Seattle, WARegistered User regular
    bowen wrote: »
    bowen wrote: »
    Ugh, so my current company doesn't pay out vacation, and they also have a section in the employee handbook that says an employee can't take vacation once they give notice they're leaving.

    Dick move, guys. I'm regretting being nice and giving 3 weeks notice, now.

    yeah you take your vacation before you give notice

    duh

    My company also has a policy that any vacation has to be approved 2 weeks in advance.

    There are a lot of reasons I am leaving this company.

    "hi my mom just died, I need to use my time for bereavement"

    "oh and also my mom owned her own business which I need to take over immediately so this is my two week notice"

    bowen
  • Alistair HuttonAlistair Hutton Dr EdinburghRegistered User regular
    Madpoet wrote: »
    It used to be developers could goof off during compile time, but modern systems compile so quickly that there is no longer even enough time to go get a proper cup of tea.
    This has led to techniques such as Test Driven Development, which allow the developer breaks under the guise of "Running my test suite".

    There's also building Docker containers/deploying to AWS.

    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.
  • mightyjongyomightyjongyo Registered User regular
    xpost from job thread, but we're finally going to flip the switch on forcing automated module testing. I sent out an email on the makefile convention and told people to get their shit together by end of month. I was talking to my boss about it just now:
    (05:32:52 PM) me: gonna auto turn on at end of month
    (05:34:54 PM) boss: you know half of the people arent going to do it
    (05:34:59 PM) me: yeep
    (05:35:02 PM) boss: and its all going to come crashing down
    (05:35:10 PM) me: expecting it, yea
    (05:35:16 PM) me: gonna be a fun shitshow
    (05:35:23 PM) me: might be on vacation that week :P
    (05:35:28 PM) me: : sink or swim, suckers
    (05:35:39 PM) boss: dont you dare
    (05:35:42 PM) me: hahaha

    ecco the dolphinbowenDaedalusPolaritieGrape ApeDisruptedCapitalist
  • ecco the dolphinecco the dolphin Registered User regular
    You glorious bastard.

    Penny Arcade Developers at PADev.net.
    bowenPolaritieTraceironsizideMvrck
  • EchoEcho Moderator mod
    What the heck, these integration tests run against the local dev database instead of a separate test database with clean data. Spent 30 minutes wondering why that test wasn't going through. Yeah, going to yell about that.

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • Baron DirigibleBaron Dirigible Registered User regular
    Savge wrote: »
    Be careful with Redux, if you attempt to be a purist and keep every bit of your application state in the Redux store it will slow your development time way down with extra boilerplate and more abstractions to wrap your head around. Making every component in your React application a pure component isn't too practical.
    Not being snarky, but can you give some examples of this boilerplate and abstraction? I genuinely think Redux is small and unobtrusive enough that this should be the absolute least of your concerns.

    (I can understand the boilerplate argument if you haven't yet discovered connect() in the react-redux library. That changed my Redux experience entirely.)

    Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away.
  • EchoEcho Moderator mod
    Gah, Bootstrap tooltips that move out of position when scrollbars appear on the page.

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • EchoEcho Moderator mod
    So, GitKraken has a new fun bug where if for some reason staging a file takes time, it eats the file and decides that you wanted to stage the new empty file. 8->

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • gavindelgavindel The reason all your software is brokenRegistered User regular
    A fully functional, up to date example of code is worth it's freaking weight in gold, I swear.

    Take a picture when you find one or your friends at the pub won't believe you.


    ecco the dolphinMvrck
  • EchoEcho Moderator mod
    Mocha + Chai + Enzyme is a really nice combo for TDD in React.
    it('renders something', () => {
      const wrapper = shallow(<Unit unitData={testProfile} />)
      expect(wrapper).to.have.tagName('ul')
    })
    
    it('renders a unit profile', () => {
      const wrapper = mount(<Unit unitData={testProfile} />)
      expect(wrapper.find('.profile').length).to.be.at.least(1)
    })
    

    Echo wrote: »
    Let they who have not posted about their balls in the wrong thread cast the first stone.
  • KakodaimonosKakodaimonos Registered User regular
    Why would you write a data transmission spec that allows arbitrary byte lengths for integers? This is the stupidest idea I have ever seen. Who cares if you have one byte of all zeros. But nope, let's go ahead and drop that byte so we can have a 3-byte integer. That makes total sense to have a bizarre, convoluted parsing and transmission scheme for a low-volume data feed.

    I need a stabbing knife.

    EtheaNaphtaliecco the dolphin
  • EtheaEthea Registered User regular
    edited June 2016
    Why would you write a data transmission spec that allows arbitrary byte lengths for integers? This is the stupidest idea I have ever seen. Who cares if you have one byte of all zeros. But nope, let's go ahead and drop that byte so we can have a 3-byte integer. That makes total sense to have a bizarre, convoluted parsing and transmission scheme for a low-volume data feed.

    I need a stabbing knife.

    Dear lord that is a horrible idea. It is like somebody tried to roll compression into a transmission spec in all the wrong ways.

    Edit:
    Plus how do they signal how many bytes they dropped?

    Ethea on
  • iTunesIsEviliTunesIsEvil Registered User regular
    Ethea wrote: »
    Why would you write a data transmission spec that allows arbitrary byte lengths for integers? This is the stupidest idea I have ever seen. Who cares if you have one byte of all zeros. But nope, let's go ahead and drop that byte so we can have a 3-byte integer. That makes total sense to have a bizarre, convoluted parsing and transmission scheme for a low-volume data feed.

    I need a stabbing knife.

    Dear lord that is a horrible idea. It is like somebody tried to roll compression into a transmission spec in all the wrong ways.

    Edit:
    Plus how do they signal how many bytes they dropped?

    When you get the wrong number, you'll know. :rotate:

  • KakodaimonosKakodaimonos Registered User regular
    Ethea wrote: »
    Why would you write a data transmission spec that allows arbitrary byte lengths for integers? This is the stupidest idea I have ever seen. Who cares if you have one byte of all zeros. But nope, let's go ahead and drop that byte so we can have a 3-byte integer. That makes total sense to have a bizarre, convoluted parsing and transmission scheme for a low-volume data feed.

    I need a stabbing knife.

    Dear lord that is a horrible idea. It is like somebody tried to roll compression into a transmission spec in all the wrong ways.

    Edit:
    Plus how do they signal how many bytes they dropped?

    They added a two-bit length field at the beginning of each data field.

    :rotate:

  • EtheaEthea Registered User regular
    Ethea wrote: »
    Why would you write a data transmission spec that allows arbitrary byte lengths for integers? This is the stupidest idea I have ever seen. Who cares if you have one byte of all zeros. But nope, let's go ahead and drop that byte so we can have a 3-byte integer. That makes total sense to have a bizarre, convoluted parsing and transmission scheme for a low-volume data feed.

    I need a stabbing knife.

    Dear lord that is a horrible idea. It is like somebody tried to roll compression into a transmission spec in all the wrong ways.

    Edit:
    Plus how do they signal how many bytes they dropped?

    They added a two-bit length field at the beginning of each data field.

    :rotate:

    Oh that is hilarious, so it can't handle 64bit integer types(or cant drop more than 4bytes). If you are going to drop bytes and need to support 32/64 I think you would be better off using a 4bit type field before hand. That would allow you to specify if the field is a native 8,16,32,64 field and also how many bytes on the wire the value uses.

  • KakodaimonosKakodaimonos Registered User regular
    And it's unaligned data access so performance is expectedly shitty.

  • bowenbowen How you doin'? Registered User regular
    lots of java work in colorado

    anyone have anything I can read up on unit testing with java?

    Ladies.
  • SpawnbrokerSpawnbroker Registered User regular
    Man, this background check is nuts.

    I feel like they're gonna find out I called my fifth grade teacher a bad name that one time and it disqualifies me. This is more invasive than security clearance background checks I've had before.

    Battle.net: Spawnbroker#1471
    Steam: Spawnbroker
    Final Fantasy XIV: Spawn Broken
  • Grape ApeGrape Ape Registered User regular
    bowen wrote: »
    lots of java work in colorado

    anyone have anything I can read up on unit testing with java?

    We used a combination of Mockito and JUnit to handle the vast majority of our unit testing. Powermock had some edgecase uses for us as well, but I'll be damned if I can remember what.

  • djmitchelladjmitchella Registered User regular
    agh, I always forget how _heavy_ server-side java is. I have a 52-deep call stack made of factories and factoryproxies and constructorinjector and constructorbindingimplfactories and scopes$1$1 (whatever on earth that is)

    Somewhere in there is the line I want. Which one is it? Is it even in code? No, it is in development.properties. Which, of course, doesn't default to getting searched by Eclipse because it doesn't end in .java, which is why I couldn't find the property name I was after.

    I'm sure eventually I will have done this enough times that it'll become familiar and I'll remember this stuff more quickly, but I am not there yet..

This discussion has been closed.