Better HN
topnewbestaskshowjobs
Log inSign up

FartinMowler

167 karma · joined Feb 20, 2024 (2y ago) · 69 submissions

Submissions

comment 1w ago · link · parent

Add your own `.notEmpty()` custom plugin / $.fn method to throw that exception. The rest of the world can stay as-is.

comment 1mo ago · link · parent

Why do you ask? Are you planning to plan something?

comment 1mo ago · link · parent

Resurrection is near the front of my reading queue. Tolstoy donated the proceeds of that book to help the Doukhobors emigrate from Russia to Canada in 1899. My dad was a Doukhobor. Thanks Leo!

comment 2mo ago · link · parent

Wow, that activated a long dormant neuron. IIRC 3.11 main purpose was to make the 3.1 in OS/2 incompatible.

comment 2mo ago · link · parent

Or HAGS (HTMX, AlpineJS, Go, SQLite).

comment 3mo ago · link · parent

Canada needs to create an "Economic Reparations Fund" to help those workers and companies harmed by trump's tariffs. Its initial funding should come from selling $10B of US bonds (Canada is ~5th largest holder) and a 5% surcharge on oil exported to the US. US already extracts a 12-22% discount off world oil prices from Canada (who's taking advantage of who?) so 5% shouldn't be an issue. As needed to cover damages, more bonds could be sold and the oil surcharge could be raised.

comment 3mo ago · link · parent

Interesting interpretation given the the 2nd Amendment gives the right to "a well regulated militia" and not to individuals including crazed yahoos and criminals. Sadly for millions of butchered Americans, US courts have agreed with your interpretation.

comment 3mo ago · link · parent

My namesake, er, not quite ;).

comment 6mo ago · link · parent

With that for the rest of the day I won't get the Tragically Hip song "New Orleans is Sinking" out of my head. https://youtu.be/LAZUsCONjIQ?si=QIvXOppHk3X1UuQ0

comment 6mo ago · link · parent

But at least JS now has a built-in leftpad function ;) (called padStart).

comment 6mo ago · link · parent

I'm reminded of the Polish proverb that it's better to be rich & healthy than sick & poor.

comment 6mo ago · link · parent

What?!?! I was an IBM Systems Engineer in the late 1980s / early 1990s and that was nothing like my job description.

comment 6mo ago · link · parent

Yup, impossible to read. I was a paid APL coder in the early 80's. We called it WORN: Write Once, Read Never.

comment 7mo ago · link · parent

Lol, on my trip up Pikes Peak I was blissfully unaware that altitude sickness could be a thing. So I can't recall if I felt any different. I do recall the carburetor on my motorcycle was acting a little strange, however.

comment 7mo ago · link · parent

Finally, some deshitification news on HN!

comment 8mo ago · link · parent

Luge too :)

comment 8mo ago · link · parent

Brilliant. But be prepared for failure. Some days instead of the rejection you're expecting you'll be accepted instead!

comment 9mo ago · link · parent

It's not really a promised or conscious boycott. It's after weighing the pros and cons, many of them intangible, the feeling is visiting the US right now could result in unpleasantness ... and if there is anything Canadians are adverse to it is unpleasantness. Anecdata: a friend of ours crossing the US border, despite being a VP at a bank, for her first time ever had to surrender her phone for examination by US border agents. Who needs that!

comment 10mo ago · link · parent

Although the probability is closer to 0% than 100%, it is far enough away from 0% to have many Canadians concerned. As the midterm elections approach and things start looking like he's drowning, Trump will grasp for any convenient distraction, the bigger the better. Canada is uncomfortably on the short list.

https://www.ctvnews.ca/canada/article/the-military-plans-for...

comment 10mo ago · link · parent

They could monitor the midterm elections /s

comment 11mo ago · link · parent

Lol, reminds me of a story: at his workplace my brother was invited to join a lottery ticket pool where each got to pick the numbers for a ticket. The numbers he picked were 1-2-3-4-5-6. Although the others, mostly fellow engineers, reluctantly agreed his numbers were as likely as the others, after a couple of weeks they neglected to invite him again.

comment 11mo ago · link · parent

Especially with template partials now in the core of Django 6.

comment 11mo ago · link · parent

By the end of Trump's third term the US will be isolated from almost all global trade anyways.

comment 1y ago · link · parent

OOP is like alcohol: enjoyable in moderation but dangerous in excess.

In moderation, an object is a data structure with associated functions (methods) that acts as a kind of namespace. If your data structure and functions are separate, you might start having function name collisions.

Hopefully we won't see a prohibition against OOP.

comment 1y ago · link · parent

Yup. And Toronto in Canada is closer to the equator than to the north Pole.

comment 1y ago · link · parent

I've been doing IT for decades. Many times I've come across something that seems stupid yet also has a non-trivial number of supporters. When this happens (and it will many times), don't just continue to think it's stupid. Question if you are stuck on some paradigm or mindset that makes the thing seem stupid to you. That might call for a good head shake, a walk in the park, or a weekend-long bender to open your mind to new ideas. You don't have to jump on their bandwagon, but at least you'll increase your understanding and strengthen your position.
123