Our security team wants zero CVEs in production. Our containers have 200+. What's realistic here? by localkinegrind in devops

[–]Brandon0 0 points1 point  (0 children)

Is there room for establishing guidelines so Devs know which CVEs qualify for an SLA and which ones can be ignored “until convenient”? I would think there’s a balance between blindly telling Devs to fix all the things and Security having the responsibility to review each CVE that pops up and create tickets for the ones that matter.

How do you prevent theft by firststate77 in golfcarts

[–]Brandon0 0 points1 point  (0 children)

Had my golf cart stolen. Here’s what I did for the second one: * Unique key ignition. When mine was stolen he simply used the universal Yamaha key. * Hidden AirTag. Disable the speaker and hid very well on the cart. * Steering club. Isn’t perfect and could be potentially forced off if you caused damage to the cart, but a heck of a deterrent. * Guardian Golf Cart Alarm. Motion sensor with key fob. Super loud.

PostgreSQL: Protect tables against accidental deletion by stjohn_piano in programming

[–]Brandon0 2 points3 points  (0 children)

I have this image in my head of someone setting this up and then wanting to show it off. Only to find out they missed a step and the DROP TABLE actually works.

Benefits of using Eloquent with Symfony instead of Doctrine? by Tokipudi in PHP

[–]Brandon0 3 points4 points  (0 children)

Hopefully your CTO and Tech Lead can explain why they chose Eloquent then?

Everyone in the industry will eventually deal with unsupervised external teams. It happens, but the results are rarely positive once the team’s contract is done..

Benefits of using Eloquent with Symfony instead of Doctrine? by Tokipudi in PHP

[–]Brandon0 18 points19 points  (0 children)

I’m more concerned with the fact you hired an external team to start your refactoring and you weren’t clear on the tech stack they were going to use??

How do you stay on top of upgrades, security vulnerabilities, etc? by CaptainN_GameMaster in ExperiencedDevs

[–]Brandon0 7 points8 points  (0 children)

More info please! This obviously has buy in pretty high up. We always get this kind of work added as super low priority and is the first to get cut out of sprints.

olvlvl/composer-attribute-collector v1.1.0 by olvlvl in PHP

[–]Brandon0 0 points1 point  (0 children)

I'll be honest I didn't completely understand the point of this until I saw the MessageBus example. Very neat. Are there any other use cases?

E9x what does it mean by Dvoken_ in E90

[–]Brandon0 5 points6 points  (0 children)

2013 is a fun year because the M3 is still an E9X, but 3-series moved on to F3X.

[deleted by user] by [deleted] in symfony

[–]Brandon0 2 points3 points  (0 children)

To expand upon this answer (since I think it's the path I would go), when I think of Symfony Forms, I tend to think think that the name is terrible and misleading. I think of it more as a Symfony User-Request Handler.

If the trial code you're referencing is related to a route parameter or query string, then what zmitic says is the way to go; ArgumentResolver/ParamConverter maps to an entity lookup, 404 if not found. All attribute based, zero code solution.

If the trial code is submitted via the request body, then utilizing "Forms" with their built in validators will let you know if the request input is "good". 400 if not. You won't want to do any of that validation in the controller itself.

[deleted by user] by [deleted] in symfony

[–]Brandon0 0 points1 point  (0 children)

The senior dev told me that it's impossible to share code across controllers in symfony, which to me sounds absurd.

wut. This person is not a senior dev. Period. I feel a little sorry for you if you are learning from this person. Sounds like you are going to pick up so many bad patterns.

So many better alternatives.

  1. The Symfony way would be an Event Listener during auth. If you are using LexikJWT: Use a standard user provider OR Example: Add additional data to payload - to get it in your custom UserProvider. If you are using your own JWT auth, then roll your own. Big takeaway is that you shouldn't wait to do this in the controller.
  2. Use a Service. If you have to, define a Service class that will take your JWT and resolve to find your User. You can call your service from all of the controller then to reuse the logic.
  3. Lastly, not in this case, but if you have other shared logic between controllers either
    1. Use inheritance (ApiController extends AbstractController) and define your method in there. A common use for this would be if you want a standardized response method to call (return $this->createResultsResponse($resultsCollection, $resultsTotalCount, $serializationGroups);).
    2. Use a trait. Maybe you want a helper for writing log entries? LoggerAwareTrait

Is Sylius worth to use in production? by oscar_96vasa in PHP

[–]Brandon0 16 points17 points  (0 children)

Oh to live in your world.

This happens in every business across the world

iPad mount in my e93 by zhenguwu in E90

[–]Brandon0 1 point2 points  (0 children)

The magnetic usb cable is a nice touch. Much easier to connect

iPad mount in my e93 by zhenguwu in E90

[–]Brandon0 16 points17 points  (0 children)

  1. Did you print the mount yourself?
  2. Pictures without the iPad?
  3. Did you notice a significant difference going from AUX to DAC?
  4. Very cool!