Better HN
topnewbestaskshowjobs
Log inSign up

franciscop

12,656 karma · joined Aug 27, 2014 (12y ago) · 3,156 submissions

I love Javascript and Open Source. Studied Industrial Engineering but now working and living in Tokyo.

https://francisco.io/

https://github.com/franciscop

Submissions

comment 6d ago · link · parent

This is one of the first things I learned in programming. A friend back in University showed me a bit of his code (neither of us were in CS), and I was like why are you returning `this`? Then he showed me this chaining. I only found it a "cool trick" at the moment, who'd told me that I'd end up loving it the more I learned programming. I've made two of my main libraries, `umbrellajs` and a plumbing one called `swear` (chaining but for promises, some chaining syntax sugar on top of promises basically), based on this. I stopped doing it too much in recent years, but still it's amazing.

comment 1w ago · link · parent

It's free for the citizens, since you'd have to pay the taxes anyway and with this you just choose "where", which is not the same as buying the good locally. I'm going to assume the parent is also NOT living in the prefecture they were born at since they use it actively, so that also fixes the "local" part. Basically both the "buying" and "local" are better for him with this system.

comment 1w ago · link · parent

I've found LLMs will reinvent the wheel in the form of doing manual things when a library already solves it well, and with all the bugs and edge cases that the library was originally created to solve. So you either had a simple enough case where it didn't matter, use a library, or have to iterate with the LLM until you've basically reproduced the original library in your own code.

Disclaimer: not a 3d-specific comment though, more of my general experience.

comment 2w ago · link · parent

Hey I'm from Valencia! This is pretty nice render of the city, thanks for sharing. I liked the mini game as well. Would've loved to see some other angles of some places though!

comment 3w ago · link · parent

Those are not incompatible though? I'm from Spain and it's a great place to retire.

comment 1mo ago · link · parent

I'm not a Photoshop user, but I was a GIMP user since my Linux years, and recently I've vibe-coded my own alternative. Why?

Easy, I wanted a middle-ground thing. Gimp, especially in Mac, is riddled with bugs, and it's a very heavy tool. The default Apple preview thing is okay for a single rotation or overlaying text, but not for other simple transformations. I wanted something in the middle.

I'm browsing my photo library, see a crooked image, quick uncrook it with a couple of clicks. I'm def not a "pro", so I don't care about 8k x 8k images or similar. Gimp is too heavy for this workflow, and the default mac app too light. I also prefer it to be offline, so I coded my own alternative.

I only got like 10~20% there few years ago coding by hand, even though I spent something like 1.5~2 weeks on it. I basically built the automated organization and visualization part (datetime extraction, adding tags, removing duplicates, thumbnails, etc), but none of the transformation tools. Now, thanks to LLMs, I've been able to build most of the things I wanted and meaningfully more in a couple of days, _inluding_ processing and editing videos, as well as these for images: perspective cropping, normal cropping, contrast, saturation, resizing, format conversion, etc:

https://x.com/francisco_io/status/2109555827304489202

comment 1mo ago · link · parent

I've been very lucky that I love both sides, both the "programming" part and the "making things" part. Even then, it's been quite brutal coming to terms that the programming side of things is a chapter of my life that is basically over, at least professionally.

I'm trying to reinvent myself now and learn the other sides of the projects; how to monetize, how to promote my projects, how to "finish them", etc. I understand that's also changing radically since many people are trying the same thing, and with LLMs the market is changing in unpredictable ways, but that's also exciting! I can get so many more things done now that before I just didn't have the time or focus to finish.

comment 1mo ago · link · parent

Thanks! Really hoping to see this working, I already support Functions thanks to this, would love to support Edge Functions as well through Fetchable :)

comment 1mo ago · link · parent

That's so funny and ironic, I missed that little detail! Hey, this might be a way for adding internal pressure if he's the only one asking for it.

comment 1mo ago · link · parent

If someone in Netlify is listening, could you please add support for Fetchable[1] in Netlify Edge Functions? I opened a ticket 1 week ago but it has gone unanswered[2].

The idea behind Fetchable is to have a (semi) standard across runtimes and environments to be able to do this:

    export default {
      async fetch(req: Request): Promise<Response> {
        return new Response(`Hello, ${req.headers.get("User-Agent")}!`)
      }
    }
Even Node.js, who are traditionally the laggards in these things, are already working on it and implementing it. This would be very useful for library writers like me to be able to standardize code across envrionments. I'm re-writing npm's `server` (currently WIP here [3]) and I have some ugly workarounds ONLY for Netlify Edge Functions.

[1] https://fetchable.org/ [2] https://answers.netlify.com/t/support-fetch-for-netlify-edge... [3] https://server-js.com/

comment 1mo ago · link · parent

That is true, and I HAVE personally changed my opinion on Tesla, but Electrek IS about moving from Fossil Fuels to Electric vehicles. I guess I expected them to focus on the tech side of things and not on the politics side of it a bit more, when I read a technical magazine is mainly for the tech, not for the US political fight of the day.

comment 1mo ago · link · parent

I was going to comment exactly the same. They used to be all about Tesla, and now they're basically all against Tesla. It's very shocking to see this turn of the editorial approach for a company that did change the full industry. It is true and well known that hate DOES bring more eyeballs than reporting the good news though, and this seems to be a well known bias against Tesla.

13.

GeoJev, ask questions about the world and get its heatmaps(geojev.vercel.app ↗)

1 points · by franciscop · 2mo ago · discuss

comment 2mo ago · link · parent

Sorry but no, that's crazy, I grew up in Spain and free college is definitely a national pride, by both the left and the right. It's the same in most of Europe.

comment 2mo ago · link · parent

No, that'd only be true the judgement was the full work. If the judgement was 33% of the work and the rest was just old plain e.g. typing, that is now fully automated and instantaneous, then you automate 2/3 of the work, getting 3x in productivity.

comment 2mo ago · link · parent

Agreed; I mentioned Elon because the post made the reference quite explicit by saying "trillionaires", probably given the context Bezos or Gates would've been better examples though.

comment 2mo ago · link · parent

> "Over the years it has been clear that we in the “open source” camp (as opposed to the “free software” camp) were wrong all along. We won the debate, and gained little for users or developers. All that our efforts did was to make it easier for big corporations build things more cheaply and for billionaires to become trillionaires."

I hate that some people like to put us all in the same bag. Please don't include me. I don't really care if either my neighbor or Elon Musk used my open source code. I publish it as such because it's a present to the world at large that I can do, and I believe everyone will benefit with my code being MIT.

You're free to have different ideals, but it's silly to claim that my ideals are wrong and that finally "you" realized that my ideals are wrong. I don't even want to have a culture wars, just don't include me in yours please.

comment 2mo ago · link · parent

It really depends on the codebase. I remember ~10 years ago trying to learn about some of the big codebases that existed and what struke me was the verbosity. I don't remember if it was a PHP framework or a big JS library, but it was like 20+ lines of comment/explanation for each line of code. I was trying to follow the code flow and it was basically impossible, you could fit like 2-5 lines of actual code per screen.

comment 2mo ago · link · parent

Within Spain it has virtually dropped to zero among my friends since transfering money is trivial now:

- Bizum for national transfers, you just need someone's number (which you usually have through WhatsApp) representing 90% of instant payments

- SEPA payments also make bank transfers free and trivial for your European friends

comment 3mo ago · link · parent

I think the point is the opposite, I also expected a lot more damage from a bomb every hour

comment 3mo ago · link · parent

Yes, I've dealt with streams a lot and I've seen the pain. I'd say it's the 2nd biggest "compat breaking" of Node/JS after the require vs esm, but while the require vs esm is mostly gone (we all use esm nowadays, except for aham the default npm) the stream types I expect will last for a long while since that's not so "high" in the productivity list for most. Also, that's actually one of the main pains I have with Node NOT supporting Fetchable, the fact that the Body is not a Readable.

When we used to code by hand, Bun used to have an amazing list of articles on how to convert from almost any kind of streamable to almost any other type. I used it a lot, and that was when I started liking Bun so much.

comment 3mo ago · link · parent

I saw the `require('gulp')` and the memories def came back. That's def how we used to do code ~10 years ago. I still don't like the multi-threaded PER PROJECT too much, I prefer having 2 projects and switching context window, I find the current tools (at least the ones I know) are a bit underwhelming for multi-threading. But I'm also trying to upgrade my knowledge.

A good way I've found, since I do a lot of OSS and have my own libraries, when I find a bug in one of those libraries I can work on the same project on the main window while fixing the library on another window. I normally need to tell the main one "let's skip this for now, I'm fixing the library" meanwhile or similarly.

comment 3mo ago · link · parent

Node.js is virtually the only platform not supporting the Fetchable convention:

https://github.com/nodejs/node/issues/63096

https://fetchable.org/

comment 3mo ago · link · parent

Bun has been nothing but amazing wins for me, and I really like what it enabled me to do. Two examples:

- I have a couple of projects that handle images. I was including Sharp, but since these are side projects in a small VM, often a redeploy that recompiled Sharp just crashed the full VM (out of memory). Bun includes Bun.Image[1] natively, which is built around Sharp's API, so swapping Sharp out was very easy, and now deploys are a breeze (and swapping it in would be just as easy).

- Bun's JSX support is a godsend. I've replaced almost all my side projects that were backend rendered from Pug, Handlebars, and other various templates I used to have to just pure JSX. Heck, this made it trivial to make a side projects where the Favicon was a dynamic SVG [2]

[1] https://bun.com/docs/runtime/image

[2] https://stocksreader.com/portfolio?%5Egspc=10&amzn=10&msft=1...

comment 3mo ago · link · parent

> "and I do still use the google built in 'camera' app, so I'm kind of using google photos while I take pictures if that makes sense."

I found it quite inconvenient; you'd try to open the photos app from the photos button on the camera but it didn't work for me. Did you find a way to make the integration decent?

comment 3mo ago · link · parent

Sorry, please correct me if I'm wrong but with this follow up he's not contradicting the quote I put, but saying that despite of tha, the science is valid? Which means the bits I quoted are still stated as a matter of fact WITHOUT attacking the science of taxonomy itself. So he's still saying that using Latin in science was "backwards and goofy".

comment 3mo ago · link · parent

> "at the time, he was probably mostly thinking of “white European cultures”, and while we can acknowledge how backwards and fucking goofy this is now, we can still admit that Linnaeus’ ideology was simply flawed like his time and NOT throw out the baby with the proverbial bath water"

In the 18th century someone living in Europe making science books would definitely be using Latin, maybe French if you were a modernist, as that was the language of science publication and communication. I don't see how this is either backwards or goofy?

It's similar to use English on an internet blog post nowadays (as the author does), since there's many more Chinese or Spanish native speakers than English, but English IS the language of international communication.

28.

The age of token efficiency, the age of libraries(golemui.com ↗)

3 points · by franciscop · 3mo ago · discuss

12345
106