Better HN
topnewbestaskshowjobs
Log inSign up

flaviocopes

620 karma · joined Jan 19, 2017 (9y ago) · 135 submissions

flaviocopes.com
Submissions

comment 2y ago · link · parent

Dropped it a couple days ago to revisit it as a blog post, good timing I guess. Restored https://ahastack.dev/

comment 2y ago · link · parent

htmx = client-server networking Alpine = JS sprinkles

Alpine is for example, I want to show/hide a menu on mobile. I want to upload files via drag and drop. I want to have a bin icon over an image when I hover with mouse to delete it. I want to double click an input field to edit it. I want to close an overlay when I click outside of it, or when I press “esc”.

Also modals, although you can do them in htmx very nicely too, so that’s borderline.

Anything that involves network, htmx. Things that are just frontend, Alpine suits better.

_hyperscript is basically the Alpine equivalent.

It's like the difference between Turbo and Stimulus in the Rails world

comment 2y ago · link · parent

Check out

API Rules https://pocketbase.io/docs/api-rules-and-filters/#api-rules

Hooks https://pocketbase.io/docs/js-overview/

Admin panel has backups for data, and import/export of collections schema

comment 2y ago · link · parent

Been enjoying using PocketBase with Astro + htmx + Alpine

5.

Show HN: The Valley of Code(thevalleyofcode.com ↗)

9 points · by flaviocopes · 3y ago · 2 comments

comment 5y ago · link · parent

Not sure about the Jupyter-specific issues but macOS comes with Python 2 installed, so you have to install Python separately and use the `python3` binary, or alias `python` to the `python3` binary.

Then remember to run pip using `python3 -m pip <command>` and use virtual environments (venv)

I stumbled on this a couple weeks ago and documented the process here https://flaviocopes.com/python-installation-macos/

I found the same problem with Ruby (old version preinstalled on macOS)

comment 6y ago · link · parent

7 years ago Bruce Springsteen in Milan used this song as the intro theme for his concert and it was the best thing ever. Still get shivers looking at the video

https://youtu.be/Qm3lYTtJ8gs

8.

Software Is a Superpower(flaviocopes.com ↗)

28 points · by flaviocopes · 6y ago · 13 comments

9.

New pricing plans for Zeit Now(zeit.co ↗)

2 points · by flaviocopes · 6y ago · discuss

10.

The Developer’s Dilemma(flaviocopes.com ↗)

3 points · by flaviocopes · 6y ago · discuss

11.

On Being a Generalist(flaviocopes.com ↗)

209 points · by flaviocopes · 6y ago · 132 comments

12.

The JavaScript Beginner's Handbook (2020 Edition)(freecodecamp.org ↗)

3 points · by flaviocopes · 6y ago · 1 comment

comment 6y ago · link · parent

That looks like a good explanation for all that monitoring borderline stalking going on in that specific room! I never thought of it, from now on I'll thank my dog for their service!

14.

SEO lessons learned by writing a blog post every day for two years(flaviocopes.com ↗)

214 points · by flaviocopes · 6y ago · 66 comments

15.

Write what you don't know(flaviocopes.com ↗)

2 points · by flaviocopes · 6y ago · discuss

16.

Programming Language C Awarded Programming Language of the Year 2019(tiobe.com ↗)

2 points · by flaviocopes · 6y ago · discuss

comment 6y ago · link · parent

Great to hear! I'd say the biggest difference with WP is that you don't worry about plugins, updates, server, etc. Maybe 50% of the posts I write are included in an ebook, I try to write them as a series, so they have a double purpose. One to help if you're searching specific information, the other more organized in an ebook where I explain something from the beginning with a clear structure. Making a series that ends up in an ebook also helps with ideas of what to write about, because I define all the topics beforehand. The other 50% of the posts are individual pieces, maybe an explanation of a problem or task solved while coding, or just a description of something new I'm learning :)

18.

How to start a blog using Hugo(flaviocopes.com ↗)

182 points · by flaviocopes · 6y ago · 107 comments

19.

How to make a page editable in the browser(flaviocopes.com ↗)

2 points · by flaviocopes · 6y ago · discuss

comment 7y ago · link · parent

There are tools built for this use case. One example is https://forestry.io
12345