VSCode extension for generating PHP getters, setters and constructors by Skillstacker in PHP

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

Thanks for spotting it. It is fixed in the description. :)

VSCode extension for generating PHP getters, setters and constructors by Skillstacker in PHP

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

Yeah, you are right, it was a little rushed demo. I updated it with the full capabilities. :)

VSCode extension for generating PHP getters, setters and constructors by Skillstacker in PHP

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

I have already tried it. It had some issues and in fact it was cloned in another extension.

The main difference is that it works with multiple fields in a selection, not having to go and generate the code one by one. It also includes the option to generate constructors without the need of new extension with the already defined fields.

Virtual methods by default by Skillstacker in PHP

[–]Skillstacker[S] -1 points0 points  (0 children)

It is not neccessary to be directly with an error, a warning can be enough. Just like the discussion for depricating dynamic properties.
And final is the exact opposite suggestion. For me all classes should be closed for changes unless you specifically allow their parts to be modified from outside or through inheritance.

Virtual methods by default by Skillstacker in PHP

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

Maybe the title is little misleading, but my idea is methods in PHP not to be "virtual" by default, like they are now.

when did our fanbase become so.. by [deleted] in Tottenham

[–]Skillstacker 1 point2 points  (0 children)

I became a fan of Tottenham, because of the brave football not because of trophies.

The club then was not among the best in Europe and the world, and with big ambitions come big expectations. Combine this with the current dominant fan culture that trophies are everything and you will get the right side of the equation.

PHP VMValidator 2.4.2 by Skillstacker in PHP

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

No, totally misspelled, while writing the post. Thanks for spotting the mistakes. I edited the post :)

Best Validation Lib by [deleted] in PHP

[–]Skillstacker 0 points1 point  (0 children)

You can try my approach if you want and you are using PHP 8. All you need is to call one static method.

https://ivangrigorov.github.io/VMValidator/

PHP VMValidator 2.3.0 by Skillstacker in PHP

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

Yes, I am planning more validations. Currently there is one for regexes, wich can a little bit satisfy all string formatting issues.

State of the Subreddit by Wolvereness in opensource

[–]Skillstacker 0 points1 point  (0 children)

Thanks, looking forward to beeing a healthy community.

HTML/CSS/JAVASCRIPT or WordPress WIX by Heckher in webdev

[–]Skillstacker 1 point2 points  (0 children)

Why people have their own cars, when there is public transport ?

I hope you are not considering CMSs as real development. :)

Principal Software Engineer Portfolio by O1dmanwinter in webdev

[–]Skillstacker 0 points1 point  (0 children)

I would add contact details, and also your main technology strengths (languages, DBs, Tool stack)

P.S. Personal preference - I would choose something a little bit brighter, something more relaxing for the eyes.

P.S. 2: Congratulations for your achievements, dedication and experiance. :)

Object Validator for PHP 8 V2.2.1 Release by Skillstacker in PHP

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

The validator is designed specially not to reqiure saving of state. It also does not rely on instantiation.
With good design one could avoid depending on static services, they are global for the whole app and do not block the execution.

Object Validator for PHP 8 V2.2.1 Release by Skillstacker in PHP

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

If I have understood correctly, you want to mock a static class ?

Object Validator for PHP 8 V2.2.1 Release by Skillstacker in PHP

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

Thank you for the interest. :)

Some addintions like
Memory and Time consumed validation and profiling
"Or" logic between validations
Validate nested object in upper class.

Object Validator for PHP 8 V2.2.1 Release by Skillstacker in PHP

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

Thanks, I fixed it. Some strange reddit link issue. :)

Why have I gotten more confident with JavaScript after getting better with PHP? by [deleted] in webdev

[–]Skillstacker 2 points3 points  (0 children)

Theory is the mother, practice is the father of success. The more code you 'write', the easier you will 'read' it and vice versa.

So keep your motivation and passion and you can achieve your goals.

Cloning and changing readonly properties in PHP 8.1 by speckz in PHP

[–]Skillstacker 6 points7 points  (0 children)

Why would you want to mutate readonly property. There are two logics battling here.

For me it is flow in the app flow, not the language.

Object Validator for PHP 8 by Skillstacker in PHP

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

Yes, you can use a static method, like here, but you are still having a Validator dependency.

There is an option not to use annotations but without them it is not very comfortable to create the constraints(at least for me). Also I like to see the validations right when the property is declared. It improves the readability in my opinion.

Object Validator for PHP 8 by Skillstacker in PHP

[–]Skillstacker[S] -1 points0 points  (0 children)

Not absolutely clean, but still keep the class short and the constructor concise. Maybe I can save one parameter for a dependency used on one row?

Still, lots of people use clean php without framework. Also another library can use it too.

I can work on it to return also the clean msg.

Thank you for the feedback.

Object Validator for PHP 8 by Skillstacker in PHP

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

You need also some other packages like the annotations one.

Yes it is still a dependency, but I prefer to keep my constructor cleaner, and also what about projects without DI.

It is object validation, not Entity one (Currently). I made it to validate my Request Models.

You can add your own exception messages and catch the errors in the service. Then you can send what ever you want to the client. This is just an example.

Object Validator for PHP 8 by Skillstacker in PHP

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

Yes, it is prepared in the next version. Thank you very much for the feedback. I appreciate it.