@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

Anyone else is micro-annoyed by the current of people using the term in a very loose sense and instead of meaning "on-the-fly programming" it suddenly means "i code while i am on a live stream".

To be fair, I am not really annoyed, it is more that live coding is a different idea in nature. At least in my head, it's a registered definition..

thgs, to emacs
@thgs@phpc.social avatar

Ok so NOW, I will learn

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 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 this looks interesting indeed. Will check it out. Im sold just seeing the example.

thgs,
@thgs@phpc.social avatar

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

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

@cenbe

Sir, I honestly felt that blessing deeply.

Jokes apart, so far so good, I think is actually the right tool the more I learn about it.

My first "project" is to make me an IDE like interface that will shorten the feedback loop while writing PHP.

I'm sure along the way will get lost and explore a million other concepts than only those relative to my target.

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?

oliver, to php
@oliver@phpc.social avatar

If you were about to start a medium-sized project, what would you choose as an , and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.

Caveat: imagine that Doctrine and Eloquent haven't been invented yet.

thgs,
@thgs@phpc.social avatar

@oliver

Who is going to use with this code? I think the answer to that will be fundamental.

Say you already have a team that proficient in using Doctrine, it might be a good idea to just do that.

If you don't have a team like that and what you really want is something that would not be an impediment, scope out the real needs, right now. I assume from what you say need a mapper of some sort and DBAL ? You could roll your own with say valinor for mapping or similar + optionally a DBAL lib.

thgs,
@thgs@phpc.social avatar

@oliver Nevertheless, if you structure it well AND that layer becomes a burden in the future for whatever reason, because it is structured well you will be able to replace it easily.

In reference to hexagonal / layered architectures.

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!

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