Better HN
topnewbestaskshowjobs
Log inSign up

StreamingCat

9 karma · joined Jul 7, 2023 (3y ago) · 15 submissions

Submissions

1.

Extracting video covers, thumbnails and previews with FFmpeg(tech-couch.com ↗)

1 points · by StreamingCat · 1y ago · discuss

2.

Sharing local websites and files with zrok(tech-couch.com ↗)

3 points · by StreamingCat · 2y ago · discuss

3.

Bash aliases are more than shortcuts(tech-couch.com ↗)

4 points · by StreamingCat · 3y ago · 1 comment

4.

Modern Apt Package Management(tech-couch.com ↗)

1 points · by StreamingCat · 3y ago · discuss

5.

Optimizing SQL Queries with ChatGPT(tech-couch.com ↗)

3 points · by StreamingCat · 3y ago · discuss

6.

Optimizing SQL Queries with ChatGPT(tech-couch.com ↗)

2 points · by StreamingCat · 3y ago · discuss

comment 3y ago · link · parent

Mainly because the vanilla append/prepend functions require that you create an element first, then insert it at the desired position. The ease of use of jQuerys string to html node isnt matched by vanilla js in these functions.

The closest you would get is this: https://developer.mozilla.org/en-US/docs/Web/API/Element/ins... But the jQuery prepend/append functions are still easier to read and shorter to write.

comment 3y ago · link · parent

I think the css vs query selector debate really boils down to personal preference.

Especially in combination with modern frontend frameworks, complex frontend libraries like jQuery can cause all sorts of chaos. I remember it breaking one of my personal projects a while back that was using AngularJS.

9.

You may not need jQuery(tech-couch.com ↗)

17 points · by StreamingCat · 3y ago · 12 comments