@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.

thgs, to random
@thgs@phpc.social avatar

Reading dry, technical standards documents as wake-up reading with my morning coffee is my new favourite Sunday morning activity.

gavi, to random

It’s time to enter the silly dimension

thgs,
@thgs@phpc.social avatar

@gavi L-space?

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.

thgs,
@thgs@phpc.social avatar

@mcc is it because of "self" keyword ?

thgs,
@thgs@phpc.social avatar

@mcc

but we do have "self" in PHP

thgs,
@thgs@phpc.social avatar

@mcc

it goes usually, but not always next to the legendary "Paamayim Nekudotayim" operator.

Example:

self::hello('world')

thgs,
@thgs@phpc.social avatar

@mcc Can also be a type-hint. Return type hint or argument type hint. Like

public function something(self $sameInstance): self

(accepts same class instance and returns same class instance).

No practice of Anattā from PHP, I am afraid..

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

vanamerongen, to random
@vanamerongen@phpc.social avatar

Some people think scalability is the biggest challenge in tech. Some think it’s data privacy.

I think the biggest challenge in tech is the constant internal battle between ideals and a fat pay check.

thgs,
@thgs@phpc.social avatar

@vanamerongen

What could be a solution ? Not having the battle?

So, I am assuming you favor the ideals.

How could this change? How can this change so it is not a challenge any more? Could it be just about educating people?

Also, I wonder if you mean something like, apart from immoral, if people were not chasing a fat pay check, there would be an increase in technological advancement.

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 #php 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 #php 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 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).

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