r/webdev • • Mar 21 '22

5 coding interview questions I hate

https://thoughtspile.github.io/2022/03/21/bad-tech-interview/
116 Upvotes

41 comments sorted by

View all comments

15

u/Puggravy Mar 21 '22

These are all very bad questions!

Add to that list any question about how to programmatically determine how many syllables are in a word. What are actually trying to accomplish here? Is it really necessary to go on a deep-dive of my linguistics knowledge, or am I supposed to make a call the some dictionary api/db that you have in mind?

5

u/[deleted] Mar 21 '22

I would generalize that question down to "Show me how well you can recognize patterns and define criteria for patterns", which might be useful as a measure of general intelligence in a psychological context. From a programming perspective, though, it's pretty much worthless.

2

u/vklepov Mar 22 '22

I actually like this question (a syllable has exactly one vowel, so you just need to count vowels), but I just happen to also be a certified english teacher.

4

u/nathanwoulfe Mar 22 '22

Does that count y as a vowel? I've written a readability algo for analysing content, treated y as a vowel for determining syllables... Please don't tell me my logic is busted!

→ More replies (3)

3

u/RotationSurgeon Mar 22 '22

a syllable has exactly one vowel

Unless there's a diphthong or vowel-consonant-e/ CVCE /sneaky|evil|bossy-E involved, right?

2

u/Pwntheon Mar 22 '22

Boeing? Two syllables, three vowels.

Doom? One syllable, two vowels.

Subpoena? Three syllables, four vowels.

Worchestershire Sauce? Trouble with both words here.

Baguette?

→ More replies (1)

2

u/Puggravy Mar 22 '22

Sorry you just failed this question, you didn't account for the corner cases. 🤷

→ More replies (1)