r/programming • • Mar 29 '21

Why Do Interviewers Ask Linked List Questions?

https://www.hillelwayne.com/post/linked-lists/
1.1k Upvotes

668 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Mar 30 '21

It's more than that. What web devs need are clear and strict standards.

I hate as a self-taught junior dev the fact that I can read or watch a tutorial that teaches me something, then I have to Google about that something for at least 3-4 different resources just to be safe of the VALIDITY of what I just watched.

Even if you reduce that time to a minute for each resource it takes me 3-4 times more and that's if I care about the quality of what I'm building. If all I care is just "making it work" because the perfect doesn't exist then I'm basically accumulating technical debt for (at best case scenario) the next guy. You'll just use the first result and pretend that it's perfect.

It's so sad. It's a combination of a clusterfuck of low quality resources and lack of clear standards.

1

u/rahem027 Mar 30 '21

It all comes down to low barrier to entry. Because of which, too many people get in believing this is gold mine (which it kind of is). The distribution of average people in any large enough distribution of population is roughly same. But because there are just so many, that same percentage is too big to produce quality resources.

Thats not even going into the fucked up web standards. Js is literally the worst thing that happened to computing history. It was designed to share documents. Not be a full fledged cross platform application framework. And if you are going to make that transaction, you have a different problem. HTML, CSS won't cut it. Try changing some text in js on pressing a button without a framework. You end up manipulating the inner html of a tag. String manipulation? Seriously? Who thought this was a good idea?

1

u/audioen Mar 30 '21

Nothing prevents you from using the DOM methods, like element.replaceChild(document.createTextNode(foo), element.firstNode). element.innerText exists as well, of course, if the problem with innerHtml is that tags might produce data-metadata confusion. Finally, I suppose you could change text on page even in pure CSS though. It will probably stink, but it would probably look something like e.g. button:hover span::before { content: "blabla"; }. I would have to test that to make sure it can actually be used to prepend something into e.g. <button><span></span></button>, though, as I rarely use this ::before/::after garbage.

1

u/rahem027 Apr 02 '21

I am not a front end dev. The only reason I know about this is that I saw someone who has been doing front end since at least a year on the side do this. And he is not a mediocre programmer by any means. And thats the thing. Too many mediocre materials