@thgs@phpc.social avatar

thgs

@thgs@phpc.social

Passionate (oddly?) and stuck with #PHP for quite a few years, although I have fallen for #Haskell and #assembly in the past.

Currently exploring and learning about #DDD, although I will always like a quick and aggressive "hack".

Always learning. Finding myself, mostly, at the tip of a contradiction!

Also a father, nowadays.

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

mcc, to random
@mcc@mastodon.social avatar

Writing some code that has to represent 90 degree rotations and what I really WANT is for 0 to be 12:00, 1 to be 3:00, 2 to be 6:00 and 3 to be 9:00 but I just KNOW if I do this at SOME point this code is going to intersect with code that does rotations with sin() and then I'll horribly regret not doing 0=3:00, 1=12:00, 2=9:00, 3=6:00

But the trig rotations system just feels so unnatural! :(

thgs,
@thgs@phpc.social avatar

@mcc you can still do it if you put something in front to give you the interface you like.. just pointing it out!

thgs,
@thgs@phpc.social avatar

@mcc I think Sadness is most probably inevitable.

I also think something along the lines of

"Dare in the face of Sadness!"

However, I am known to be lacking "proper nomenclature" and I tend to mess up boundaries a lot, so better not take my advice!

Just to add one thing, at some level, "converting back and forth" is what computers are doing all the time..

thgs,
@thgs@phpc.social avatar

@mcc

that is why you should be considering an abstraction in front! It's a "humanizing" concept. Like a small DSL or an API with your mental constructs, that gives you the "interface" you want to work with, under the hood will be converting back and forth.

thgs,
@thgs@phpc.social avatar

@mcc

Also I will point out something I read recently that made a lot of sense.

"In science if you know what you are doing you should not be doing it.
In engineering if you do not know what you are doing you should not be doing it." Richard Hamming

This, helps me get in context regarding "what I am doing right now". Am I trying for "science" or for "engineering" ? And I believe can guide my approach to things..

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

Programming languages that practice the doctrine of Anattā: C++, C#, Java, JavaScript

Programming languages that do not practice the doctrine of Anattā: Lua, Ruby, Objective-C, OCaml, Swift, Rust

Programming languages which are ambiguous with respect to the doctrine of Anattā: Python

thgs,
@thgs@phpc.social avatar

@mcc

I honestly find this classification so interesting. I do fail to understand how PHP is practicing the doctrine of Anattā (which I just learned about).

Update: Not just PHP, I fail to understand how you actually separate them all.

awoodsnet, to random
@awoodsnet@phpc.social avatar

What do you use to stay organized as a developer/ IC (Individual Contributor)?

thgs,
@thgs@phpc.social avatar

@awoodsnet MediaWiki

jdecool, to random
@jdecool@phpc.social avatar

Remake of the Windows 95 Solitaire game from scratch to preserve its original authenticity: https://github.com/danielricci/solitaire

thgs,
@thgs@phpc.social avatar

@jdecool eh its in java though. We should be doing it in PHPGL!

TodePond, to random
@TodePond@mas.to avatar
thgs,
@thgs@phpc.social avatar

@TodePond Left side is a bit greedy

thgs,
@thgs@phpc.social avatar

@TodePond

After the first "correct" registration the next one works good.

Open a new one,
paste "Hello and Hello" (breaks it funny), then backspace until it is only "Hello" and now you can do the proper registration by typing " and Hello". Select all, then paste "Hello12 and He3llo3" it will break it right, now that it knows...

Impressive.

I think if you hold +1 history the levenshtein might work better? Way more complicated though. There must be something better than levenshtein.

thgs,
@thgs@phpc.social avatar

@TodePond registration was my own word for storing the previous one. I picked up on the really simple vibe yes.

And yes my direction was going towards giving it more knowledge about what was before.

I still think it’s impressive and an intriguing thought as you have it.

thgs, to php
@thgs@phpc.social avatar

Writing without a framework can be fun.

Of course I am going to pick something for this pet project but while I am exploring, writing like that is fairly quick and malleable.

thgs,
@thgs@phpc.social avatar

@bobmagicii I wasn’t born in 1970 but I see your point! So far it has actually been a liberating experience.

thgs,
@thgs@phpc.social avatar

@bobmagicii I gave up on psr18 and whatnot for the http clients I am using. I did some small interfaces for what I needed exactly.

I see what you mean though. If X is based on Y, then X is bounded in some ways to Y. But that is only true when Y is opinionated. The closer it gets to being as objective as possible then it becomes less of a boundary. It’s pretty hard to make something as objective as possible though

ravetracer_22, to php
@ravetracer_22@phpc.social avatar

Hey people. Here's a short story of one of our trainees from his vocational school:

One of our teachers mentioned callback functions yesterday, then quickly added: "You probably don't know what callback functions are."
We pointed out that we actually do know what callback functions are.
He amended: "Oh, but the web developers among you wouldn't know, because web developers don't do OOP. Web development is just html and some JavaScript and maybe PHP, but in PHP you don't do OOP either."

thgs,
@thgs@phpc.social avatar

@ravetracer_22 that one should really find another job.

thgs,
@thgs@phpc.social avatar

@ravetracer_22 I can be as bold as saying that people that think that to do OOP you need the language to have "classes" then they should not be the ones teaching others.

It's pretty sad when you encounter these ones that actually teach others. I mean.. what you show here is just a glimpse onto their teachings, I cannot even think how many more like this the students will hear and will have to conform to.

18+ cafkafk, to random
@cafkafk@catgirl.farm avatar

girl who ate too much halloumi :ablobmelt:

thgs,
@thgs@phpc.social avatar

@cafkafk try grapes with it next time!

Crell, to random
@Crell@phpc.social avatar

When you say what a word "means", what do you mean by "mean?" It's actually not a trivial question.

https://peakd.com/language/@crell/bounded-vs-centered-sets

thgs,
@thgs@phpc.social avatar

@Crell one of the most interesting articles I’ve read from you. At least to me!

Thanks for this, good read.

thgs,
@thgs@phpc.social avatar

@Crell its centered towards high praise. I don’t think I have seen anything close to low bar from you but to me this stands out as one of the articles I’ve read that are making a point about a broader concept than lets say null type.

Having said that, one wonders if null type is actually less broad but well..

I just really enjoyed reading the article as I like elaborate explanations the way you do them but also didn’t know about the distinction of these two sets. Now I keep thinking about it

thgs,
@thgs@phpc.social avatar

@Crell oddly lately another thing that stuck in my head is this

"If you ever want to go far in life, you must learn the
value of proper nomenclature"

(One of the mages in Act I of Discworld video game)

You mention we label things wrong? Could it be because the two are associated somehow? I cannot decide, whether say bounded sets are a specialisation of centered ones or completely exclusive. Are they distinctive properties of things or the definitions contextual (whether X is bounded) ?

thgs,
@thgs@phpc.social avatar

@Crell I also can see a possible beginning of a definition of context/subjectivity that can come out of what we define as bounded set. As in, assume all is centered by default, but X is a bounded set definition in some context.

Ofc another idea is that both bounded/centered are contextual definitions (as I said before).

davidbisset, to webdev
@davidbisset@phpc.social avatar

Hey and community, what's your main setup?

thgs,
@thgs@phpc.social avatar

@davidbisset I've got 6 on the left and 8 on the right 😜

thgs, to random
@thgs@phpc.social avatar

Contemplating the irreversible nature of time, in software projects.

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

thgs,
@thgs@phpc.social avatar

@stefanzweifel @regis yea I see, I was just curious about what is the obstacle. Also way more competent with psalm than phpstan myself, magic properties are still possible but you would need to define a lot of psalm types. I think more or less the same for phpstan too.

It’s quite a bit of difference in the code in level 5 and then level 3 and then level 1 (reverse these for phpstan).

I tend to like the way you need to write the code in the max level because it ends up being guided a lot.

sebastienmonterisi, to random French
@sebastienmonterisi@phpc.social avatar

I've just started using just.
https://just.systems/
I'm using it since a few days, that's a pretty simple nice tool.
makeFile is to ... make files.
Just is just a fine task runner.

thgs,
@thgs@phpc.social avatar

@sebastienmonterisi that’s interesting and quite clean

thgs,
@thgs@phpc.social avatar

@sebastienmonterisi yea it’s a nice idea I think. Going to give it a try first chance I get

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