@ntha@mastodon.social avatar

ntha

@ntha@mastodon.social

Software Engineer, open sourcerer, tinkerer of things.

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

array, to php
@array@fosstodon.org avatar

My first was 8.0, still in school, and I confess that I began learning it with the prejudice of it being a junky, terrible language everybody was making fun of. Fast forward ~1 year later, after finishing my internship, where I used full stack mainly, and having discovered that not only it wasn't that bad, but really a pleasure to work with. Not perfect, but perfectly suitable for its use cases and, what's perfect anyway? So reading this has been a joy. :D https://developerjoy.co/blog/php-doesnt-suck-anymore

ntha,
@ntha@mastodon.social avatar

@hydrian @array @blu256 Besides WordPress, I also see a lot of greenfield development efforts going on with Laravel and Symfony.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 Wouldn't call the most used web back-end programming language a corpse tbh. It's just not in the current hype cycle anymore. Those who spend their days chasing the latest trends might care about that, but the rest of us who just want to get stuff done appreciate maturity.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 Ah sorry, didn't read too far back to have the right context, so assumed corpse in bad-faith rather than in irony. Text based communication be damned!

But yeah, hating on PHP is like a sub-culture at this point. Everyone's favourite punching bag.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 But you know, after being away from PHP for half a decade doing other languages, coming back to PHP I feel I can have so much impact working for medium sized digital agenies, introducing version control, CI/CD pipelines, proper testing and code quality. Day in and day out my existence actually matters.

As opposed to working with the JS tech stack of the week in a modern start-up and watching my life pass by in agile meetings wondering if I will ever matter.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 So I guess what I'm saying is, the more people hate on PHP, the more impactful work I have left to take, and I don't mind that one bit.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 I think Java is awesome, and a really solid choice for when you want to create something that you can be sure to still run fine 10 years later.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 Yeah! The way I run SQL stuff is with my own thin wrapper class over PDO, which instead of a SQL query takes a name of a SQL file, but still passes data through via prepared statements and via sanitization.

ntha,
@ntha@mastodon.social avatar

@array @hydrian @blu256 Do you assign data to Dto/Model classes (for better editor integration) or just keep it as a HashMap of some kind? In PHP I've been lazy and just keep everything as an array, even though for type support casting to a Model class would be better.

StillIRise1963, to random
@StillIRise1963@mastodon.world avatar

Racist ass white people have made a fucked up mess of the entire world.

ntha,
@ntha@mastodon.social avatar

@ralph058 @StillIRise1963 This is some weird ass "only white people are racist" type stuff again, isn't it. Which by definition itself is racist towards white people, but that's ok, we've decided.

ntha, to random
@ntha@mastodon.social avatar

Not too big of a fan of frameworks myself, unless we’re dealing with a huge project of course, but otherwise I prefer small, composable libraries to make up the need in a tight fit, with no un-needed parts being present.

ntha, to php
@ntha@mastodon.social avatar

Modern React.js with Vite is really nice, with out of the box TypeScript support and all, but by far my favourite text stack is most likely #php with #htmx. It's the simplicity that gets me.

ntha,
@ntha@mastodon.social avatar

@maxalmonte14 Yeah! And HTMx is really powerful with its X-Trigger headers (https://htmx.org/headers/hx-trigger/) that can do events and so forth if you need a little more oomph, and then there's plenty extensions as well to make, for example, dependent things trigger (https://htmx.org/extensions/path-deps/).

I even made a block based WYSIWYG editor entirely with PHP + HTMx just to prove that you can do some very interactive things usually thought to be only possible in SPA's.

ntha, to php
@ntha@mastodon.social avatar

Now if only we could get the pipeline operator into , I could die happy. Meanwhile however @Crell 's fp library will fit the bill nicely: https://github.com/Crell/fp

ntha, to php
@ntha@mastodon.social avatar

I for one can’t wait for property hooks in 8.4.

janriemer, to rust

C++ will be taken over by #Rust.

What will be the Rust-equivalent for #JavaScript?

I mean #TypeScript is a very good first step, but it's basically the C++ for C.

So in short:
C => C++
JavaScript ≈> TypeScript
C++ => #RustLang
JavaScript => ???

I think it will be a looong way to go, but maybe, maybe we'll see more and more #WebAssembly in the #frontend, but not quite sure yet.

#WASM #ProgrammingLanguage #CPlusPlus #C

ntha,
@ntha@mastodon.social avatar

@janriemer I've done some WASM in Rust and have really enjoyed it, however I feel like the learning curve for that is way too high for most web devs to start doing that. Convenience seems to always win over safety when it comes to humans.

ntha,
@ntha@mastodon.social avatar

@Aedius @janriemer as long as you can’t leverage the massive frontend ecosystem of libraries with wasm I doubt this very much.

ntha,
@ntha@mastodon.social avatar

@Aedius @janriemer Can you use other ESM libraries within your Rust Web Component? E.g

import 'https://esm.sh/some-library'

And then use it? Because if not then I'd say that while yes you can create Web Components, it doesn't really integrate with the ecosystem, not fully at least.

ntha,
@ntha@mastodon.social avatar

@Aedius @janriemer I think you misunderstood what I meant - I did not mean if your web component is importable to others, I'm sure it is - I meant if you can import JS libraries within your Rust Web Component? Because if you can, that would be very cool.

ntha,
@ntha@mastodon.social avatar

@Aedius @janriemer At least I'm not able to find from wasm-pack documentation that it would be possible, so I assume it's not. Which mean you don't really have access to any of the JS ecosystem and can't leverage existing JS libraries, you can only create JS libraries. And that would mean having to re-invent so many wheels that it makes Rust not a serious option for work, for me at least.

ntha,
@ntha@mastodon.social avatar

@janriemer @Aedius Having had done Clojure/ClojureScript for 6 years taught me to generally try to avoid parasidic languages, because they seem to always be second-class citizens and encourages the creation of native "wrappers" to get proper IDE support for when interop is used, and it just is a massive grind and headache in the long term, so I'd rather just use JS itself even if it's not my favourite language, but the DX is just so much better.

ntha,
@ntha@mastodon.social avatar

@janriemer @Aedius Oh damn, that is cool. So yeah, I guess you can indeed use the entirety of the JS ecosystem within Rust. The only thing that really sucks and ends up being a huge grind is having to maintain Rust-definitions for those JS libraries, because it won't be able to automatically know any of that. Understandable, but sucks nonetheless.

Still, very cool.

ntha,
@ntha@mastodon.social avatar

@Aedius @janriemer Well no not really, TypeScript can pick up JSDoc comment blocks as well and infer types from those, thus making it so that you don't have to recreate and maintain anything on your part. Besides that, most projects provide TS types themselves, so it's a non-issue in either case.

Whereas in Rust you have to do it yourself 100% of the times and if you're using 10+ libraries then that very quickly becomes unreasonable.

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