• 14 Posts
  • 483 Comments
Joined 5 years ago
cake
Cake day: May 31st, 2020

help-circle




  • First option for small codebases. Second option when you know your codebase will grow large enough to break things apart into multiple packages.

    The thing is, you typically need dependencies for de-/serialization. You only want those dependencies in the parts of the codebase that actually do the de-/serializing. And your model will likely be included in pretty much everything in your codebase, so the de-/serializing code should not be in there.
    Well, unless your programming language of choice supports feature flags with which the de-/serializing code + dependencies can be excluded from compilation, then you can think about putting it into the model package behind a feature flag.


  • I still don’t get why the backslash is on keyboards to begin with. I don’t think I’ve ever seen anyone write a slash backward with a pen. And even if folks do, you could’ve had only one slash anyways. Like, people are going to understand what it means, whether it’s / or \.

    I guess, it not being used for much else, does at least make it useful for escaping stuff and for Windows to use as path separator.


  • we would like to officially announce that this will be the [last] version labeled Alpha. We have already updated the versioning scheme (this version being 0.27.0) and we will progressively stop using the Alpha label altogether up to the next release, which will be Release 28.

    Excellent. Whenever I told people about 0 A.D., I felt like I should add that it’s not actually an Alpha, especially with their webpage saying in various places basically “no, don’t look at us yet, we’re not ready yet”.

    If they continue adding content, I do think that’s awesome, but what’s there is already plenty solid.



  • I need something without understandable lyrics (unless I’ve listened to that song many times before) and something that pumps me up, but doesn’t cause headaches. So, 8-bit music and cheesy / ‘epic’ cinematic scores work well.

    Well, unless it’s 4 o’clock in the morning. Then nothing beats classical music. I’m never as productive as I am at 4 AM, listening to Beethoven and friends.




  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlErrors
    link
    fedilink
    English
    arrow-up
    4
    ·
    24 days ago

    I was kind of thinking that yesterday when looking at a Rust library. Rust is competent with line numbers, so you don’t really have an incentive for splitting files from that angle, but sometimes, folks just seem to keep adding to their files ad infinitum.

    Well, specifically that library has a few files with more than 1k lines. And I hope this one’s the largest at 4k lines: https://docs.rs/git2/latest/src/git2/repo.rs.html

    What also needs to be said, is that this library is actually maintained by the Rust language team. Really makes me want to open an issue to tell them that Rust has a pretty cool module system. 🙃



  • Ephera@lemmy.mltoProgrammer Humor@lemmy.mlProject Lifecycle
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    25 days ago

    Man, I’m currently in a project which started out with 2 major goals. Pretty early on, we got told that one of the goals is practically impossible, so we decided to ignore that. And we realized the other goal needs to be simplified significantly to be achievable in the slightest, although we still weren’t sure, if it violates the laws of physics.

    Now we’re a year into development, we’ve only figured out that it might be physically possible in certain situations. And yesterday, we talked to a guy with domain knowledge, who told us like ten different bigger challenges we’d still have to solve.





  • Certainly some food for thought, but I feel like people saying indies will save us are saying that as consumers and a lot more selfishly. AAA is struggling to deliver interesting games and indies are killing it, so you play indie titles instead. Whether those indie titles are actually produced organically and whatnot is kind of secondary for that purpose. The mass layoffs in AAA are bad, but in the New York Times article, for example, they’re mainly seen as indicative of the business model faltering, which should naturally give more room for indies. But yeah, that these studios are still horrendously profitable kind of shows that this may not be true in the end.