chris

@chris@rtsn.dev

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

chris, to random

Working on a fun little project aimed at making string manipulation easier when dealing with ANSI escape sequences. It’s very early, but I’d love any thoughts…

https://packagist.org/packages/glhd/ansipants

ross, to random
@ross@fosstodon.org avatar

Coding thoughts:

The combination of optional/nullable types and optional chaining gives you so much temptation to write bad code.

It’s become so easy to just add a little ? here and a “| null” there to quickly fix some error you saw.

But it’s a trap!!

Once you start they breed like crazy through your codebase.

It’s weird for me to see:

x = a?.b?.c

Because if you have an a then you should know that you have a b and a c! (I know this is not the case with TypeScript)

chris,

@ross I guess my pushback on this is that sometimes things are optional and being able to express that easily and deal with it concisely is really nice. It depends on the trade-offs that make sense for your project, but I don’t mind a few ?’s here and there when they make sense.

ramsey, to php
@ramsey@phpc.social avatar

Is Brent Roose on the Fediverse anywhere? I love this idea, and I’d love to help contribute.

I started down the path of trying to port #Pygments to #PHP a while back. I maintained a PHP wrapper for it (https://github.com/ramsey/pygments), and even set up a GitHub organization for “Phygments.” 😉 https://github.com/phygments

I want to help make this happen. Maybe I’ll have to email Brent if he’s not on the Fediverse.

@freekmurze @pronskiy Do either of you know if he’s here? https://mastodon.social/

chris,

@ramsey Brent’s project looks very cool, but I also think that Ryan Chandler is about to release a syntax highlighter that uses TextMate grammar files, which will mean that it can immediately highlight almost all major languages. Very curious how the two projects turn out!

chris,

@denniskoch @ramsey Yeah, that's the nice thing about TextMate grammars… they've basically become the industry standard.

Here's Ryan's recent post about the progress of his project:

https://twitter.com/ryangjchandler/status/1769434118981288017

chris,

@ramsey Oh that's right… Tweets are behind a login now, eh?

It really sucks that the vast majority of the Laravel community is still stuck on Twitter. I would love to move 100% to Mastodon, but I would be losing nearly my entire dev community if I did :(

chris,

@ramsey I admire your fortitude!

In the end, I decided that many companies whose products I use or buy (sadly) have really problematic owners/investors. I'm not going to let Musk further ruin the real, good value I get from my community on Twitter.

chris, to php

Do I know anyone in the world who can give insight into why Symfony moved away from bundles?

chris,

@stof interesting… thank you! I've been interested in more modular approaches to building PHP apps (not necessarily Symfony), and wondered if there were any specific downsides that led to that decision. In my experience, apps of a certain size benefit from being organized into separate domains (even if you're not going full DDD), and bundles strike me as a decent way to do that.

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