• 2 Posts
  • 74 Comments
Joined 2 years ago
cake
Cake day: June 26th, 2023

help-circle


  • JonCtoProgrammingDon't DRY Your Code Prematurely
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 month ago

    As already mentioned, the blue book by Evic Evans is a good reference, but it’s a ittle dry. Vaughn Vernon has a book, “Implementing Domain-Driven Design” that is a little easier to get into.

    Personally, I found that I only really grokked it when I worked on a project that used event-sourcing a few years back. When you don’t have the crutch of just doing CRUD with a relational database, you’re forced to think about business workflows - and that’s really the key to properly understanding Domain-Driven Design.


  • JonCtoProgrammingDon't DRY Your Code Prematurely
    link
    fedilink
    English
    arrow-up
    60
    ·
    1 month ago

    I’ve always understood DRY to be about not duplicating concepts rather than not duplicating code.

    In the example here, you have separate concepts that happen to use very similar code right now. It’s not repeating yourself as the concepts are not the same. The real key is understanding that, which to be fair, is mentioned in the article.

    IMO, this is where techniques like Domain-Driven Design really shine as they put the business concepts at the forefront of things.





  • JonCtoFactorio@lemmy.worldHow is everyone doing?
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    3 months ago

    Yeah, that’s my dilemma. I wouldn’t say I can support a stready stream of rockets with LDS and blue circuits yet.

    I have a nice ratioed 45 SPM starter build set up, but because it’s all ratioed then if I’m researching yellow science I don’t have a lot spare to go towards rocket production.

    I think I might add a few more resources without going too crazy and then head to Vulcanus. Building a proper smelting setup with foundries seems very cool.

    Will be next week before I get to that point though.


  • JonCtoFactorio@lemmy.worldHow is everyone doing?
    link
    fedilink
    English
    arrow-up
    15
    ·
    3 months ago

    I’ve got all the Nauvis sciences automated as well as getting my first space platform set up. That’s sending a steady stream of space science down now.

    I’ve put in quite a few hours over the first two days, but won’t be able to play for a while now.

    Currently torn between trying to set off for another planet or scale up my Nauvis base to better support things going forward. Former seems more fun. Latter seems more sensible!






  • JonCtoAsk Lemmy@lemmy.worldTo Americans: How far apart is everything in the US?
    link
    fedilink
    English
    arrow-up
    123
    arrow-down
    1
    ·
    4 months ago

    It’s not necessarily how far things are, it’s that you need a car to get to places in a sensible way.

    I’m a fellow Brit, but have stayed in suburban US enough to have experienced how different it is. You might have a supermarket a couple of miles away, but if you want to attempt to walk there, you’ll often be going well out of your way trying to find safe crossing points or even roads with paved sidewalks.

    Train stations are mostly used for cargo in most US cities. If you don’t have a car, you’re pretty much screwed.

    Some cities are different. NYC being the obvious one. You can get about there by public transport pretty easily in most places there. San Francisco is another city that is more doable without a car, but more difficult than NYC.

    I stayed near Orlando not too long ago and there it’s just endless surburban housing with shops and malls dotted about mostly along the sides of main roads. You definitely need a car there.




  • I was unsure about this as I read the start of the article. The territories system allays most of my concerns though. It basically puts the onus on you to go and pro-actively defeat the worm that owns the territory before expanding into it.

    If it had been the case where the worms can come and attack you wherever you are, I think that would have been a nightmare. Glad there seems to be a reasonable balance.