dantleech,
@dantleech@fosstodon.org avatar

Going to try and make a CLI client for ClickUp using Go/Cobra - not sure I like Cobra's API/convention far, but will see how it goes...

dantleech,
@dantleech@fosstodon.org avatar

I have an inherent distrust of anything that doesn't use Dependency Injection by defaut.

dantleech,
@dantleech@fosstodon.org avatar

ok, no. too many globals, trying Kong instead :P

dantleech,
@dantleech@fosstodon.org avatar

Kong and Bubbletea and it's looking good!

dantleech,
@dantleech@fosstodon.org avatar

so bubbletea is great until you need a layout and then not so much as unfortunately the "components" don't implement the same interface...

dantleech,
@dantleech@fosstodon.org avatar

ok, tview is the library used by github CLI and it supports layouts, refactoring time...

dantleech,
@dantleech@fosstodon.org avatar

tview isn't as "fancy" as bubbletea (e.g. cannot configure border runes/characters) but it offers flex layout and has been easier to get running, I think this one is a keeper!

danrot,
@danrot@mastodon.social avatar

@dantleech totally agree! That's also why I am so skeptical about #laravel, but I guess I should check it out once and at least try to be open-minded 🙈

SuitedUpDev,
@SuitedUpDev@mastodon.online avatar

@danrot but Laravel has Dependency Injection....

danrot,
@danrot@mastodon.social avatar

@SuitedUpDev But aren't facadeds the default? Wouldn't consider that dependency injection in the traditional sense.

SuitedUpDev,
@SuitedUpDev@mastodon.online avatar

@danrot you have the option to choose. Both are perfectly acceptable options, but yeah the docs "prefer" facades over DI.

danrot,
@danrot@mastodon.social avatar

@SuitedUpDev That's already a problem IMO, since this will cause most Laravel applications to use them instead of dependency injection. In general Laravel often seems to default to the fast but unsustainable option, at least that's my impression I've got so far without digging into it too much.

SuitedUpDev,
@SuitedUpDev@mastodon.online avatar

@danrot I've been working in Laravel codebases for almost 10 years and most Laravel developers I've worked with, only use the facades for the built-in stuff like the storage, cache and queues. The rest just gets dependency injected.

And to be honest, I've never seen a Laravel codebase where the choice of facades over DI caused unsustainability / technical debt. The unsustainability part usually happened because of other reasons.

dantleech,
@dantleech@fosstodon.org avatar

also its been > 3 months since I wrote Go code, I think I've forgotten half of it

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