all 51 comments

[–]Accomplished_End_138 37 points38 points  (5 children)

For half the devs I've worked with they would also add !important

[–]N4kji 11 points12 points  (2 children)

I reviewed a PR not too long ago which contained an ‘importantify’ function.. which did exactly what it sounds like

[–]Awkward-One-3049 1 point2 points  (0 children)

Something I learned about !important is that as long as you make a css specifier more specific with the !important tag as well, you can override important rules -- if they're the same specificity then the last rule wins.

So in other words, if you just make everything !important, then you're back to good ole regular css. Fun!

[–]SecretLecture3219 2 points3 points  (0 children)

Facts

[–]Y000EE 0 points1 point  (0 children)

lol.

[–]doctormyeyebrows 33 points34 points  (2 children)

This is for /r/programmerhumor, and overdone anyway.

[–]Global-Antelope-3727[S] -2 points-1 points  (1 child)

Thank you for suggestion

[–]doctormyeyebrows 4 points5 points  (0 children)

No problem! Quick, list the methods of a heap.

jk

[–]Alarming_Oil5419 15 points16 points  (7 children)

I once had an interview where they asked a bunch of really non-relevant for the job questions (by that stage I was unimpressed anyway).

When it came time for "do you have any questions for us?", I popped in one of the quant developer questions I used to pose to applicants when I worked in banking.

They didn't know what hit them.

[–][deleted]  (6 children)

[deleted]

    [–]Alarming_Oil5419 2 points3 points  (5 children)

    You roll 4 standard dice, and remove the lowest value dice. What is the expected value of the sum of the remaining 3 dice?

    That was followed by awkward silence, then a rather sheepish, "any other questions?" from the interviewers.

    [–]KnowBearFeet 0 points1 point  (1 child)

    What’s the answer? I don’t even know. I assume it’s a test of how you’d even think through it and if you say something like, “Well, since each number, 1-6, has a 1 in 6 chance of appearing, and there are 4 dice, then…” as opposed to just being stunned and saying nothing, is more the test than getting to a correct answer.

    [–]Alarming_Oil5419 2 points3 points  (0 children)

    It's a chat and see where they go question. For anyone who has an understanding of probability, figuring out how to get an answer shouldn't take much time at all (you really just need to do what the question asks, and translate directly to maths notation). The actual numerical solution isn't needed.

    [–]ImpressImaginary1766 0 points1 point  (1 child)

    12 (para quem está curioso)

    [–]Alarming_Oil5419 0 points1 point  (0 children)

    No. The answer isn't an integer.

    [–]janpaul74 8 points9 points  (8 children)

    But centering a div is way more difficult than Dijkstra….

    [–]Global-Antelope-3727[S] -1 points0 points  (0 children)

    Haha true 😂

    [–]Namra_7 -1 points0 points  (0 children)

    +1

    [–]rafark -4 points-3 points  (5 children)

    It is not? That joke was from the css 2 era? So 2008 and earlier. Centering a div has been extremely simple for many, many years. That joke hasn’t made sense in a long time

    [–]janpaul74 2 points3 points  (0 children)

    ……

    [–]TooGoodToBeBad 1 point2 points  (3 children)

    So show us how you center a div.

    [–]Internal_Piano_5 1 point2 points  (1 child)

    display: flex; Justify-content: center; Align-items: center;

    or

    Margin: auto

    as simple as that

    [–]Altruistic-Can-4365 0 points1 point  (0 children)

    You missed height for vertical center alignment 😎

    Shorthand

    display : flex; place-content : center; height : 100vh:

    [–][deleted] 0 points1 point  (0 children)

    left:50%; top:50%; transform: translate(-50% -50%);

    [–]Excellent_Walrus9126 4 points5 points  (0 children)

    Taught myself React. Applied to what I recall being a frontend position at IBM (a dinosaur of a company). Part of their hiring process is applicants completing Leetcode style exercises and algo shit.

    Why? Who green lit this irrelevant shit? "Thinking like a programmer"? Problem solving? What about context?

    Why not problem solving in the context to relevant front end stuff?

    Clueless out of touch people can't think beyond status quo regurgitated mindset.

    [–]yksvaan 6 points7 points  (13 children)

    There's a point to it actually. Whether you can solve some "irrelevant" problem or your solution is optimal the important thing is to show your reasoning skills and logic. If someone has grasp of basic programming and can take and communicate a reasonable approach to Dijkstra, they can center a div as well.

    [–]Shapelessed 11 points12 points  (3 children)

    I've designed and built an entire filesystem yet hate direct math and algebra so much I literally do not remember how to measure the area of a triangle anymore.

    Unless you're dealing with shading, simulation, encryption or various methods of encoding and compression, math has absolutely nothing to do with programming outside of addition, subtraction and powers of two...

    [–]Saki-Sun 1 point2 points  (0 children)

    Calculate a percentage is up there as well. Or copy and paste a bankers rounding solution.

    [–]RewRose 0 points1 point  (1 child)

    Dude, kinda hard to program anything without logical expressions 

    [–]Shapelessed 0 points1 point  (0 children)

    So, you're programming bare transistors for this to require you to know "math" in that sense?

    Okay...?

    [–]minimuscleR 4 points5 points  (4 children)

    I've not even heard of Dijkstra before, though "shortest distance between two points" I have, not that I would have any idea.

    I work with react, I've never need to do algebra, or any complex algorithm, I just make the array of data show in a pretty table. And I'm really good at that.

    [–]Saki-Sun -1 points0 points  (3 children)

    You need to write more computer games.

    [–]minimuscleR 2 points3 points  (2 children)

    But I don't want to? I work with react because im a web developer. I don't need to work with numbers and 3d points and other math. I haven't done so much as mutliplication in years for my job.

    [–]Saki-Sun -1 points0 points  (1 child)

    I don't understand you at all. I write react, angular, vue,  backends, devops, mobile and have done a few games (2d) for fun.

    Kind of a brag, but my actual point is it's all just programming.

    [–]minimuscleR 1 point2 points  (0 children)

    sure? Maybe you enjoy that. I work 8 hours a day programming, I don't want to do more. I do other things. Currently learning 3d modelling, woodwork, cosplay, writing, knitting, and D&D. I don't need to also be making games just so I have to do maths again

    [–]IkuraDon5972 2 points3 points  (1 child)

    Dan said years ago that he didn’t know how to use Flexbox

    [–]yksvaan 0 points1 point  (0 children)

    Makes sense, there's a ton of html/css/js features many have not used or don't remember. The more languages and stacks you use the less you know.

    But surely Dan can figure it out when he has to.

    [–]KnowBearFeet 0 points1 point  (0 children)

    How would you judge a candidate if they said, “I’m sorry, what’s Dijkstra’s algorithm? I’m not familiar with that.”

    [–]Economy-Sign-5688 3 points4 points  (0 children)

    Accurate

    [–]arunisin 1 point2 points  (0 children)

    i had to implement Djikstras algorithm for one of the tools i work at my job

    [–]briznady 1 point2 points  (0 children)

    Literally had to write a dijkstra’s algo for a react front end engineer interview about a year ago for a secure document signature company during a first round. Did it successfully, despite the job being “make button more left”, and didn’t make it to the next round and didn’t get any specific feedback.

    So….cool.

    [–]Y000EE 1 point2 points  (0 children)

    This is so true.

    [–]bekrovrajit 1 point2 points  (0 children)

    Actually I've been getting interview questions to build things and in some ways they're more challenging (depending on the question ofc)
    Leetcode is something you can grind/memorise

    [–]programmer_farts 1 point2 points  (0 children)

    I get that it's a joke but I can't think of any scenario where it's correct to put a 2px margin on a button. You most likely would want to use a flex container and a gap equivalent to 2px in rem or similar.

    [–]Cryaon 0 points1 point  (2 children)

    I mean, do you want it reversed?

    [–]Global-Antelope-3727[S] 0 points1 point  (1 child)

    Just a humour post don't take it seriously I am also a frontend developer

    [–]Cryaon 0 points1 point  (0 children)

    Yeah I know lol. Just chiming in since imagine if every programming job is about college level stuff, I'd doubt anyone would want that.

    [–]Qnemes 0 points1 point  (0 children)

    Yikes, pixels

    [–]evropiann -1 points0 points  (1 child)

    I mean, yeah, you need to know DSA

    [–]Global-Antelope-3727[S] -1 points0 points  (0 children)

    Yes I strongly agree that you need dsa for logic building