• 0 Posts
  • 16 Comments
Joined 11 months ago
cake
Cake day: August 11th, 2023

help-circle




  • That is totally a non-trivial problem, which requires a lot more conception before it can be solved.

    Most candidates don’t realize that. And when I say they split by single space I mean split(' '). Not even split(/\s+/).

    Does “don’t” consist of one or two words? Should “www.google.com” be split into three parts? Etc.

    Yes, asking those questions is definitely what you should be doing when tackling a problem like this.

    If I got that feature request in a ticket, I’d send it back to conception.

    If I got it, I’d work together with the product team to figure out what we want and what’s best for the users.

    If you asked me this question in an interview, I’d ask if you wanted a programmer, a requirements analysis, or a linguist and why you invite people for a job interview if you don’t even know what role you are hiring for.

    That would be useful too. Personality, attitude, and ability to work with others in a team are also factors we look at, so your answer would tell me to look elsewhere.

    But to answer that question, I’m definitely not looking for someone who just executes on very clear requirements, that’s a junior dev. It’s what you do when faced with ambiguity that matters. I don’t need the human chatGPT.

    Also, I’m not looking for someone perfectly solving that problem, because it doesn’t even have a single clear solution. It’s the process of arriving to a solution that matters. What questions do you ask? Which edge cases did you consider and which ones did you miss? How do you iterate on your solution and debug issues you run into on the way? And so on


  • I always feel bad when I try out a new coding problem for interviews because I feel I’m going to offend candidates with such an easy problem (I interview mostly for senior positions). And I’m always shocked by how few are able to solve them. The current problem I use requires splitting a text into words as a first step. I show them the text, it’s the entire text of a book, not just some simple sentence. I don’t think I’ve had a single candidate do that correctly yet (most just split by a single space character even though they’ve seen it’s a whole book with newlines, punctuation, quotes, parentheses, etc).




  • I know it is possible to build solid houses out of wood. The ones I’m talking about would 100% not withstand blizzards or tornadoes.

    Like most in my native country, I grew up in a building made entirely of solid reinforced concrete slabs, including most interior walls. I could not hear my upstairs or downstairs neighbors and when I saw people punching holes in the walls in American movies I thought it’s just an exaggeration, not something that can actually happen. Wooden houses were culturally associated with poor rural people who couldn’t afford living in a nice solid apartment. That culture persists today, and even in isolated villages new homes are built with concrete structures and brick walls.

    When I bought a piece of land and was looking at options for new houses, I found a company making very solid wooden homes (still a lot more solid than the average Bay Area home) for reasonable prices and both my and my wife’s families were outraged at the idea of building a house out of wood.

    Just some random background to why I’d use the word “flimsy” for wooden struts sandwiched between drywall sheets.







  • The stuff around us is made out of molecules. Most molecules are made out of more than one atom. Oxygen, the gas, is made out of oxygen molecules. An oxygen molecule is made out of two oxygen atoms. So O2. When you hear “pure oxygen”, it’s about the substance oxygen (O2), as in pure from other găsesc, not the element oxygen (O).

    Now you can also have O or O3 molecules, but those have an electric charge (aka ions), so they’re unstable and prone to bond with other elements or to break apart. A gas made out of monoatomic oxygen would be extremely reactive.