@lewiscowles1986@phpc.social avatar

lewiscowles1986

@lewiscowles1986@phpc.social

Polyglot, using PHP since version 3, currently leading technical delivery and change in a Python, backend team.

I Love Linux, NodeJS, TypeScript, Python, PHP, Ruby, Golang, C.

Can be a snark, especially if stressed.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

mhoye, to random
@mhoye@mastodon.social avatar

Both incredible and 100% unsurprising that StackOverflow would choose to burn down their community in favor of AI-generated slurry, when their community was the only path and the only tool they had to differentiate themselves from any goddamn site made of AI-generated slurry.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@mhoye
Their users are also a problem. Not every user, but there has been a longstanding "culture" they've had to address

blogdiva, to random
@blogdiva@mastodon.social avatar

so, what my latest impression from the UK is that Keir Starmer is really not the kind of guy who should be representing working class people; what with that "Sir" in front of his name and such. in other words: he's an upper,class twit fucking it up for the Labour Party. or am i off the mark on this one?

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@blogdiva he is unfortunate, but all I can vote for, to get current morons out

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

It takes a special kind of business to admit such a thing, but I'm not sure this was intended..

Since noreply@curve.com is their email, I'd love it if folks can share. Let them know they need to do better

jalcine, to random
@jalcine@todon.eu avatar

Biggest pet peeve is the use of a README file as the only comprehensive API documentation. This is common for JavaScript and TypeScript projects but I'd figure with the advent of things like LanguageServer or Treesitter, someone could make something like https://docs.rs/ or the Python documentation site to surface APIs a lot easier. Sigh. (https://jacky.wtf/2024/5/mx27)

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@jalcine
IDK about this one. I'd settle for folks making less bs apis

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

I've been far too happy, and grateful since my surgery. So here I sit, in surgical assessment unit 2, because I've been in agony since 5am.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

Turns out, my wonderful surgeons... Left most of what they were meant to extract within me. So surgery tomorrow.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@GeePawHill thank you Michael. Mostly post right now because my diary is indoors. I'm still (currently while 1000mg cocodamol 500/30*2) pain free in a way that makes me very happy

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@GeePawHill
They cancelled the operation due to... Lack of equipment. Just-in-time in all it's majesty

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@GeePawHill yeah, but no guarantee rescheduled means they'll have the right tools on the day

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

You know how folks talk about a drawer of wires, a certain type of person has... I have 2 boxes >= 80 litres of wires. 160l of space... For wires. This is going to be an opening volley if I ever seek therapy

drskyskull, to random
@drskyskull@mastodon.social avatar

People who create pdfs that automatically open at like 50% size should burn in hell

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@drskyskull
I thought that was Adobe viewer...

You can code the docs to do that?

What user story did that solve?

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

Getting more things ready for the move.

Edent, (edited ) to random
@Edent@mastodon.social avatar

You receive a call on your phone.
The caller says they're from your bank and they're calling about a suspected fraud.

"Oh yeah," you think. Obvious scam, right?

The caller says "I'll send you an in-app notification to prove I'm calling from your bank."

Your phone buzzes. You tap the notification This is what you see.

Still think it is a scam?
1/3

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@Edent yes and I now consider my phone compromised. Cold calling should never be part of a bank or FI fraud or mitigation strategy.

If they can send an app notification to the exact app in a message centre I’d be more happy

lewiscowles1986, to random
@lewiscowles1986@phpc.social avatar

TIL via @Crell tht PHP is getting C-sharp style getter / setter "hooks"

nice.

IDK if the way I think about objects is the issue, but inherritance here feels weird.

If I have a struct and the only way to set values on it is via a header file where some macro modifies my input; then there is a layer of direct setting, that I'm not sure would translate to another struct with same address locations / names, without that header.

So if folks stack the hooks does perf get progressively worse?

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@bobmagicii
currently if I wanted this behaviour I wouldn't manage it like that.

The property would become it's own struct / class.

I use interfaces without properties, and concrete implementations with getter / setter explicit methods, or public readonly

So if I made a new class and wanted to override, I can be sure it's not n*c where c is chain length.

It's O(1) vs O(n); and harder to extend with overriding set / get.

nixCraft, to random
@nixCraft@mastodon.social avatar

Don't lie to me: How many browser tabs do you have open right now? 🤔

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@nixCraft more than 50

nixCraft, to linux
@nixCraft@mastodon.social avatar

say goodbye to the sudo. a sudo replacement called run0 that will be part of the upcoming systemd 256 release. https://www.freedesktop.org/software/systemd/man/devel/run0.html

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@nixCraft
Honestly WTAF is wrong with distro maintainers?

Just call it sudo, almost nobody would know it was any different

simon, to random
@simon@simonwillison.net avatar

FIYDRI: For If You Didn't Read It - a variant on TLDR, to attach to comments where you're pretty confident nobody in the conversation will read the article and you want to try and get ahead of the inevitable rabbit holes

Trying it out for the first time just now: https://news.ycombinator.com/item?id=40197544#40213965

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@simon
If they didn't read it, could that also be a signal something else is up with the docs?

ramsey, to random
@ramsey@phpc.social avatar

This is part of the reason I couldn’t get to a good place (mentally) in order to do a real “Saving Open Source” talk at :

From @geerlingguy: “2024 is the year corporate open source died”

https://www.jeffgeerling.com/blog/2024/corporate-open-source-dead

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@ramsey @conservancy
One of the models of true FOSS is that folks can do this, but they need to buy a license exception from the license holder.

If somehow redis labs became the license holder as example, they can do WETFTW (whatever the F**** they want)

In a Stallman situation he'd have sought to enforce his commits were pulled.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@ramsey @conservancy
Ah. Mine was less for you and more for others reading your posts; but I guess in a raw sense, even if closed source, there is no physical or natural way to compel anyone not to use any "public code" or "code they can read"

Like if I took away the CLI daemon shell to redis and embedded it into a closed executable, most folks wouldn't know. I could further rename a bunch of symbols and I could likely get away with it... but I'd definitely be sith / dark-side at that point.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@ramsey @conservancy
@isaacs argued for similar when I complained about npmjs restoring a package that was maliciously updated.

NPM walked back the new version (effectively just refusing to distribute it) if I understand correctly and restored the prior version against the author consent.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@ramsey @conservancy
In volation of a copyright doesn't mean much though was my point. I Get it, it could ruin your life and reputation if you do it. My point is more about the practical, actual limitations, natural or physical, or which there are none. It's like the invisible wall the mime fights against.

Lana, to random
@Lana@beige.party avatar

Let me explain this real slow.

  1. I borrow $100 from you today.
  2. I pay you $10 every day for a year.
  3. I have paid you back $3,650
  4. I still owe you $90 somehow.
  5. You then "forgive" the $90 debt.

In this scenario, absolutely nobody is paying anybody $90. Nobody is being stiffed $90. Nobody is being forced to pay someone else's $90 debt. Absolutely nobody is "getting a $90 handout for free".

What's happening is you have been paid back your original $100 and then profited a mere $3,550 on top of that and we're saying that's enough profit.

This post is about student loan forgiveness.

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@Lana most debt is a potential battery as it draws on our internal desire to be socially acceptable. As a sociable species, it's one heck of a hack.

I was ecstatic when I made my last payment, but folks who attended university in recent years have like 5-10x the debt which is nuts!

Forgive it all, and reform the university (US college) program

mistersql, to Redis
@mistersql@mastodon.social avatar

Is going to support ? I would guess not?

Inc appears to be in complete control of the library, I don't see why they'd support forks they're hostile to:

https://github.com/redis/redis-py?tab=readme-ov-file#author

lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@mistersql surely if it's protocol compatible, then they would have to break both redis-py and their own redis clients to pull-off breaking though? Gotta be done slowly, like MySQL 8 and MariaDB

mistersql, to random
@mistersql@mastodon.social avatar

What's so great about unit tests?

  • at 30% coverage most bugs are found
  • at 80% coverage most edge cases are found
  • at 90% - 100% coverage you've been motivated to remove dead code and lesser used features.
  • at 100% - tests might as well be an assertion that the source code hasn't change, any change in source code will break a test.
    At ~1000s of tests the maintenance costs of unit tests starts to exceed value of test
lewiscowles1986,
@lewiscowles1986@phpc.social avatar

@mistersql
I Can tell from this, that you are a fan of small, focused libraries by subject matter experts.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • kavyap
  • everett
  • thenastyranch
  • magazineikmin
  • ngwrru68w68
  • DreamBathrooms
  • modclub
  • Youngstown
  • slotface
  • PowerRangers
  • osvaldo12
  • InstantRegret
  • rosin
  • Leos
  • hgfsjryuu7
  • Durango
  • vwfavf
  • khanakhh
  • tester
  • GTA5RPClips
  • ethstaker
  • mdbf
  • cubers
  • tacticalgear
  • normalnudes
  • cisconetworking
  • provamag3
  • All magazines