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

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.

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

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 is it because of "self" keyword ?

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

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

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 you can still do it if you put something in front to give you the interface you like.. just pointing it out!

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

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

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 Left side is a bit greedy

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.

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

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.

thgs, to emacs
@thgs@phpc.social avatar

Ok so NOW, I will learn

thgs,
@thgs@phpc.social avatar

@meeper @icedquinn yea I mean, its just comfortable and within my habits of moving around text with the vim bindings.

Will checkout meow too. So many unknowns at this point

thgs,
@thgs@phpc.social avatar

@icedquinn this looks interesting indeed. Will check it out. Im sold just seeing the example.

thgs,
@thgs@phpc.social avatar

@icedquinn it was somebody who I respected their opinion 🤔 forgot who it was though..

thgs,
@thgs@phpc.social avatar

@icedquinn yea remapping has been in my mind. I do use the right control sometimes, also been thinking about home row mods but havent figured it all out.

I've seen those a little bit, learning the basics without them still.

thgs,
@thgs@phpc.social avatar

@icedquinn was it you telling me off about it? I was wondering who was telling me off in the past.

thgs,
@thgs@phpc.social avatar

@icedquinn evil-mode i feel sort of home, coming from vim.

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