7

Suppose you're at work and you have this monolithic project and you hit 'compile'.. which takes half an hour each time. What do you do meanwhile?

Comments
  • 8
  • 8
    If you want to solve the problem, you break it up. If you want to mitigate the problem, you get more powerful machines. If you want to avoid the problem, you browse Reddit.

    There's really no quick answer here. You can try to test bits of your code in isolation if possible before you compile the whole thing, but that's never going to work all the time.
  • 2
    You could potentially containerize it to get benefits from caching layers, or that's what I'd do. Also look for parallelization options for your compiler. 🤷🏻‍♂️
  • 0
    Look for problems in the database or do some documentation
  • 0
    Or play an online game
  • 0
    @AlmondSauce It's just that I used to work with this RAD framework called Adobe ADF (and it sucks hard). One change in one line of code the back-end meant redeploy your entire site in the container (Weblogic), which took between 10 and 30 minutes..
  • 1
    @AvatarOfKaine In this case it was the DBA's job and the devs weren't allowed to touch the db at all unless they were adding some tiny stored procedure but all of that had to be pre-approved by the dba, which meant extra meetings and.. -sighs- yeah.
  • 0
    watch anime series :P
  • 1
    Use a linker to compile only the changed module
  • 4
    Message recruiters on linkedin
  • 0
    @melezorus34 Yep, that's what I ended up doing.
  • 1
    I once inherited a shit project that 30k LoC at most be the fucking pile of shit was made as services and would use a crappy C++ port of a java lib for MQTT communication with a server that I shit you not took 1h to compile. Gcc needed about 32GB of ram otherwise the machine would crash.
  • 1
    Break it up into tens to hundreds of build units that are linked and finalised in the last step. Part of C's massive success is the fact that builds are cached by the file which is ideally a tiny block of code.
  • 2
    Search the job boards?
  • 2
    I'm just trying to picture this.

    so you're talking about n-tier style application right ?

    what language ?
  • 0
    @CaptainRant what's the tech stack of your project? Maybe there are slow and inefficient parts of the code that makes the compiling long. Maybe it needs some code refactoring.
  • 0
    Playing some random doo doo mobile games while waiting it to compile.
  • 0
  • 0
    @AvatarOfKaine That is correct. MVC and Java.
  • 1
    @Devnergy Stack was Oracle ADF and Oracle SQL server. Oracle Oracle Oracle.
  • 1
    do Crystal Meth
  • 0
    Get a faster pc?
  • 0
    some of the answers to this are kinda inane.
  • 0
    do you really need to do a full rebuild every time ? in c# you organize things by assembly.
  • 0
    here is a better question. so you people create crap which solidifes profanity. is that all you people do ? do they steal everything else from you all like they do from me ?
  • 0
    why do you all want everything to be the same over and over ?
  • 0
    I mean someone is keeping things because they steal things i wrote or produced. some of them take ideas I have and implement them like the json feature of smartctl
  • 0
    but why create this endless loop of stupdity ? don't you all feel pathetic at times ? like you're prisoners ?
  • 0
    @AvatarOfKaine Because in Software Development they say: "Don't reinvent the wheel". And in that case the framework was so effed up you had to recompile the whole thing for one change.
  • 0
    @CaptainRant I guess
    There have been cases I’ve seen that but if it wasn’t a prototype change I do remember in net you could set some option I think that would ignore assembly version changes in the calling code or that it would just ignore them in general if the interface was the same
Add Comment