HNHacker News
TopNewBestAskShowJobs

TrianguloY

1,329 karma · joined November 2, 2020

correo--correo+hnews@hotmail.com
submissionscomments
TrianguloY··on Two Git ignore files nobody told me about
I learned this while using IntelliJ, because it suggests both options. I searched for the difference and, once understood, I was able to use the knowledge everywhere.

The other useful advice is when there is a full folder you want to ignore. Putting a .gitignore with a single "*" ignores the full folder...including the gitignore file itself.

I do use it when I quickly need to ignore the .idea folder

TrianguloY··on Your "File" Menu Isn't About Files
For all comments saying that it is a standard and shouldn't be changed, I think the standard is that the first "menu" is the important one, no matter how it's called, so for this reason it should really be changed.

Imagine if you move the file menu to the middle. Will you still be quickly able to find it "because it's a standard" or instead click the new first menu (and then spend several minutes trying to find where the "New window" option is)?

TrianguloY··on "Solving a largely imaginary user goal"
But...there is a solution that works (although it may be a bit confusing at first). A toggle with two buttons, dark and light. Both cannot be pressed at the same time, but both can be unpressed at the same time. That's the auto mode, and the ui can be tweaked to show a little label in between or below.

In auto, none of the buttons is pressed (and preferable a small label that says auto is shown). Pressing dark/light will force that mode, enable that button and remove the auto label.

In dark/light mode, you can press the other button to enable the other state. Or you can press the current button to disable it, and switch to auto. This last one is the confusing-at-first interaction, but makes sense if you think about it (it's like saying: I want dark / I want light / I don't care)

TrianguloY··on I Won't Buy You a Coffee
Usually the but me a coffee button is there because there are people that asks for it. Like, they do want to give you something, and often they ask you for a way to do so.

That button is for them, for those who want that button, if you don't just ignore it! Nothing bad will happen and the author is (usually) not expecting anything.

TrianguloY··on Ask HN: Pregunta para los devs hispanohablantes
Mi primer lenguaje de programación fue Logo (el de la tortuga) en español. Estuvo bien para aprender, y puede que ahí sí tenga algo de sentido, permite que los niños entiendan mejor lo que están haciendo, incluso si el inglés les cuesta.

Para ámbitos más profesionales coincido con el resto de comentarios: un único idioma (y el inglés ganó la batalla) es preferible.

TrianguloY··on When Is "Next Friday"?
"Next week's Friday" -> "Next's Friday" -> "Next Friday

Still confusing, but at least I understand where it comes from.

TrianguloY··on When Is "Next Friday"?
If we follow the same logic. If today is may 2026, and you want to do something "next September", are you referring to september 2027? After all, months are also grouped in years.

The fact that "next [X]day" skips the one on the current week is arbitrary, and probably more confusing than if it didn't. If people you are talking to understands that, go on, but otherwise keep in mind that "next [X]day" is confusing and you should clarify or say it differently

TrianguloY··on Ask HN: What are you building that's not AI related?
I made this one-page little tool to help me split bills when going out with friends:

https://trianguloy.github.io/githubPages/SplitBill/splitBill...

The UI is horrible, but I really liked doing the coding. I'm also aware of other similar sites, but this one contains the features I need.

TrianguloY··on Nobody is coming to save your career
Similar with salary. If you want a raise, you need to ask for it. It's sad, but that's what it is. (I'm aware of some companies that do raise the salary annually, and there is also the performance benefit if you have it, but I don't think that's common).

That, and the "you need to change companies frequently (at most one each year)" are the two things I always say to people on a computer science career.

TrianguloY··on Do your own writing
> Letting an LLM write for you is like paying somebody to work out for you.

This. This is the big distinction. If you like something and/or want to improve it, you do it yourself. If not, you pay someone else to do it. And I think that's ok.

But I guess some people either choose a wrong job or had no other option. I'm happy to not be in that group.

TrianguloY··on I don't know Apple's endgame for the Fn/Globe key–or if Apple does
As a forced mac user at work (always used windows or Linux) the number of modifier keys is really confusing. On pc you use control almost for anything, alt for very special cases (when usually control is already taken) and the windows/meta key for os-related things. On mac a lot of shortcuts use command, but some use control, and there are a bunch that use option without a real reason why, my memory really suffers from this.

The only common thing between the two is that the fn key is only used for the special modifiers under F1-F12.

I was given a magic keyboard, and my plan was to replace it with a standard one, but then I found about the keys mapping from Karabiner, and the fn key is exactly at the control position...so I started remapping.

Now, I can do almost everything with fn+key. Fn+c=command+c, fn+s=control+s and so on.

TrianguloY··on How to talk to anyone and why you should
I've joined local groups for anime and videogames, but they are mostly anime. Videogames and programming seems to be almost exclusively masculine (the stereotypes are there for a reason) but the few girls there doesn't seem much different.

Maybe I've had bad luck, maybe I need to search more, but still...the situation seems to be similar everywhere.

TrianguloY··on How to talk to anyone and why you should
That women feel pressured to be introverted and/or man feel pressured to be extroverted. Being the opposite is a handicap.

Although, the good part, is that the personality doesn't seems to be genetic and doesn't come from your parents either, otherwise we would be extinct (literally).

Unfortunately, this situation makes me think about genre issues in an different way, not only sort of understanding why they happen, but surprised that it's not more common. I've met very horrid persons, that have achieve what I haven't, just because women doesn't seem to try to see past them. Is like they gave up...

TrianguloY··on How to talk to anyone and why you should
As someone who identifies with the text, a very introverted guy that almost never starts a conversation but it's able to maintain it once they other person starts it, and as someone who has never dated any girl (and failed to do so) I'll just say: almost every random person that talks with me...is a man.

It doesn't seems...fair...and, again, says a lot about society.

TrianguloY··on Disappointing Phones
I was in a similar situation in 2021, and my requirements were small size, no notch and headphone jack. I didn't like Samsung (the android from Samsung is fundamentally different from the other androids) and wanted to avoid xiaomi and other similar brands due to the ads bloatware.

The size requirement was basically impossible, but I switched it to a width requirement instead, and I found the Sony Xperia 10 III.

Pros: One of the smallest widths, no notch, jack, and a minor modified android (no stock, but pretty close).

Cons: too tall (but at least the small width makes it a easier to use with one hand), medium-bad camera (for some reason, although I don't care) and some preinstalled apps (like Facebook, but you can remove/disable them with adb).

Overall I'm pretty happy with it, and I'm considering another Xperia as a replacement if this one starts to fail (more than 4 years now, but still fine)

TrianguloY··on AI is not a coworker, it's an exoskeleton
I like this analogy, and in fact in have used it for a totally different reason: why I don't like AI.

Imagine someone going to a local gym and using an exosqueleton to do the exercises without effort. Able to lift more? Yes. Run faster? Sure. Exercising and enjoying the gym? ... No, and probably not.

I like writing code, even if it's boilerplate. It's fun for me, and I want to keep doing it. Using AI to do that part for me is just...not fun.

Someone going to the gym isn't trying to lift more or run faster, but instead improving and enjoying. Not using AI for coding has the same outcome for me.

TrianguloY··on Nova Launcher added Facebook and Google Ads tracking
I'm still using Lightning launcher, will continue to use it as long as I'm able to
TrianguloY··on Refactoring – Not on the backlog (2014)
Isn't this called "Boy Scout Rule"?

I learned this when a coworker mentioned this to me. Turns out I was doing it without knowing it was a thing! Of course I continue doing it, but it's good to have a short and clear name to give others (specially those that only seem to follow concepts if they have a flashy name)

TrianguloY··on Inverse Parentheses
Based on this comment (https://news.ycombinator.com/item?id=46352389), I think I understood the missing first paragraph:

If you have the expression 1+2*3 you have three elements with two operands. You need to choose a rule to pick one of them first.

In mathematics, the rule is "*/ then +-" and then from left to right. This means that usually first you do 2*3, then 1+.

But what if you do want to make 1+2 first?

There is another alternative, parenthesis. Those mean "do the thing inside first" so (1+2)*3 changes the precedence and now you do 1+2 first, then *3

The post is asking: with parenthesis you can increase the precedence of operations. What if you could decrease it?

Let's use «» as another operand (the blog uses parenthesis, but that makes it really confusing) this operand means "do the thing inside last". So the expression 1+«2*3» means "do 1+ first, then 2*3.

The issue is...this doesn't make sense, what the blog is really saying is to reduce the precedence of operators. Think the expression 1+2«*»3 or 1+2(*)3 and now the rule is "the parenthesized operators have one precedence less" so 1+2(*)3=(1+2)*3

TrianguloY··on Show HN: GitForms – Zero-cost contact forms using GitHub Issues as database
I personally use Google forms for a very similar feature. You don't even need to display the google form itself, you can create your own and then perform a fetch.

I even have it connected to a google sheet and google scripts, to send me emails for entries matching some patterns.

Heavily depends on Google, yes, but for something free that honestly I won't care if stops working (like a prototype) I'm ok with it.

TrianguloY··on Icons in Menus Everywhere – Send Help
This.

I like icons (and colors, but those are still mostly missing) to quickly find a frequent action. If the menu is always the same you can learn the position, but with dynamic entries it's way more difficult.

TrianguloY··on GitHub Actions has a package manager, and it might be the worst
Ah, I see it now. Thanks!
TrianguloY··on GitHub Actions has a package manager, and it might be the worst
I'm not sure I follow.

If I write actions/setup-python@v1, I'm expecting the action to run with the v1 tag of that repository. If I rerun it, I expect it to run with the v1 tag of that repository...which I'm aware may not be the same if the tag was updated.

If I instead use actions/setup-python@27b31702a0e7fc50959f5ad993c78deac1bdfc29 then I'm expecting the action to run with that specific commit. And if I run it again it will run with the same commit.

So, whether you choose the tag or the commit depends on whether you trust the repository or not, and if you want automatic updates. The option is there...isn't it?

TrianguloY··on Don't Download Apps
On play store you can see the permissions that an app uses and they are grouped by category. Have full network access is set in the "others" category, same as notifications and vibration. This is a category where (supposedly) permissions are automatically granted.

But to be honest, other similar dangerous permissions like "view network connections" and "receive data from internet" are also there, categories are for "camera", "microphone" etc.

I suppose that the average user is more concerned about specific features, and since basically almost all apps require internet it may be there to avoid noise. Still, an "internet" category would have been nice...

TrianguloY··on I tracked Amazon's Prime Day prices. We've been played
I've always wondered what would happen with a shop that never has sales. A shop where the prices are always the same, although they may occasionally increase them due to inflation, etc.

Such a shop will not get the surge of "oh look a discount, let me buy it" consumers, but people will probably realize that this way when you need something you can buy it on the spot, and it will always have the best price no matter when.

Does a shop like this exist, or existed?

TrianguloY··on The Cracker Barrel Hype(rreality)
I like the new logo. The yellow part in the shape of a barrel is a really nice detail.
TrianguloY··on Why do some gamers invert their controls?
For me at least, the answer is very easy: play the game without changing the settings. If you repeatedly turn the wrong direction, switch.

The camera should feel natural, and you should be able to do it without thinking. So just let your subconscious pick.

TrianguloY··on I launched a Mac utility; now there are 5 clones on the App Store using my story
I had the same experience with an android app on play store a few years ago (when LLMs didn't exist yet) so this is nothing new.

As you said, I didn't mind others creating apps with the same idea, the issue is when someone takes your app, decompiles it, injects ads (mine is ad-free) or changes the author name, and publishes it. And I know this was the case because the app was a verbatim copy (except for the ads), bugs included.

At first I sent some DMCA, it usually worked, but not always. If you have time and you are bored do it, but keep in mind that if someone tries to fight back you'll have issues, and at that point you need to consider if your time fighting is worth more than the app itself (on my case the app was free so...no).

What I did learn is that plagiarism is something that some countries accept socially. In these countries taking a successful thing and copying it is seen as a "positive" achievement (like "hey, look, I was able to do the same as this other guy! I'm so smart!"). I understand this mentality, as long as only the idea is copied, but when assets or the whole app is copy/pasted, without giving any credit...yeah that's when you get angry.

TrianguloY··on Public static void main(String[] args) is dead
Because usually you have an ide that manages imports for you automatically. So unless you are using a library that has multiple imports, usually you know the import to include, and in almost all cases it is automatically included.

Btw: in the compact example! The IO class is implicitly imported, so that example truly works without any import at all!

TrianguloY··on Google: 'Your $1000 phone needs our permission to install apps now' [video]
I wonder if a "parent lock" type of measure but for external installs could work, basically allowing a user to disable the external installations (and other things) unless you enter a custom code.

For those of us who know enough there is no need to enable it.

For those that are not as technological (like elders), a familiar/friend can enable it and no matter what they try, they can't "harm" the device without asking you first.

The only ones not getting any benefit are non technological people without technological contacts, but even in those cases I'm sure shops would gladly provide that support (like the usual "setup support)

Page 1 of 12Next →