Hacker Newsnew | past | comments | ask | show | jobs | submit | Aurelius108's commentslogin

Oddly enough I find senior engineers at my company demand ridiculous comments like this oddly enough. I've found that a 1:3 comment:code ratio (basically a comment every 2-3 lines with a new line separating each block) is the only thing that will prevent some annoying code review comments asking for clarifications.


Give them a copy of Robert C Martin’s Clean Code hah


Unfortunately staff engineers at my company will demand annoying comments like this so I don't think it's necessarily a sign of vibe coding


I get worse. I write a test

    TEST(SubSystemABCTest,CheckIfAIsNegativeItThrows)
    {
      ....
    }
And I get told all tests need a comment so I copy that line and add spaces between the words. WTF! >:(


I’ve run into this as well, it’s so obnoxious. Now I just go into multiple cursors mode and type the same exact stuff multiple times haha.


One would hope that the principal engineers above them have more sense…


Agreed, it’s one of those things that works well if it happens organically but not as a policy. I’ve got a personal wiki at work where I dump a bunch of useful stuff, it has helped people and attracted attention which is nice. I think the easiest solution is to have longer-form team meetings once a week.


Good point, when you look at your watch your thought should be “3:15 has passed” or “3:15:40 has passed”. One is more precise but if you think of it as a time that has already passed you can budget accordingly. 3:15 tells you that 3:15:00 has definitely passed and as much as 3:15:59 might have passed.


Never thought of it that way, that’s really helpful. Thinking of the right hand side as an expression makes way more sense then spiral and other explanations I’ve seen


It’s very new to the standard library (latest version of GCC this year was the first version to support it). Additionally, I’ve found that println adds 30+ seconds to my compile time even for hello world so I’ll be avoiding it unless I need it


> It’s very new

True, but Hylo is so new that it's not even an established language. Plus using this should serve to higlight the differences the author actually cares about between the languages.


https://godbolt.org/z/MTo11voes > println takes 9 seconds https://godbolt.org/z/he6Phr7nG > cout takes 6 seconds

What machine / compiler are you on where the difference between these are 30 seconds? GCC is also quite a bit faster based off a quick tests in godbolt.


> https://godbolt.org/z/MTo11voes > println takes 9 seconds https://godbolt.org/z/he6Phr7nG > cout takes 6 seconds

That is 50% increase.


I don't believe I claimed anywhere it is not a 50% increase. The OC said 30 second difference.


I missed the "Hello, world!" mention, but otherwise you only need to have 10 prints in your whole project to have the 30 second increase. That is pretty significant.


It is not linear on number or prints. 1 vs 2 prints will likely have zero noticeable affect.


Although they’re cheating, I give them props for trying. I abandoned Android when even Samsung didn’t make an honest effort to make their phones responsive. It’s nice that Apple consistently values responsiveness because then Google, Samsung and Microsoft have some incentive to address their bloated products.


I was scripting on a windows machine which didn’t have WSL setup and decided to learn PowerShell. After a week or so of scripting with PowerShell and seeing how intuitive and robust the syntax is, something changed in my brain and I decided I never again wanted to deal with bash and its endless quirks and brittleness. It’s unnatural to have to wrap every variable access with “${}”, that unnatural key sequence always caused a break in my flow. Anyway I reach for Python sooner and really hunger for a clean, robust nix shell. I hope powershell has instilled this in many people and it drives adoption of something better


I have tried to do the same, but i have opposite experience. I just can't grok the syntax, it always seems like a magician pulling out another "Haha! I bet you haven't seen this one coming !"

Like, i can't even construct the abstract model of how it's supposed to work


Would you be able to provide an example? I'm not doubting your experience, just incredibly curious since I had the opposite experience.


Sure thing :

$env::Path (the semicolon? so Path is not quoted here? But when I assign a value it's quoted?)

Dir -r | %($_.Name.ToLower) ( what is this? statement dreamed by utterly deranged)

They took us for absolute fools


I mean you don't need to use the convenience aliases, or use even use it exactly that way. Here's it without any aliases:

Get-ChildItem -Recurse | ForEach-Object { $PSItem.Name.ToLower() }

This might be a better mix of both worlds:

gci -r | foreach { $PSItem.Name.ToLower() }


I'm even a windows .NET developer and I also find Powershell extremely weird. I'm not sure what it is.


Yeah JIRA doesn’t appear to cache any of its information and doesn’t appear to make it’s information cache-friendly for a browser, so you end up accidentally clicking on another issue and then having to click back costing you 30 seconds (on work network).


I think this is a key insight with some details: there isn’t an entire shadowy org that operates without jira but there are teams of people, usually small who do amazing things without jira. I imagine the manhattan project ran this way but you still have elite teams like this in every org. Eventually they need to hand it off to a jira crew and that’s unavoidable.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: