HNHacker News
TopNewBestAskShowJobs

jamamp

153 karma · joined May 9, 2016

meet.hn/city/us-San-Diego
submissionscomments
jamamp··on Ask HN: Has the Apple Silicon excessive disk read/write issue been fixed?
M1 Pro 16" 500GB

    === START OF SMART DATA SECTION ===
    SMART overall-health self-assessment test result: PASSED

    SMART/Health Information (NVMe Log 0x02)
    Critical Warning:                   0x00
    Temperature:                        34 Celsius
    Available Spare:                    100%
    Available Spare Threshold:          99%
    Percentage Used:                    0%
    Data Units Read:                    18,809,609 [9.63 TB]
    Data Units Written:                 18,091,004 [9.26 TB]
    Host Read Commands:                 431,191,695
    Host Write Commands:                334,856,144
    Controller Busy Time:               0
    Power Cycles:                       191
    Power On Hours:                     384
    Unsafe Shutdowns:                   15
    Media and Data Integrity Errors:    0
    Error Information Log Entries:      0
jamamp··on Ask HN: Who wants to be hired? (July 2022)

  Location: Orange County, California
  Remote: Yes, willing to do remote or in-office (preferred local)
  Willing to relocate: No
  Technologies: ASP.NET (Professionally), Swift/iOS (Personally), and more
  Résumé/CV: https://www.linkedin.com/in/james-n-linnell/
  Email: james.n.linnell@gmail.com
I'm a full stack software engineer with about 5 professional years of experience, in the Financial Tech industry. Looking to move to another, more exciting industry for new challenges. Would like to get into iOS development professionally instead of just via personal side projects, if possible, as a change of pace. Good knowledge of server-side infrastructure requirements and software architecture.
jamamp··on Tinnitus Seems Linked with Sleep
Funnily enough, I have mild tinnitus, but sleep very soundly. I have a fan on 24/7 in my bedroom that helps enough for drowning out the tinnitus sound. I rarely if ever wake up in the middle of the night, and wake up fairly refreshed. I even fall asleep relatively fast compared to some other people I know.

Elsewhere in this thread, it's been mentioned that there are several types of tinnitus (it's apparently an umbrella term), and some tinnitus can be caused by a firm pillow and bruxism, which fits my description.

I wonder if the type of tinnitus has more or less effect on sleep than others.

jamamp··on Tinnitus Seems Linked with Sleep
This is very interesting to me. I have bruxism (extra bone growth on the top of my jaw by my back teeth) as well as mild tinnitus, and I have firm pillows I sleep on. I will do some research on TMJ/bruxism-specific or just softer pillows. I'm sure it'll be a very long-term fix and not see immediate results, but the link between TMJ/bruxism and tinnitus is an interesting area, and might be my own cause. Thank you for the comment!
jamamp··on Keyboard lets people type so fast it’s banned from typing competitions
Transcribers would probably appreciate it. But then again, there are other regular stenographic keyboards out there.
jamamp··on Kinesis Advantage 360
There's a ~$30 add-on accessory to add tenting support in 5°, 10°, and 15° positions. Same as with the Freestyle Edge mentioned in the other comment, for the newer, gaming-focused keyboard. I find it to be the best part of having a split keyboard.
jamamp··on Write an SQL query builder in 150 lines of Python
I work for an enterprise in-house web application, where over time we have a ton of tables, like over several hundred unfortunately. Writing queries for each any every table and manually mapping those to objects sounds exhausting. EntityFramework helps a lot with that, for CRUD operations.

Additionally, I think unit testing would benefit from an ORM as well. Instead of calling an actual database, you can easily have an in-memory database with an ORM with mocked data. Though, I suppose that is technically possibly with straight SQL queries as well, but I imagine it's easier with an ORM.

jamamp··on Apple Music Style Guide
I looked at the print preview. It looks like when printing the web page, it includes section breaks for tidy formatting. Plus, the "Print this document" is hidden when printing. It looks like an instruction, but I'm not sure why it is in quotes.
jamamp··on Apple, FedEx and the cookie apocalypse
I'm confused as to what FedEx has to do with this article. It is in the article's title, but is only mentioned in passing in the concluding paragraph.
jamamp··on Zellij – A Terminal Workspace and Multiplexer
Another option is JSON with the "$schema": "..." item[0]. Most editors seem to pick that up automatically and provide autocomplete and type-checking.

[0] https://json-schema.org/

jamamp··on Tips for Performant TypeScript
Of the three code-related sections, I think only Using Type Annotations makes sense. While the compiler _can_ infer the return type and the user can mouse-over the function to see what the language server has determined the type to be, I feel that explicitly noting what the return type is preferred. Yes, the compiler can act more quickly, but also it makes it more clear quickly to others working on the same project what the function does. Even in languages like Swift which are happy to use type inference, you still must annotate your functions.

The other two code-related sections seem odd, to write code that improves compile-time performance. It would be beneficial to see compile duration differences between projects that heavily use union types and projects that don't. Otherwise, changing your coding style and not using explicit features of a language that are hard to find in other languages seems counter-productive.

That said, the actual compiler configuration changes that follow seem very useful, from someone who doesn't write much TS.

jamamp··on Sneaky Sliders
The volume icon on the Tesla touch screens has the same functionality.

Curiously, it’s at the far bottom right of the screen, such that it’s easy to use the majority of the screen to the left to lower the volume, while increasing the volume is difficult due to the limited screen real wastage to the right. No doubt this was placed here for the passenger of the vehicle to use, but the result that it’s safer to lower the volume quickly than increase it quickly is interesting to me.

Though, I suppose it would have the opposite effect when the passenger is on the left side of the vehicle.

jamamp··on Removing Holocaust Denial Content
I disagree that this is an encroachment on free speech. Your free speech protections are only protected _from_ the _government_. The government is not allowed to silence you on most things you say. However, things like shouting "FIRE!" in a crowded movie theater (the age-old example) are not free speech. Moreover, Facebook is not the government and does not need to allow you to say anything you want.

People who would otherwise post on Facebook about Holocaust denial can go out on the streets and talk about it to their friends or others. But, they can expect a punch in the face if they do. I think that is what is happening here. People are spewing nonsense, and a non-governmental entity (Facebook) is punching them in the face (not letting them say it on their platform).

Like the grandparent post said, this is intolerant. But it's following the paradox to allow more tolerance in society.

jamamp··on Politicians cannot block social media foes: U.S. appeals court
When a politician chooses to create a social media page for purposes of their office, any moderation efforts and actions they partake are done as officers/representatives of the local/state/federal government. As such, they are not allowed to restrict the freedom of speech of individuals, because they are acting on behalf of the government, which would be in violation of the First Amendment.

It doesn't matter where this happens, only who is enacting the moderation.

This is why private companies can do so, because it's the private entity that is moderating content instead of an official of the government. A private company administering their own subreddit on Reddit, another private entity, could also moderate comments and content.

jamamp··on Patreon Bars Anti-Feminist for Racist Speech, Inciting Revolt
My take on the situation is this: internet-based communities can be analogized roughly to a privately-owned forum/market. Before I get into specifics, I realize that analogies are never 100% accurate, but I think they can help get the point across.

A business, Patreon, buys a building and sets up shop. They open booths for people to setup shop in and solicit funding for their projects. The general public can walk through the booths and choose who to support. This being a privately-owned business, and in their private property (building -> website or webserver), they reserve the right to deny entry to whomever they wish.

If I were a business owner, I would not want one of those booths to be occupied by someone reciting hate speech and scaring off other patrons (pun not intended, patron in the traditional sense) from other booths and from my business as a whole.

It is entirely possible, and in this day and age fairly easy, for those who got banned from Patreon to set up their own website hosted on their own servers in order to spread their message. I wouldn't say 'go to another platform' because the same thing would happen again. I would say 'make your own platform/website/blog'. You can set up agreements with Paypal or many other places to solicit funds. At this point, with Net Neutrality and ISPs not being able to ban you because they should be a public utility, you can not be removed from speaking how you wish. You can setup your own server easily to do this.

Caveats: net neutrality is an ideal in this scenario, since the FCC removed it. I am not 100% sure on payment providers, but I am sure there is a way to solicit funds without them in some way.

jamamp··on The Baseline Costs of JavaScript Frameworks
Yes, his Angular page [0] uses AoT compilation which results in the bundle, instead of individual files by default (meant for development only).

Also I agree with you. It's a bit unfair to be comparing a barebones Angular app to a barebones React/Vue app (even with a router library for each of those). Angular also has a forms and validation library already installed, and its dependency injection framework, etc. The baseline React/Vue apps don't have those pre-installed, which you would typically install when building an actual app.

[0] https://angular-ngrx-router.netlify.com/

jamamp··on Show HN: Edabit – Like Duolingo for Learning to Code
The Swift version seems to be outdated. To get the length of a String, you need to do string.characters.count, instead of Swift 4's string.count. I think it's on Swift 2.
jamamp··on Tim Cook makes blistering attack on the “data industrial complex”
The reason Apple moved to the USB-C charging on the MacBook is because it no longer served the purpose it was originally for. Older MacBooks and MacBook pros were a bit bulky and heavy. Tripping on a MagSafe charger cord connected to one of these would disconnect because the friction of the laptop on its its surface was stronger than that of the magnetic pull of the MagSafe connector.

With the new Macook, however, I believe it was much lighter to the point that it would have pulled the laptop down with it upon someone tripping on the cord. It wasn't doing anything to benefit the user at that point. Because of this, they probably opted for a slimmer charging port (USB-C), and it went well with the growing use of USB-C in the industry.

I do wish they included more USB-C ports, however.

I do not know exactly the reason they opted for USB-C in the new MacBook Pro, however. I believe it would still be heavy enough for MagSafe to be effective. However at this point, USB-C is saturating the market and consolidation in their products may be a more important issue for Apple at this point.

jamamp··on Trump Just Signed a Law That Changes Life Aboard Airlines
- prohibits airlines from "bumping" passengers who've already boarded a plane; - requires airlines to refund passengers for "services they paid for but did not receive";

It seems to me these points potentially balance out some of the power that flight attendants have, however.

jamamp··on Swift Programming Language Evolution
I believe Swift 3.0 is the last breaking release. Version after this will avoid breaking the API and language as much as possible, and I imagine allow backwards compatibility for changes they do make.

I'm okay with the fast-moving nature of Swift. It's a very young language that obviously needed a lot of changes, and if they had to take the time to make the earliest features available all the way in version 3, Swift would already be bloated. But they have been able to do away with backwards compatibility which is difficult in the industry, and I think it allowed them to make a richer language, not held back by anything.

Side note: For at least some of the changes they've made, they've also built into the compiler and Xcode smart error messages that see the old syntax, and allow you to click one button to fix it to the latest syntax. Such as the old `for i in 0..10 {}` to the new `for i in 0..<10 {}`, Xcode will tell you to basically insert the `<` for the new operator.

← PreviousPage 2 of 2