News for hackers. Stuff that matters.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by koolba on Friday November 05, 2021 @10:12AM (#29119514)
Why an app rather than a static site deployed to something free like GitHub pages?

Could even have the data in a repo to accept pull requests for new names.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by hamaluik on Friday November 05, 2021 @10:23AM (#29119686)
Ultimately because I wanted an app.

* I make enough web-based things for my job, and I enjoy developing in Flutter / Dart (what this was built in).

* I’m never realistically going to be looking through names on a desktop; I use the app when I have a few minutes to kill in line or something where I can pull out my phone, decide on a few names, and then go back to what I was doing. I could build it as an offline web-app that gets saved to my device but then why not just build an app in the first place?

* I like using SQL for retrieving data, and I don’t want to have to jump through hoops to do so.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by throwawaygh on Friday November 05, 2021 @10:40AM (#29119934)
Projects like this one are excellent for scratching an itch or learning a new platform. Low-pressure / "oh well" failure mode, fairly constrained scope, nothing too fancy, but enough of a "product" with utility to push you through the boring parts to the end.

It's also interesting how this question shifted over time! It used to be that people would ask why you made a Perl CGI or PHP app when you could've just made a desktop app.

ps: congrats on the new baby!

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by hamaluik on Friday November 05, 2021 @12:00PM (#29121126)
Exactly! The development actually languished for many months and I almost scrapped it. Only in the past week or two did I decide to revive it when I once again felt the need for it (9 months go by fast).

Thanks!

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by cossatot on Friday November 05, 2021 @01:11PM (#29122076)
9 months go by fast

For the father at least...

Congrats!

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by PascalW on Friday November 05, 2021 @05:38PM (#29124990)
Might be nice to deploy the Flutter app on the web too. Flutter web support is pretty decent now. SQLite on the web is probably going to be tricky though (sqflite doesn't support it).
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Tempest1981 on Friday November 05, 2021 @10:55AM (#29120156)
> I use the app when I have a few minutes to kill in line

You could track whether specific locations, or time of day/week, result in liking certain types of names. Version 2.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by LeifCarrotson on Friday November 05, 2021 @11:13AM (#29120404)
It's a baby name generator, there's no need to track everything!
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by heyoni on Saturday November 06, 2021 @04:07PM (#29133401)
You're not thinking of the potential here. Just imagine a baby name generator that tracks its users preferences and automatically registers domains and social media accounts which it then tries to sell you.

...it sounds horrific, I'm glad OP went with this model.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by wohfab on Friday November 05, 2021 @11:17AM (#29120470)
They could also stand with their decision, to stick it to all the user apps, that track you to oblivion ;)
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Tempest1981 on Friday November 05, 2021 @08:22PM (#29126184)
It is possible to collect information, use it locally, and not upload it to a server.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by drsnow on Friday November 05, 2021 @11:06PM (#29127143)
of what relevance would such data be to the user who generated it?
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by twicetwice on Saturday November 06, 2021 @12:56AM (#29127645)
curiosity!
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by zorked on Friday November 05, 2021 @10:31AM (#29119801)
"Why isn't this a text file so that everybody can simply use their Unix shells to shuf -n 1 /usr/share/dict/baby-names".
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by boogies on Friday November 05, 2021 @12:14PM (#29121320)
Because you can already `shuf -n 1 /usr/share/rig/fnames.idx` (or mnames for male ones) or `vis-menu /usr/share/rig/fnames.idx >> momlikednames.list`, and `cat {mom,dad}likednames.list | sort | uniq -d` to find names both parents like.

`shuf /usr/share/dict/words` was how I picked my HN username.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by ape4 on Friday November 05, 2021 @03:03PM (#29123461)
Why not... `head -c8 /dev/random | base64`
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by jokethrowaway on Saturday November 06, 2021 @07:25AM (#29129285)
That's exactly what we did, albeit the final list was filtered by grandma as well, non digitally
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Someone on Friday November 05, 2021 @03:36PM (#29123829)
Because everybody knows how trivial it is to curl/wget the list from https://www.ssa.gov/oact/babynames/limits.html, unzip it, etc.

The list is biased. Not only does it only have U.S. births, but also only those where the individual has a Social Security Number. I wonder how many the latter rules out.

For privacy, it also drops names that are rare, with fewer than 5 births in a given year.

(App is open source, so it’s easy to discover that’s where the names come from. See https://github.com/hamaluik/nomdebebe/blob/main/app/NAMES.md)

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by stickfigure on Saturday November 06, 2021 @02:29AM (#29127983)
You joke, but I see this as "why is this implemented as software that potentially violates the security of my device?"

I trust the browser sandbox a million times more than I trust the phone app sandbox.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by agomez314 on Friday November 05, 2021 @11:31AM (#29120705)
this is hilarious
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by aptxkid on Friday November 05, 2021 @10:20AM (#29119649)
People have different skill sets. I bet there are engineers out there feeling more comfortable building a mobile app than a webapp.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by giarc on Friday November 05, 2021 @10:18AM (#29119617)
A static site would remove many of the features that OP built (favourites, matching with partner, sorting).
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by zamadatix on Friday November 05, 2021 @10:27AM (#29119732)
"Static site" is a bit of a misnomer, it refers to the webserver's view not the clients view. The client can still dynamically request chunks of information, favorite things, sorts things, save things between sessions, and form dynamic connections (though you'd need to point to a 3rd party signaling server for the WebRTC connection to come up).

I.e. it's not the web page that is static rather the files to host the web page are static vs say being a php site dynamically generating responses based on user/session/request information.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Drew_ on Friday November 05, 2021 @11:02AM (#29120264)
You could do everything but collaboration using a static site and localStorage though Apple's support of localStorage is iffy now.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by dymk on Friday November 05, 2021 @11:05AM (#29120303)
You just gave two reasons why it wouldn’t work as a static site
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Drew_ on Friday November 05, 2021 @11:16AM (#29120451)
That is indeed what I said
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by mmun on Friday November 05, 2021 @10:20AM (#29119643)
I assume that the app keeps track of names that you've already rejected.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by thatwasunusual on Friday November 05, 2021 @10:15AM (#29119564)
This. Please don't create apps that shouldn't be apps.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by williamdclt on Friday November 05, 2021 @10:21AM (#29119657)
Please do whatever the hell you want. There's a difference between asking a question, making a suggestion and shoving ideals down somebody's throat.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by thatwasunusual on Saturday November 06, 2021 @03:42PM (#29133211)
> Please do whatever the hell you want.

Indeed. Especially if you want to piss off potensial users/customers.

> There's a difference between asking a question, making a suggestion and shoving ideals down somebody's throat.

Unfortunately, the "ideal" for many is to have an app for their - well - app, or service, whatever it might be. Usually it's just a perfectly functioning responsive web service that is turned to a native app instead of just going for a hybrid app (at least to start with).

In this specific case, there's is _absolutely no reason_ it should be provided as an app, at least not a native one.

Because:

The user already has everything installed on his phone to use the service; a browser.

To me, _as a (potential) user_, having to install this app would have been showing something down my throat. To solve that problem, the developer could have created it as a responsive web application first, and maybe made an hybrid app, and then decided if it is worthwhile creating a native app.

Why the desparate need to create native apps and have to maintain two totally different projects when there's no need to?

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by williamdclt on Saturday November 06, 2021 @06:06PM (#29134245)
All your arguments hold if this was something the developper was trying to grow (commercially or not). Given this is clearly just an app made for their own use and scratch an itch... Taking about pleasing potential users/customers and how you'd have to be forced to install this app is more or less off-topic.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by thatwasunusual on Sunday November 07, 2021 @10:21AM (#29140155)
> Taking about pleasing potential users/customers and how you'd have to be forced to install this app is more or less off-topic.

Then why make an app out of something that would work just as well with something I have already installed on my phone?

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by heyoni on Saturday November 06, 2021 @04:12PM (#29133428)
Well, it was done in flutter so a web app might be something easy to do from that.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by ARandomerDude on Friday November 05, 2021 @10:27AM (#29119737)
But how do you know if it should be an app? It seems like we need a ShouldThisBeAnApp app where you can upload screenshots, descriptions, API diagrams, etc. and allow AI + community input to make the determination.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by thatwasunusual on Saturday November 06, 2021 @03:44PM (#29133220)
> But how do you know if it should be an app?

In this case it's very easy: if all the functionality can be run in the browser, which already is an app installed on my computer, don't make it an app. At least not a native one.

Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by GuardianCaveman on Friday November 05, 2021 @10:34AM (#29119842)
No more apps! Only websites!
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by necovek on Friday November 05, 2021 @10:50AM (#29120091)
There should be a ShouldThisBeAnApp website, and a ShouldThisBeAWebsite app :D
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by fileeditview on Friday November 05, 2021 @10:58AM (#29120204)
Make it a ShouldThisBeAMobileAppOrWebAppOrNativeApp service that has a native implementation on all these platforms.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by kingcharles on Friday November 05, 2021 @11:53AM (#29121040)
What if you don't want an app and you just want to consume an API? I'm thinking a better name would be ShouldThisBeAMobileAppOrWebAppOrNativeAppOrAWebService.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by Tempest1981 on Friday November 05, 2021 @11:02AM (#29120262)
We'll see how this comment ages, in the VR meta future
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by pjbeam on Friday November 05, 2021 @01:12PM (#29122084)
Don't use apps you think shouldn't be apps? Making normative statements about something OP did for fun and shared with us is a bit odd.
Re:Show HN: My wife is pregnant; naturally I made a baby-nam... by thatwasunusual on Saturday November 06, 2021 @04:02PM (#29133364)
> Don't use apps you think shouldn't be apps?

I said: don't _create_ apps that shouldn't be apps.