HNHacker News
TopNewBestAskShowJobs

tmh88j

854 karma · joined October 26, 2011

submissionscomments
tmh88j··on Boring Python: Code quality
> I honestly can't understand why people are so obsessed about types,

Types in Python feel like an added layer of confidence that my code is structured the way I expect it to be. PyCharm frequently catches incorrect argument types and other mistakes I've made while coding that would likely result in more time spent debugging. If you don't use any tools that leverage types you won't see any benefit.

tmh88j··on Ask HN: Do you recall any book or course that made a topic finally click?
Effective Python has a great chapter that goes over concurrency and parallelism using threads, coroutines and subprocesses. There are a lot of non-trivial code examples that the author gradually shows how to improve with more advanced language features over the course of several chapters so it's not all thrown at you at once, enabling you see benefits and pitfalls of approaching problems with different techniques. I highly suggest it even beyond learning async features.
tmh88j··on Python Asyncio
> In Kotlin for instance you can execute your coroutines with different "dispatchers", which have different behaviors. You can for instance use a dispatcher with multiple threads in a threadpool, run it in the main thread, a specific thread, in threads with low/high priority etc. Basically allowing you to write code using the async/coroutine paradigm, but then control its execution from the outside.

I'm not very experienced with Kotlin, but that sounds similar to python's run_in_executor [1]

[1] https://docs.python.org/3/library/asyncio-eventloop.html#asy...

tmh88j··on Nascar driver stuns to qualify for championship with GameCube move
I know you're joking, but Nascar actually uses some cool tech [1] to make a 3D model of each car on-site to ensure they're in spec with regulations for size, aero, etc... Here [2] it is in action at the last Daytona 500

https://www.youtube.com/watch?v=2-X_eujF8Z8 [1]

https://www.youtube.com/watch?v=Laet8W8pn_k [2]

tmh88j··on Ask HN: What piece of code/codebase blew your mind when you saw it?
I think it only works out that way when you're unpacking the same number of variables as there are elements in c, which is the same as (a,b) = c and c = (a,b).

If you tried something like c = (('d','e','f'),('g','h')) and then a,b = zip(*c) you'd get a = ('d','g') and b = ('e','h'). The 'f' that was originally at c[0][2] is dropped so you can't zip back to the original value of c, unless that's how inverses work for this scenario and my math is rusty.

tmh88j··on Musk’s inner circle worked through weekend to cement Twitter layoff plans
Try using i.reddit.com on mobile, it's a bit more tolerable.
tmh88j··on Tesla engineers were on-site to evaluate the Twitter staff’s code, workers said
The roadster, semi and cyber truck have that feel. Pepsi is supposed to get semis soon, would be really cool if that works out.
tmh88j··on The Restaurant Industry’s Worst Idea: QR Code Menus
I've only seen that a handful of times. Most of the time I feel lucky just to get a responsive website instead of a PDF that I have to zoom in to read.
tmh88j··on Toyota CEO talks about why he isn’t all-in on EVs
More sales doesn't mean better, especially considering BMW's offerings are newer. BMW is far superior to Tesla when it comes to the "car" part, as in the materials, build quality and driving dynamics. Same goes for the Taycan. The interior quality and NVH characteristics of a Model S might as well be that of a Corolla when compared to an equally expensive "traditional" luxury car like an S Class. Tesla's powertrains are phenomenal, everything else is mediocre at best. Most people don't know anything about cars and Tesla the default EV to them. I know so many people who never cared about cars suddenly willing to spend 2x the amount they previously did on a car because they want an EV and Tesla is all they know. Most don't know what a $75k+ interior should be, it's just fancier looking than their Hondas and Toyotas they've previously owned. Most don't seem to care about other brands nor are they interested in learning more, just as they felt about cars in general before owning an EV.
tmh88j··on Traffic cameras expose your location through parking apps
I'm sure whoever makes plate flippers claims the same intended use.

edit - Found some for motorcycles on ebay...."Ideal for track days/shows/meets etc.." along with "FOR OFF ROAD USE ONLY" on the listings.

tmh88j··on Traffic cameras expose your location through parking apps
I'm not surprised, it sounds illegal for the purpose you described. It's illegal just to own plate flipping devices without even using them in some states. Surely that would be too.

> A person commits an offense if the person with criminal negligence uses, purchases, possesses, manufactures, sells, offers to sell, or otherwise distributes a license plate flipper. An offense under this subsection is a Class C misdemeanor, except that the offense is a Class B misdemeanor if the person has previously been convicted of an offense under this subsection.

https://law.onecle.com/texas/transportation/504.947.html

tmh88j··on KTM Unveils A Revamped 890 Adventure R for 2023
Am I being trolled by a bot right now? It's very obvious the comment you responded to is in line with what I've been saying.

> It will be interesting to see what happens if one of the "subscription" hardware parts that has been deactivated has a problem that renders the rest of the bike unusable

I don't know how else to make it clear. You've defended numerous times paying fees to use hardware that's already been paid for. I don't understand how you're so enthusiastic about paying twice.

tmh88j··on KTM Unveils A Revamped 890 Adventure R for 2023
> What “additional fees on top of replacing the part” are you talking about?

At this point I'm not even sure you understand what's being discussed, but I thought it was blatantly obvious

> At 1500km/932 miles, the functionality is taken away automatically, and you are then software blocked from using the full capabilities of a vehicle you purchased until you pay for it to be unblocked.

tmh88j··on KTM Unveils A Revamped 890 Adventure R for 2023
> What's interesting about it? If that occurs past the warranty period, you have to pay out of pocket to replace the defective part like any other.

> There's plenty of examples of bad design in motorcycles.

Sure, but you don't have to pay just to use the hardware you already own. If a part breaks you're paying 3x for that component - Once with the initial purchase, once to "use it", and again to replace it if it breaks. Do you work for KTM? You've posted numerous times in this thread defending these awful practices and every single response has basically been "I'm fine with being nickel and dimed because the company needs to make money too", which is nonsense because the parts are already paid for.

tmh88j··on FTC proposes rule to ban junk fees, bait-and-switch tactics plaguing car buyers
Right, I meant that people often track their street cars. I've already said that I don't bother with nitrogen, but it takes a special kind of person to run R compound tires on the street...
tmh88j··on FTC proposes rule to ban junk fees, bait-and-switch tactics plaguing car buyers
>That's what they told me at the dealership too. I asked "larger than what? Air is a mixture that's already 78% nitrogen." Didn't get an answer.

No idea about molecule size, but the reason for nitrogen is that it expands less than air when heated, so tire pressure doesn't change as much when driving hard on a track.

> As far as the lower moisture content, couldn't they pass the air through an air dryer before filling the tire if it was that much of an issue?

Yes, this point is some dealership BS. Pretty much every auto shop will have a dedicated air line for filling tires, if not the whole system with an air dryer.

tmh88j··on FTC proposes rule to ban junk fees, bait-and-switch tactics plaguing car buyers
> Forget the Camry, it's hard to construct a road use application that actually makes sense.

For daily driving, sure, but a lot of people track their cars. I don't care about nitrogen in my tires because I'm hardly a competitive racer or frequent track-goer, but for owners of "from the factory" track cars like the ZL1 1LE or GT3 RS I'm sure it matters more to them.

tmh88j··on FTC proposes rule to ban junk fees, bait-and-switch tactics plaguing car buyers
> Charging customers for nitrogen filled tires that contain no more nitrogen than air (hey 78% is a lot!)

Are dealerships claiming to use nitrogen and just pumping in regular air, or are you talking about the unnecessary upselling of it? It's common in racing to use nitrogen, but yea, totally unnecessary for a Camry or whatever. One of my cars displays a warning telling me to visit the dealer when the tire pressure is low because the manufacturer recommends using nitrogen. I laughed the first time I saw the message on my gauge cluster before I knew the reason...still a ridiculous thought going to the dealer to top off my tire pressure even for nitrogen.

tmh88j··on Our screwdriver took three years [video]
They worked with Megapro to develop it, a reputable brand. I haven't used it, but denying potential quality solely because they don't have brand recognition in that space is an unconvincing argument.
tmh88j··on Our screwdriver took three years [video]
> Seems like the juicero for screwdrivers... over-engineered tool that without the "LTT" branding could probably sink in the stores.

I haven't used one so I don't know how durable they are, but I got the opposite impression. The juicero served no purpose. If you don't need a multi-purpose screwdriver that's one thing, but it does have plenty of use-cases and there are a lot of competitors which they showed so they are in demand to some extent. I'd say their attempt is more akin to Snap-on with how much energy they seemed to focus on ergonomics and UX, especially the ratcheting mechanism.

tmh88j··on Too many Americans live in places built for cars – not for human connection
>Meanwhile, the American suburb seems to have been modeled after manor estates but shrunk down to a level where it doesn't make sense. Each property has more personal land, but not enough to be "self-sufficient".

> remember, you need to keep the "estate" supplied with the necessities from a store located a 20-30 minute drive away)

People don't live in the suburbs to start a mini-farm. If you have to drive 20-30 minutes just for necessities you live in a rural area, not suburbs.

tmh88j··on Too many Americans live in places built for cars – not for human connection
What cities are you referring to? Surely not the larger ones like London, Paris, Madrid, Rome, Berlin, etc...
tmh88j··on Too many Americans live in places built for cars – not for human connection
> Living abroad has shown me cities, significantly more dense than the US, that are neither noisy or unsafe

Just because you can find quiet isolated pockets in any given city doesn't mean the rest of it is like that. All cities are loud and require being very aware of your surroundings, some more than others. I've spent months traveling through many European cities and been victim of crime and saw a lot of crime. As for being quiet, that's ridiculous. There are still tons of cars and constant construction even in the most walkable cities. Even in Venice where there are no cars it's pretty loud until you wander off into some back walkways.

tmh88j··on Too many Americans live in places built for cars – not for human connection
> I lived in New York City my entire life and I am now wanting a house. I am tired of living in an apartment building. This idea that people live together communally within buildings or neighborhoods is very overrated.

I feel the same way. I grew up in an urban environment, moved to rural areas, now back in an urban environment. I can't wait to get out of here. Too many people, too much noise and too much energy spent looking over your shoulder. I don't understand the desire to be around people just for the sake of it. I'd rather live on the quiet "un-walkable" outskirts or suburbs of a city and occasionally go in if I need to. More than anything I hate the lack of privacy that comes with city life.

tmh88j··on The end of the manual transmission is near?
The prior gen Ford Focus and Fiesta had a DCT, along with the C-Max.

https://en.wikipedia.org/wiki/Ford_PowerShift_transmission

tmh88j··on The end of the manual transmission is near?
> You even see this effect downmarket - Toyota promised to never make a manual version of their Supra, then just this last year they put together a cobbled transmission to save their car.

They didn't say never, just that it was unlikely. I think the new Nissan Z scared them into offering one. The timing was too perfect to be coincidental. From the lead engineer a few years ago:

> Tada said he knows people keep asking for a manual in the Supra and in time, after customers have driven the Supra with the automatic, if they are still clamoring for a manual, he will consider it. "It is not out of the question to see an update like that."[1]

[1] https://www.motortrend.com/news/why-2021-toyota-supra-doesnt...

tmh88j··on Halo system link still holds up more than 20 years later
Between soldering LED's into the controller ports, making the xbox logo in the center of the console light up and the xecuter3 modchip, I had so much fun modding the OG xbox. I was first exposed to IRC and FTP through the Xbox modding community. I thought my multi-colored boot screen[1] was the coolest thing ever. Anyone else make the golden warthog skin[2] for halo 2?!

[1] https://www.youtube.com/watch?v=JIVLbVoJIvk&t=1m07s

[2] https://static.wikia.nocookie.net/gaming-urban-legends/image...

tmh88j··on Speedcubing kid can skip last layer by learning 3915 algorithms for every case
The video creator made that reddit post and is actively answering questions. The twitter post was created by someone else.
tmh88j··on Almost every Ferrari sold since 2005 is being recalled
That's hardly the case. F1 cars haven't used manual transmissions since 1995. DCT's enable the absurdly fast 0-60 and lap times that people expect when they're paying hundreds of thousands for a car.

This is nothing new. Modern supercars haven't been offered with manual transmissions across most brands for nearly 10 years. You won't find them in a McLaren or Lamborghini made in nearly the past decade. Even Porsche doesn't offer them on the top 911 trims. Audi ditched it for the R8 in 2015. I don't think Mercedes has ever offered one for their AMG cars. As far as drag racing goes most serious competitors uses automatic transmissions.

tmh88j··on Almost every Ferrari sold since 2005 is being recalled
Ferrari started removing manual transmissions from models in the late 2000's and hasn't offered one since the 599 which was discontinued in 2012, so everyone within the past 10-15 years.
← PreviousPage 2 of 16Next →