HNHacker News
TopNewBestAskShowJobs

alexcosan

15 karma · joined February 7, 2022

submissionscomments
alexcosan··on Ruby vs. Python comes down to the for loop (2021)
On the same note, the implementation of Stuff in Ruby is not very ruby-like. It could have just used `.each` on the `@a_list` (in that case, you just delegate the implementation to `@a_list`, no reason to use a for-loop.
alexcosan··on How Apple names things
This is deviating too much from the original topic, but: 1) Your initial comment just took a bash at the author about being joyful regarding some topic - "what's there to be joyful", which is really a subjective matter; 2) I'll take your point, but I strongly disagree. I would never recommend anyone living by "do not share, you might annoy other people", you will never share anything then. Case in point, you shared your thoughts, I'm pretty sure you didn't care whether someone would be annoyed by your opinion ;) 3) Not sharing a small analysis regarding words and naming just because it may annoy someone it's a huge stretch. It's not even like he's sharing some hot political topic. Someone that gets annoyed at looking at such a simple project may want to take a deep breath and go for a walk. But anyway, that's my view.
alexcosan··on How Apple names things
It's not really up to you to decide what brings joy to the author. You can write a similar essay, who said you couldn't? What point are you trying to make? If it's something you feel strong about, all power to you. This kind of comment is deprived of any real content.
alexcosan··on An Overview Of Upcoming Ruby on Rails 7.1 Features Part 1
I would be curious to understand what frameworks people tend to use on top of nodejs (or even react). I have not found a standard devise-like way of implementing authentication in nodejs. The usual recommendation I come across is to develop all from scratch (encryption, emails, session management), using something like Passport, outsource it and pay to some third-party or use a framework like nextauth which is very opinionated and hard to change basic options. It's not uncommon to see people changing between ORM or SQL builders all the time because it's hard to find one that works greatly - it seems like a common discussion online in node communities.

I love TypeScript and would love to use it more extensively, but whenever I start a project, I quickly feel like I'm wasting so much time to do something that I'd hope a) it'd be very quick, and b) there would be some general agreement in the community on the right approach. It'd be great to compile what libraries to use, so you can very quickly put something together like you'd be able to do with Rails (e.g. devise, sidekiq, actionmailer, ...).

alexcosan··on Tesla calls self-driving technology 'failure,' not fraud
I'm very confident the whole comment by OP is of sarcastic nature
alexcosan··on Just use Postgres for everything
My take is that there's many unnecessary complexities (at least in many cases), where using an old, battle tested, "boring" technology suffice. The graph just seems to be an illustration of that, but it focus on storage (there could be a better graph that focus on the database only, but I guess the message is conveyed)
alexcosan··on Copilot under fire as dev claims it emits 'large chunks of my copyrighted code'
For some reason, you keep presenting arguments as if I have taken any sides. I don't agree with arguments even if I would agree with the end result.

I disagree that comparing Copilot with Pirate Bay is a good argument to make your case (maybe Dall-e is a closer comparison if resulting artwork could contain licensed artwork from the training set). You'd probably have other fronts to use and present a stronger argument.

And let me remind you that I have not argumented on behalf of any side, so I do not think this thread requires arguments against arguments I have never brought forward (it feels a bit more emotional than constructive).

alexcosan··on Copilot under fire as dev claims it emits 'large chunks of my copyrighted code'
I did not argue against that, I was talking about the argument. I don't think it's a straight comparison or even one that holds water. I don't think the parent comment mentioned licenses at all. I clearly mentioned that you can make an argument claiming that it's not ok to copy a snippet - I just don't think the argument to absurdity I replied to, in this case, is the best or most appropriate one.
alexcosan··on Copilot under fire as dev claims it emits 'large chunks of my copyrighted code'
I believe that's a bit of a strawman comparison. Not taking any sides, but in your example, the resulting system would be the same - artwork aside - you would end up with the same set of algorithms put together to create the exact same game.

Copilot, as far as I know, tend to be used to generate snippets and small algorithms that, by themselves, are not a full system/product/game.

There still may be some merit to your argument, but I believe the opposite side should be a bit steelman'ed beforehand.

alexcosan··on Why do arrays start at 0?
I think, in theory, it would work regardless of the starting address. As long as you don't try to access the invalid address (which you wouldn't assuming that it's starting in the index 1, you would always be accessing the first valid address)
alexcosan··on Show HN: I made a web-based notepad with a built in unit calculator
Nice work on getting this out. I think it looks pretty neat and simple to use.

I’ve had some issues when using it though: - on mobile, moving the cursor in a calculation doesn’t work very well; - More important, multiplying “200 * 10%” results in “2000%”, I believe the result should be “20”; https://www.wolframalpha.com/input?i=200+*+10%25

alexcosan··on SMS phishing is way too easy
This could work - similar to what happens in some bluetooth pairing flows. But you could still send a text message with a phishing link under the same Sender ID and fool someone into opening it. You'd really need to know that the specific sender would never a) send you a link, or b) send you anything without the "two-way verification" flow you suggested. I don't think any of those options are realistic at a certain scale.
alexcosan··on Audiblegate
I see this more as "do not assume until there's evidence of malice". Not that you should not look for evidence - basically, innocent until proven guilty. There's a tendency to judge every ignorant act as malice when, a lot of times, it's just that - ignorance/incompetence.

Not talking specifically about this case, although it may apply, we just read a twitter thread.