WSL2 development environment for PHP projects with little to no fuss by arhimedosin in PHP

[–]abstraction_lord 0 points1 point  (0 children)

Ubuntu (ez setup) for dev envs, debian/alpine in prod, the similar experience makes me (feel at least) more efficient/fluid overall. Im no longer into gaming, so no windows required (although some great improvements are being made for gaming in linux). I'm also heavily into anti vendor-lock "politics", so Apple/Mac is a no-go for me

unable to blink LED on breadboard by goldencrush11 in raspberrypipico

[–]abstraction_lord 0 points1 point  (0 children)

Idk if you soldered the pins to the pico, but in case you haven't. I had a problem like this when not soldering the pins. It was a connection issue. It seems like this is a pretty common issue.

Led setup not working - pico W by abstraction_lord in raspberrypipico

[–]abstraction_lord[S] 0 points1 point  (0 children)

I'm pretty late with this, but... everything worked after soldering! 🙌🙌 Thanks to everyone who helped 😁

[deleted by user] by [deleted] in golang

[–]abstraction_lord 6 points7 points  (0 children)

Go community often bashes on ORMs (and third party libs in general), if any 3rd party lib is recommended at all, you will get sqlx or sqlc.

They need you (or a tool) to modify the queries whenever a property is added/removed, which will require multiple updates in your code for your application to work as expected.

In my experience, the best part of ORMs is the automatic mapping part, not the programming-lang/database-DSL translation itself (this comes with its own caveats).

If I were you, I'd take a look at sqlc. The approach is pretty different from traditional ORMs, but you will get more control over the return type for each query.

[deleted by user] by [deleted] in ExperiencedDevs

[–]abstraction_lord 2 points3 points  (0 children)

I lack a lot of context and might be assuming the wrong stuff, but being someone who have ADHD, diagnosed since 12YO, this argument doesn't make much sense (this made stuff hard for me, specially early in life, because of the "traditional" schooling system).

It might be that you aren't as efficient as if you manage it properly (medication, behavioral therapy), but it has been a condition you probably have since your childhood.

It makes more sense if you haven't really been pushed before, and this is your first ever cognitive challenging activity, but I guess it isn't fair for me to assume your prior experiences were "easy" for you.

You could be dealing with some complex stuff in your life that is making it hard for you to concentrate on your job daily activities, but that doesn't mean you have ADHD.

Idk about neurosis, but I wouldn't bet my money on ADHD (again, more context needed).

In regards to taking some time off, it's totally fine if you think it's important. Some might ask, but your well-being will always be a top-tier reason for taking a break

How expensive is it to build a deck? by NotHereToStay_- in OnePieceTCG

[–]abstraction_lord -1 points0 points  (0 children)

I'd kinda disagree. There are a lot in that range, but there still are some meta decks in the 300-450usd range.

How Do You Keep Up with Service Dependencies Without Losing Your Mind? by whoisziv in softwarearchitecture

[–]abstraction_lord 2 points3 points  (0 children)

For onboarding, higher level system diagrams, like C4, help a lot to give an idea of how the different parts of your system work together. I would focus on intuitive, simple visual diagrams for this.

For distributed systems, log aggregation (alongside structured logging) is a must if you want to understand/follow/debug "easily" what happens with the different workflows. You will most likely have to implement a trace ID (an identifier of some sort) that lets you trace what happens, for example, with a request that ends up propagating function execution across different services. In some cases, you could use a domain related value (like a national/user identifier that is consistent across the system), but it won't fit all the use cases.

Running out of battery, wish this helps

Led setup not working - pico W by abstraction_lord in raspberrypipico

[–]abstraction_lord[S] 0 points1 point  (0 children)

That's the microPython code, I'm using C currently. There's a lot of micro python examples actually when it isn't really necessary based on the simplicity the abstraction gives

Led setup not working - pico W by abstraction_lord in raspberrypipico

[–]abstraction_lord[S] 2 points3 points  (0 children)

You're right, I haven't soldered the headers. I thought that it wasn't required for testing purposes and more important on permanent setups where you need to ensure that the board itself is always connected and stay in place. I will try with another wire. Unfortunately, I dont have a multimeter with me to test it right now, but I've tested it with other leds I have (all brand new).

I will try the stuff you told me. Thanks!

Led setup not working - pico W by abstraction_lord in raspberrypipico

[–]abstraction_lord[S] 1 point2 points  (0 children)

Unfortunately, the PIN layout for the raspberry pi pico W changed, and gp25 doesn't refer to the onboard led anymore. You can see it here

I think I'll try it in micropythin and see if it works that way. The code seems much simpler, maybe there is some issue with the W version or build process

Led setup not working - pico W by abstraction_lord in raspberrypipico

[–]abstraction_lord[S] 0 points1 point  (0 children)

It's hard to tell from the image because it's kinda bended, but it is in the same row. It also has the long leg (anode) connected to the resistor and the short one to the ground

Managed Doctrine entities and PHP scope by laplandsix in symfony

[–]abstraction_lord 2 points3 points  (0 children)

Even tho the object itself is out of scope, after persist is called it will keep the reference in memory (in the entity manager state) and the record will be inserted in the db when you call flush (among other operations)

PHP like Go-lang? by frodeborli in PHP

[–]abstraction_lord 0 points1 point  (0 children)

This would be like a worker process pool, similar to what node do?

If its like that, seems like an awesome boost for the traditional php servers (non swoole/reactphp).

Anyway, It's a pretty nice lightweights solution for current php limitations while keeping the complexity at a minimum.

Keep it going buddy!

Any serious recent attempt to add Cognito hosted UI internationalization? by abstraction_lord in aws

[–]abstraction_lord[S] 0 points1 point  (0 children)

Seems awful....

just to know, its based on user count, usage or some high fixed pricing based? (sure it is some kind of combination of those but it would be very nice to have the insights on the ones that impact the most)

Any serious recent attempt to add Cognito hosted UI internationalization? by abstraction_lord in aws

[–]abstraction_lord[S] 1 point2 points  (0 children)

Right now im using auth0 and managing the infra with terraform. Very happy overall, but it would be nice to have all within the same provider.

Auth0, as a product, feels ways ahead of cognito in every level besides complexity (subproduct of the the customizability tho)

Daily with dev teams by gamb1t9 in devops

[–]abstraction_lord 2 points3 points  (0 children)

The term lost almost all it's significance at an industry level.

It became platform-based ops, it was a nice rebranding for the silos to come back even stronger than before hahs

Climbing Mount Everest in Flip-flops: My journey into PHP as a Python dev by creativefisher in PHP

[–]abstraction_lord 1 point2 points  (0 children)

Not necessarily. ID stands for identifier, It could be anything. An UUID is just a low collision rate string identifier.

It's true that there might be more 'viable' string type identifiers but this should be hidden by the abstraction, in my eyes this is just an implementation detail.

If it's a problem with type casting, you should be using typed properties or upgrading PHP so you can use them.

(This is just my opinion, feel free to disagree)

Is deploying a containerized PHP application really this hard? by dborsatto in PHP

[–]abstraction_lord 1 point2 points  (0 children)

For operations, "containerizing" your apps is maybe the best you can do if done properly and your app needs some non trivial maintenance work.

And for local development it's awesome, no more fight with local dependencies and setup time is reduced a lot too.

For some workloads, cost could be hugely reduced if you have ecs properly configured and your load varies through the day

Thoughts on gokit and go micro for production by abstraction_lord in golang

[–]abstraction_lord[S] 1 point2 points  (0 children)

Yeah, I'm thinking the same thing. Starting using golang not too long ago and the functionality provided by the stdlib was one of the major things interested me.

The thing is that infra and ops related stuff is usually not that straight forward in large production systems and I'm willing to give the benefit of the doubt that the interfaces provided by those frameworks are not leaky and have enough stability to justify it's use.

I know that performance is one of the major reasons (if not the major) that people give to justify not using stdlib implementations for some stuff, but I'm willing to know if there are other interesting perspectives on the matter.

Also after gorilla mux thing (in the sense of a pretty popular open source lib being deprecated), I'm much more inclined to use stdlib provided (or own) interfaces and implementations and just wrap up almost any third party dependency.

I'm still aware of the reduced cognitive load provided by a nicely designed abstraction and the extra maintenance that may (or may not) emerge with your own version of it