🚀 Seen my posts and want more? Dive deep into the issues with Big Tech at Escape Big Tech!

💡 Need FOSS-focused software solutions? Reach out on Matrix at @dannym:balooga.xyz!

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

help-circle



  • Those tests are worth more than four years of college?

    Yes a test to figure out if you can perform your job is significantly more valuable than a collage degree, this doesn’t mean that college has no value, mind you, it just means that knowing how to do the job and knowing that you fit in with the company culture is vastly more important.

    Go get a bunch of I.T. certifications. Get your CompTIA A+, Network+, Security+ Get a Microsoft MCP or MCSA

    Those certifications are useless, they look good on your resume because managers love showcasing their staff’s “certifications”, as many companies that don’t understand IT put value on the certifications more than anything else, but they don’t actually provide you any value in of themselves. Sure it might be interesting how many network switches you can daisy chain according to the standards, but it has no real value most of the time, if that’s information you need in your job it’s something you can just look up, HOWEVER, asking you random questions that pertain to the job during the interview IS a good way to understand if you’re a good candidate, and, often, the actual response doesn’t matter as much as your reasoning for getting to that response.

    When an interviewer at google asks you how many pennys it would take to make a structure as tall as the empire state building, it doesn’t matter what the answer is, truly, even if you got the exact number of pennys, just saying the number would mean you don’t pass the interview, your answer would be worth less than an answer that gets it wrong by 75% but is well reasoned, what they care about is how you come up to the conclusion that you come up with, the solution is useless.








  • Definitely, tho if you store it as a u32 that is fixed magically. Because 1.2.3.4 and 1.02.003.04 both map to the same number.

    What I mean by storing it as a u32 is to convert it to a number, similar to how the IP gets sent over the wire, so for v4:

    octet[3] | octet[2] << 8 | octet[1] << 16 | octet[0] << 24

    or in more human terms:

    (fourth octet) + (third octet * 256) + (second octet * 256^2) + (first octet * 256^3)
    

  • Danny M@lemmy.escapebigtech.infotoProgrammer Humor@programming.devGoOn
    link
    fedilink
    arrow-up
    85
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Please don’t. Use regex to find something that looks like an IP then build a real parser. This is madness, its’s extremely hard to read and a mistake is almost impossible to spot. Not to mention that it’s slow.

    Just parse [0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} using regex (for v4) and then have some code check that all the octets are valid (and store the IP as a u32).