HNHacker News
TopNewBestAskShowJobs

lstamour

4,318 karma · joined April 27, 2013

submissionscomments
lstamour··on The Seamless Communication models
There is another way of looking at this, in the context of the parent post: we could suggest that any accent could be converted to “no accent” where American accents are converted to British, or where standard Japanese is converted to a Nagoya pronunciation. Whatever seems like your preference of “no accent”. With this interpretation of the parent post, it’s not specifically about any particular English accent. I’ve been told by others that I have an accent yet I think I don’t have one - and honestly, I think most people have either encountered this - having an accent when you think you don’t have one - or haven’t travelled enough! :)

And I mean, yes, there are people who know they don’t sound like whatever ideal accent they have in mind, and there are people who will make fun of accents - but, and I can’t stress this enough, depending on the context literally any accent can be made fun of, sadly. I’ve had people mock my “American” accent while travelling, for example. It sucks, but it’s not easy to single out any accent as “default” unless it’s literally enforced by a government and taught that way in schools. Last I checked, the US is not one of those countries and English is not as centrally controlled as e.g. French can be.

lstamour··on "Useless Ruby sugar": Endless (one-line) methods
> What does YAGNI even mean if it can stand in opposition of DRY? If it just means "you don't need to do that," and "that" can mean whatever you want, then it's not a useful guiding principle.

> YAGNI is about functionality, DRY is about structure.

I absolutely see where you’re coming from and I agree, the reason DRY caught on and YAGNI hasn’t is indeed the vagueness of YAGNI. But I would equally argue that the simplicity of DRY is what gets you in trouble if you over-optimize for DRY regardless of context.

DRY can be about functionality: if you’ve already implemented a feature, even if it’s a library maintained by another team, as long as the tests encourage your use case, you should re-use existing functionality over creating yet another abandoned half-baked attempt at something.

YAGNI, by opposition, might suggest that the effort spent learning the other team’s library and maintaining a connection to what might be brittle code is itself overhead. A similar debate can be found in using an npm library. DRY would argue if you already use the library, keep using it. YAGNI would argue if the library is only used in one place, rip it out for simplicity and replace it, especially if the code is old.

Taken to extremes, DRY is how we end up with a left-pad module on npm while YAGNI is using padStart built-in to modern JS. Likewise taken to extremes, YAGNI may result in missing functionality and unmaintainable spaghetti code, while DRY is one possible approach to taming complexity in codebases. Both are essential principles, neither actually more important than the other.

I agree with JUCS, but it’s even less defined than YAGNI ;-)

lstamour··on "Useless Ruby sugar": Endless (one-line) methods
The “YAGNI” principle is something I’ve had to learn the hard way - and continue to learn it, just earlier this week, in fact. YAGNI and DRY are sometimes in vicious opposition. A pro tip I picked up from Gary Bernhardt’s Destroy All Software screencasts is to leave some DRYing (or other refactoring for readability/maintenance purposes) until after you write tests and are in a red-green-refactor cycle. You can always DRY your code later, especially now that IDEs make it so easy to extract methods for you with automatic population of required variables/parameters.
lstamour··on "Useless Ruby sugar": Endless (one-line) methods
The methods that start with “call_” and “find_” are particularly redundant, because they aren’t any simpler than the code they contain. Technically true of all the methods given but the rest could be excused as explaining less readable syntax or for future expansion if parameters change. Modules should be deep, not shallow, is one design approach. This half fulfills that because the methods are private, but it’s also true that the method names are effectively comments yet they obscure the natural reading order for the code. See John Ousterhout’s A Philosophy of Software Design for more on this idea of deep vs shallow modules.

(Edit to add: another way of justifying the above service design pattern is to suggest that the code is DRY because you’ve extracted common sections to methods. This is taking DRY to an illogical extreme. You _should_ repeat yourself if your method calls are simple enough, and if you actually do need to repeat some logic in multiple places requiring a private method, you might find a better place to put it - for example, a filter method.)

lstamour··on Amazon Q (Preview)
And not to be confused with the Google Nexus Q…
lstamour··on That time Verisign typo-squatted all of .com and .net
Yup. They would get paid for it: https://web.archive.org/web/20190330013915/http://netalyzr.i...
lstamour··on Bluetooth stack modifications to improve audio quality on headphones without AA (2019)
You could use BLE to signal the incoming call or switching tracks or queuing up a new track. Likewise I’d love it if re-encoding the AAC from the player weren’t a necessary step when there isn’t additional audio. But then I suppose they would have to mix the audio on headphones which … actually sounds doable given that’s basically what noise cancelling and transparency mode requires already.

Of course, the cynic in me wonders why we can’t do AirPlay 2-style functionality with simple Bluetooth and BLE speakers, but Apple wants to preserve their margin and ecosystem. Literally lossless headphone audio was mostly a thing with cords, and we’re still playing catchup to the idea.

I do remember a brief period a period in the late 00’s when “MP3 headphones” were a thing, and you could add an SD card to your headphones and listen wirelessly. I’m not sure any of those supported FLAC though.

My suspicion is that in the future, we will skip Bluetooth and go straight to wifi and cellular, where these tiny AirPods end up connecting to audio sources directly and basically only use BLE to sync between themselves. That way you can “leave the phone at home,” etc. They would probably have built-in storage too, for offline support.

lstamour··on Google Chrome will limit ad blockers starting June 2024
Right now, Safari being the only game in town on iOS is basically the only reason why websites don’t exclude non-Chrome browsers already. Now if Apple ever supported this in a way that broke or deprecated adblocking, I’d probably seriously consider switching to an un-Googled Android phone. Until then, though, I’ve switched to Firefox on my desktop computers and use Safari on mobile and am pretty darn happy with the adblocking of both.
lstamour··on 15-150: Principles of Functional Programming
As a matter of principle, those in bandwidth-constrained situations should be browsing via proxies or browsers that automatically compress, such as Opera Mobile back in the day, or Google’s more modern compression baked in to Android/Chrome. (If it still exists, it’s been awhile…) That said… yeah, it couldn’t hurt to put a free CloudFlare CDN in front with automatic image optimization, for example.
lstamour··on From email to phone number, a new OSINT approach (2019)
Good news, with the elimination of the SIM card slot, they fixed this bug and you can have two eSIMs active with no chance of ever getting a physical travel sim to work! /s
lstamour··on Microsoft lays hands on login data: Beware of the new Outlook
“If you are trying to login to IMAP hosted by Google or Fastmail, why should Microsoft need to be contacted let alone given the password?” is how I read the article…

Now, I know the answer is so that you can have push notifications sent to your mobile phone with every IMAP poll Microsoft does on your behalf, but that’s because the architecture of the new Outlook app likely borrows features of the Accompli mobile app they bought and maintained as Outlook mobile. That the desktop app re-uses the same APIs as the mobile app rather than process mail locally makes sense from a code reuse and efficiency standpoint, but really only because your accounts can seamlessly carry over to all your devices.

It’s arguable that the distinction between keeping your password in the cloud and keeping your password local is a security risk. However, if you previously used Outlook.com to check your IMAP email, and maybe this is where the feature derives from, then you already provided your IMAP password to Microsoft on the web. Likewise Google for importing IMAP to Gmail. We do this because it is nicer to get one inbox and one push notification across multiple accounts - when we want cloud providers checking emails for us.

It is less clear why a desktop app would do this unless you opted in to fancier service of some kind - e.g. viewing emails on the web when not at this device, or push notifications to your mobile phone, etc.

If Microsoft wanted to read your emails even with a locally stored and never shared IMAP password, they could still send telemetry derived from the local client to build an advertising profile based on local emails, or to display targeted ads. They don’t technically need your password to read your emails if you are using their email client.

lstamour··on I trapped scammers in an impossible maze [video]
The Stanford Prison Experiment reveals a lot about decent people being easily manipulated - and by that I mean the whole thing has since been revealed as fraudulent: https://www.vox.com/2018/6/13/17449118/stanford-prison-exper...
lstamour··on Ask HN: Who is hiring? (November 2023)
If you click through, many of the roles are listed as hiring in India.

They say in other roles (Lead Product Designer), "We are a virtual-first company and have employees dispersed throughout the United States and Canada." and "This role is eligible for hire in the San Francisco Bay Area (US), Vancouver (Canada), and Toronto (Canada)."

lstamour··on GitHub Builds GitHub with GitHub [video]
https://xkcd.com/303/
lstamour··on GitHub Builds GitHub with GitHub [video]
The new Projects is like Jira without the top-down “Jira Align”-style features. So you can have issues from multiple projects show up in a board, that board can look like Trello… but if you want to duplicate the card’s custom fields to a different board, it gets trickier. The card and its data lives in the board it’s created in.

You end up having to do lots and lots of hacky things with GitHub Actions and the Projects GraphQL API to make it work the way you want it to. And granted, it’s cool you can do that. Having CI events fire for every issue created is awesome. But sometimes you fight their defaults soooo much, that just customizing Jira seems easier at times.

Don’t get me wrong, if you’re all in on GitHub, you’ll do okay with it. Especially if you write Actions to feed data in or out of it using the GitHub CLI and/or API or GitHub-script CI actions. But you’ll also probably miss Jira if you’ve used it as a power-user. Especially if you want to do advanced things with boards and cards and issues that it might not offer by default out of the box. And GitHub’s GraphQL API is powerful but also weirdly and frustratingly restrictive at times, particularly with usage and query limits. An easy SQL query for GitHub to run internally is opaque and confusing for a third-party to develop - GitHub knows what things are easy to hard to query by design but outside of GitHub you just make the API calls and hope it scales well to larger projects, or find out the hard way when it fails.

lstamour··on GitHub Builds GitHub with GitHub [video]
The video is nice, but not particularly actionable - if you’ve used GitHub Enterprise within the last year, or browsed GitHub’s website marketing, you’ve probably seen many of these features already.

https://gh.io/how-we-build-github is linked to from the description and has a few more interesting articles and case studies. While they don’t often go into detail, you’ll pick up some tips and best practices on how to best use GitHub at a larger org.

If there’s a limitation, it’s that for enterprises, a lot of these features have big price tags attached by design, and some of the big features, like code spaces and CI runner VPCs can be done through local .vscode project files and self-hosted runners for cost savings.

Unfortunately, there’s literally no way to replace GitHub’s secret scanning on-push given that you can make commits so many different ways and only GitHub can scan them all. And GitHub’s pricing for their security package reflects this, at least at an enterprise level. And let’s not talk about storage costs or other ways they get you with consumption billing. Caching speeds up your CI but you end up paying for it in bandwidth and storage costs, likewise talking to GitHub releases was free, iirc, but downloading a published package had a bandwidth charge, I’m forgetting the details but GitHub billing is full of weird inconsistencies due in part to how GitHub worked historically, but also because newer things are designed on and for the cloud, and the cloud’s billing model… Until they added a page for it, there were scripts you could run to see which repos took up the most space, because yup, you can get billed for that too.

There’s a small part of me that misses the simplicity of self-hosted GitHub Enterprise in that you could quickly navigate to other enterprise projects (last I checked, labels were still broken in GitHub Enterprise for listing internal projects), maybe wrap it in a cloud proxy and add your own secrets scanning, or link your self-hosted GitHub to your self-hosted Jira. (Note: I absolutely prefer the cloud-hosted versions, but it was possible to tune the performance of local versions in a way that it isn’t possible to do so in the cloud. I never worked for a company that bothered to tune them, but it /was/ possible. And probably cheaper.)

I probably shouldn’t ask why GitHub repo and org settings can’t be managed through GitOps in 2023, or why GitHub defaults to using HTML and web pages in 2023 instead of making API-first a standard across all their features. The number of times I’ve thought to myself that it should be easy to do X via the API only to discover that the only way to do X automatically is to use Puppeteer and Chrome to screen scrape… the worst offender at one point, besides Projects and other new features, was OAuth app management and approval. So many GitHub features are still designed web-first and GitOps or API never… or at least not yet. My favourite is when doing something requires combining both the old REST API and new GraphQL APIs, because yes, that is also sometimes a thing.

lstamour··on How to draw software architecture diagrams (2022)
I use OmniGraffle for similar reasons :)
lstamour··on Windows 11's default mail client will show ads starting 2024
If Adobe or Serif announced Linux support, I’d switch in a heartbeat. I was about to add DaVinci Resolve to that list, but they actually released official Linux support, so I can cross some video editing off my list. And one presumes all web-based tools such as Figma also work well on Linux these days, so… the list of tools that aren’t Linux compatible might be vanishingly small now. But not zero, sadly.
lstamour··on Windows 11's default mail client will show ads starting 2024
Acompli, the mobile mail app Microsoft bought and rebranded as Outlook, was like Newton and other email apps of its day - it used OAuth and cloud APIs to check messages on its servers and then created a combined inbox by sending push notifications to your phone as it received new emails on your behalf in the cloud.

It sort of sounds like maybe the same infrastructure was borrowed here to set up the iCloud account in the local Outlook app. Presumably the local app is now based on the prior Acompli infrastructure.

That said… it really doesn’t pass the sniff test, it feels like Microsoft wants your contacts the same way LinkedIn (also Microsoft) wants your contacts. Personally, I wish I hadn’t trusted Google, Meta and LinkedIn as much with my contacts as I did in the past. Live and learn, I suppose.

lstamour··on Tech: iCloud+ 6 and 12 Terabyte Plans and Apple One Premier Issues
I’d strongly disagree here. If I pick an individual plan tier from Spotify, YouTube or Microsoft, I would expect to be able to undo said change instantly and without 30 days notice. Apple put extra effort into making sure the launch of Apple One was billed correctly for people who already had subscriptions, but what they did not do was make subscription management any easier. This is proof.
lstamour··on Stealing OAuth tokens of Microsoft accounts via open redirect in Harvest App
Also only allow redirects to your domain or website, not literally anywhere on the internet. And the token should stay in your website’s cookies - it’s unclear why the second redirect would ever need to pass a token if it can read it from site cookies in the first place.
lstamour··on Mastercard Should Stop Selling Our Data
As a tourist, though, a pro tip is that big banks in Germany charge for deposits, not withdrawals, so if you happen to have a debit Mastercard with no exchange fees (e.g. in Canada, EQ Bank or WealthSimple), you can use your Mastercard at a bank ATM completely fee free and at Mastercard exchange rates. Plus it doesn’t matter which bank you go to, just pick the nearest name brand big bank ATM and you’re good to go.
lstamour··on Scrollbars are becoming a problem
Sorry if it came across that way, everyone’s needs are different. As far as I know both Mac and Windows have preferences to make scrollbars permanent and/or giant, though not every app is as accessible, and webpages can, of course, do whatever they want to some extent. You could probably find a browser and OS combination that is completely customizable to suit, though.
lstamour··on Scrollbars are becoming a problem
For those looking to accessibly scroll webpages: if not visually impaired, could I introduce you to the powerful combination of hitting spacebar to scroll down webpages and (in Firefox, at least) hitting the / (forward slash) key to bring up the "quick search" window? From there, you can type in whatever you want to select or bring into focus that you see on the screen. It's a great way to quickly move the focus to another part of the webpage. (If you just hit tab without quick searching first, you'll scroll back up to the last link that was in focus, but by using the / key quick search, you can basically navigate with just your keyboard and the tab key.) While this doesn't help if scrollbars are embedded in a site, if it's a traditional webpage such as the parent article, it works great :)

As a result, while I do have and use a trackpad, I rarely feel like I'm missing scroll bars because I can just hit spacebar (or page down) to scroll down most times. If you need to page up or down on a Mac, it's fn key + up to go up a page, and fn + down to go down a page. Meanwhile cmd + up is like the Home key and cmd + down is the End key, so you can quickly scroll to the top or bottom of a page (or text entry box).

Not to say this isn't a valid article, but there /are/ workarounds to missing visual scrollbars if you absolutely need this functionality.

Admittedly, these workarounds do not work that well on mobile, where I sometimes wish the iOS Contacts app A-Z scroll helper had somehow "caught on" within webpages, to scroll them. We're missing an IDE-style control that helps us "quick scroll" and jump between headings and sections of longer webpages, that's for sure. As the article mentions, I'd be in support of minimaps, but my version of them would look a bit more like the contacts UI, small icons to represent each section that I could click on to navigate to it, and maybe if I swiped left on the right side of the screen it would show me the table of contents in full, with a search box? (Just spit-balling here, but we need more UI innovation and standardization, not less. I really don't think we've found the "perfect" UI, I think we just forget what made old UIs great when we build new UIs... And sometimes we invent greatness: see the Alfred-like Spotlight search box that you can even get on Windows via power tools that lets you quick switch to any application just by typing its name... literally genius, but not something easily available before OS X Lion.)

lstamour··on Scrollbars are becoming a problem
Everything old is new again? I remember when people were deriding Windows XP for being "Fisher-Price" in appearance and preferring to run Windows 2000 because it was more stable (until roughly SP2 came out, which basically was an entirely new OS released as a service pack).

Windows 7, which was Vista's equivalent to SP2 also has some fans. Heck, I'd even personally argue that Windows ME has some niceties not seen in subsequent releases, particularly when combined with Active Desktop (which I'm pretty sure did not survive the transition to XP).

I wonder if/when some subset of users will prefer a more controlled window layout engine, one which always opens windows into their own "space" on the screen. To that end, I don't actually mind how iPad does its window layout, I just wish iPad had all the features and openness of macOS to install your own drivers, background apps and virtual devices/mixing. A simpler UI can actually be a good thing, but you shouldn't lose functionality when making things simpler. A simpler UI doesn't necessarily mean less complex operating system...

lstamour··on Flexoki, an inky color scheme for prose and code
In its defence, the image says it is for Obsidian, so that is probably its intended use right there, in the screenshots.
lstamour··on Ask HN: What software did you purchase that positively impacted your family life
Oh I should add that iMessage, if you can get the whole family on it, is killer for maintaining group chats. Really though, just having a group chat with the entire family on it is great. Especially if the app has Find My features where you can see where folks are. For the youngest tho, we use Facebook Messenger for Kids on Amazon fire tablets if they want to join in on video calls etc. Sadly there isn’t an all-in-one service that is also very child-friendly (and Fire tablet compatible to be kid proof)
lstamour··on Ask HN: What software did you purchase that positively impacted your family life
1Password family has been hard to get everyone on… one or two people yes, but not the entire family.

YouTube Premium is probably the only thing everyone in the family uses significantly and frequently… but mostly because they don’t notice it. Netflix, Disney+ maybe go without saying. Alexa/Google/HomePods too, mostly for music playback. Spotify Premium has excellent family features also.

Background but storage from Google One, Apple and Microsoft Office are also frequently used and relied on.

For me the hardest part is actually telling family what they could have access to - I wish there was something like https://duo.com/assets/img/leadin-images/sso_leadin_img.jpg but included all the content, apps and subscriptions we share, regardless of service provider. Whatever it is, it has to have tight integration with mobile and desktop computers so I and others can push notifications like, “Amy just signed up for NYTimes, add a shortcut and saved password?” Or a banner appears or customized Kagi results that could say, “Listen on Spotify,” if that’s what we have signed up for would be nice.

I’m thinking it might work like Apple’s notifications for health and/or activity sharing, where you get to see what others do, but instead you get to see what you have access to via the family, etc.

I tried setting up enterprise style accounts and domains and even a Google Site for this purpose and it went nowhere. Everyone already has logins and identities and half the problem is no one wants to visit “yet another website” just to find out what’s new. I haven’t tried making an app with push notifications and installing it on everyone’s devices with a web browser extension, but I also have to admit, I’m tempted to develop such a thing. Might also be useful for very small startups, etc.

lstamour··on Show HN: A better visual builder for complex business logic
Seconding the comment above, I think "Loop" might actually be a technical term and something like "for each (whatever)" or "do X times" might be easier to follow. As programmers we know things like while loops and end conditions, but regular folks might want to see something a bit more human readable. Alternatively, maybe some kind of flow chart with a line pointing at itself might convey what a loop is - that end conditions are lines that leave the loop's outer box and otherwise the loop continues through the line that points to itself. I sort of feel like "loop" and "booleans" are technical terms that people don't understand as easily as simpler terms like "for each". I'm not sure how you could make something like "x < 5" simpler though. That's basically math and you might have to point folks to YouTube videos about inequalities.

Maybe you'd have more than one person setting this up - the engineer could write some of the details with the help of technical docs for the non-techie, but then someone experienced could provide someone less experienced with comments to follow or higher-level descriptions of blocks? E.g. At a high level there could be a human description that says "Load data: While there's more data to fetch ..." or "For each record, relabel fields..." but at a low level, it might say "While len(response) > 0, fetch data" or "Assign object fields x,y,z to response fields a,b,c".

lstamour··on OnlyOffice: Free open source office suite with business productivity tools
Original link (without Translate): https://www.epravda.com.ua/publications/2022/07/6/688888/

Excerpt via Google translate, though the whole thing might be worth a read via Google translate or ChatGPT or whatnot:

> The majority of OnlyOffice employees are citizens of Russia who are in this country or hold positions in the Latvian and Russian offices at the same time.

> The developers of OnlyOffice in the Russian information space emphasize that the Latvian Ascensio System SIA is a one hundred percent daughter and one hundred percent property of the Russian company NKT. The open database of Lursoft companies registered in Latvia also points to a Russian beneficiary.

Google translate: https://www-epravda-com-ua.translate.goog/publications/2022/... via Reddit https://www.reddit.com/r/privacy/comments/10nqq8m/onlyoffice...

← PreviousPage 4 of 34Next →