• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle




  • There are a few options there.

    As someone else mentioned if you’re using IPv6 then it doesn’t matter, you’re already routing internally even if you’re using the public DNS name, no extra work required.

    All the rest are for IPv4.

    If you’re not behind CGNAT some routers/gateways are also smart enough with their routing to recognise when they need to route back to their own external IP and will loop back locally instead of making any hops out to the internet. Again, if this is the case for you then no additional work is required other than perhaps running a traceroute to confirm.

    Another option is to add a local DNS entry for the name you’re using to resolve to a local IP address instead of your public address. The complexity (or even possibility) of this is going to vary considerably with your setup. If you’re running your own local DNS e.g. pihole or similar then it’s trivial. This is how mine is set up.

    If all your clients are going to be on PCs (or devices you have more than the typical manufacturer allowed modicum of control over) then you can do something kind of like the previous, just with all your local hosts files.

    If none of the above are options, then you’ll unfortunately have to fall back on using a local name/address, which means a slightly different client setup for devices you use exclusively in your home versus ones you might use elsewhere.




  • A docstring is a comment that is used to annotate types/methods/classes/whatever and can be parsed by the IDE and used to provide various hints/assistance when writing code. Tooltips, parameter type suggestions, intellisense, etc. for things that aren’t native parts of the language all usually come from or can be supplemented by docstrings.

    The specific format of a docstring varies by language, but many of them prefix meaningful tokens with an @, like @type or @param.

    However, if your project is using GitHub it’s also quite common to mention users in comments by prefixing their username with an @, so several vscode GitHub extensions will make any “@{real username}” in a comment into a link to that user, which will show a small user tooltip when hovered.

    Edit: I appear to have conflated docstrings and docblocks, but then so has the initial post. I guess at some point “docstring” has just taken over to colloquially refer to all of it.






  • As someone in the dev team for a “business app”, we probably know about most or all of them, but they’re just not important enough for anyone in management to prioritize them as part of a sprint. It’s also possible no one has given us reproducible steps to make them happen, so we just straight up don’t know what to fix. Usually the former though.


  • vithigar@lemmy.catoSelfhosted@lemmy.worldHave an old NUC...
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 months ago

    Same setup here, two USB drives dangling from my NUC. One of them is even notably slow for a USB drive. Still not an issue at all for home use. I’d probably need a dozen or more people all watching different things on Jellyfin at the same time before it even approached being a problem.



  • …and installing Steam is the route you want to use to do that?

    If you want to be able to tear down your environment and rebuild it or use something else yourself that’s great. I don’t want that taken away from you.

    It absolutely should not be in the chain of possible effects from trying to install a common piece of desktop software with a broad target audience.



  • If I correctly understand what you are saying

    You did not, but he also picked an example that could be conflated with the 4-spaces issue.

    They’re talking about situations where you might want to align text by a number of spaces that isn’t divisible by your tab size. I’ll expand on their example:

    function test(&obj, &obj2, &a) {
    $obj->doSomething()
    ....->doSomethingElse()
    
    $obj2->doSomething()
    .....->doSomethingElse()
    
    $a->doSomething()
    ..->doSomethingElse()
    }
    

    Again, dots are “visible spaces” in this example, and being used to align chained methods with the length of the object name.


  • My own take as someone internal to that process is that it was a combination of 1 and 5.

    I have no idea how candidates were screened. I do know that even before the “technical challenge” we had a large number of candidates completely faceplant on lowball questions asking what single line snippets of code did.

    I can also say that I absolutely did not expect prod-ready results from the challenge. But I did expect things like not vomiting raw uuids on the screen instead of user readable values when displaying results. Or not having commits from overseas dev contractors which did all the actual work in your git log.