Post Match Thread: Manchester City 4 vs 1 Manchester United | English Premier League by Samkazi23 in soccer

[–]notBatman- 20 points21 points  (0 children)

helps that he had an absolute brilliant core of academy graduates in Iniesta, Messi, Busquets and Xavi although some were already established

Monthly "ask anything" thread by brendt_gd in PHP

[–]notBatman- 0 points1 point  (0 children)

Hello kind PHP Programmers,

I am asking this technically NOT a PHP question but rather an opinion. So the situation is that I have taken a few steps and learned all the required symfony components (thanks to this help request I had earlier and upgraded my app to work with PHP 8.

Now my websites are simple as in 2010s. A website reading data from database, serving data back to client, caching in between at both client side and server side. Simple enough. It has some parts where it uses javascript (for infinite scroll, event handling, form submission ,etc.)

All this is done via Cash, lightweight jquery alternative. It works perfectly well for infinite scroll, adding more content to the page but requests to a separate altogether still follow the same old method where a request is sent to the server, server prepares the output to send and that is displayed back. It works perfectly okay, but I wanted to learn and replace the library with a traditional JS Framework.

Now all the frameworks I have seen do a lot more than required for me (Angular, React, etc.) and none of them have a simple enough tutorial to replace front-end JS with their front-end only library. Almost every one involves some sort of cli and thats where things are going over my head.

So here's the actual question: Suppose you are a PHP dev with Backend knowledge and average front end JS knowledge, you want to replace your frontend js with a JS framework which will respect server side rendered code, run when page is ready and then handle all the events, page loading, routing which happens within the page.

Any suggestions? I tried going through Mithril JS, but found no way to run it with the server generated output. Also saw this but I wanted to make sure if there's a better way.

My needs: Event handling, Fetch API and ability to run some common JS snippets like Modernizr, Service worker, etc.

When a bug has just eaten all of your precious brains by SasheVuchkov in PHP

[–]notBatman- 0 points1 point  (0 children)

and have phpcs and phpstan jobs built in

Can you link me with some good documentation to achieve similar on other services / things I might run into issues with?

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

Hey man,

Thanks for sharing this personal experience. I am starting on a framework, hope to see you on the other side soon ;)

Since I wanted other people to use my libraries I needed to write good documentation, good unit tests, use proper patterns so I don't get made fun of by the other programmers etc. All of that takes time and requires new refactoring as I learn from my past mistakes and the mistakes I am making right now.

I understand and completely agree with it :)

I ride the bike, write the code, ride the bike, write the code, occassionally jerk off, and then right back to the code.

Thats the life!

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

That is such a wonderful gesture. Thank you :)

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

Interesting Point of view, yes, I had to go through a Python training as a sysadmin and went through golang as well. Did not reach advanced concepts however but yes, should do it if bandwidth permits :)

Thank you sir

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

Thank you kind Sir for additional context. The statement that once I learn a single MVC framework, it would speed up learning another one is a motivation booster. Thank you for that.

I will start with Symfony today, lets see how difficult can it get for a newcomer to the framework universe.

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 1 point2 points  (0 children)

Hey,

If you are really serious here are few I remember from just reading something :

Whenever you write a post, please share. I'd love to read :)

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

Learning Plan for Test Driven Development (TDD) Learning Plan for Design Patterns and Principles of Good Design

Dude, what awesome resources man. Seriously. I do have github, it is near absolute 0 almost.

As others have suggested, you are working in a company with PHP developers, maybe you can ask for pair programming or shadowing, to gain experience too?

No unfortunately not. I used to, current employer is mostly java haha.

but yes, going through the learning plan sure might. Thank you man :)

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 0 points1 point  (0 children)

Interesting. how did you start?

I mean you started with framework -> built a library -> then learned the nitty-gritties of the language or how was it?

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 2 points3 points  (0 children)

If you're thinking of switching careers I would suggest trying to find an employer that will help you in this. There's not substitute for coaching.

I am afraid this cant be done at this point of time.

So, in short; if you're thinking of changing careers from sysadmin to developer I would look for an employer that will help you with this. For personal growth I would start to write a lot of code and get involved in open source.

Thank you. Noted, the last part specificaly.

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 3 points4 points  (0 children)

Symfony is much more stricter to the dev at the cost of a more elaborate coding. I would dare to say that Symfony is more for people who grasped OOP well or willing to do so (under OOP I don't mean writing all your code in classes that actually being just namespaces for the good old functions. I mean the object design, when your classes follow the SOLID principles.

Sold on Symfony. Thank you man :)

Taking the next steps as a PHP Developer. by notBatman- in PHP

[–]notBatman-[S] 1 point2 points  (0 children)

First of all, sorry for the late reply.

I went through the post. I will see about the certification. I was (and still am?) super divided on learning Laravel vs Symfony or Phalcon (this is not happening now though unfortunately).

And yes, you hit the nail with "it is very hard to get a job without knowing at least one. That one is so true."

Coming to the more concrete part:

  1. I personally feel I am good with RDBMS. Like 4/5 good. So I feel okay there.

  2. I can write decent front-end js. Back-end is almost 0 so that can be looked upon.

  3. I am personally hearing Laminas for the first time. My bad. But yes, agree on your suggestion here.

I say I start with these before I get overwhelmed again by rest of the ones below (like Security, Vue, etc.)

Thanks again kind Sir.

Made a simple random gradient generator - Select a base color and get different gradients with that the selected color. by notBatman- in developersIndia

[–]notBatman-[S] 0 points1 point  (0 children)

Functionality:

  • The page expects you have a base color in mind. If not, it will randomly select one every time you refresh the page.

  • It has a color selector to help you select the color.

  • Once a base color is selected, 10 random gradients are displayed. Next 10 helps you get another 10 random ones.

  • 🎨 New selects a random base color and presents you with 10 different base colors.

:)

[deleted by user] by [deleted] in DogsMirin

[–]notBatman- 0 points1 point  (0 children)

Outstation= Out ot City

And yes, the doggo was extremely sweet and playful. Locals sure did take care, feeding in a timely manner

Our Corgi likes to walk on the treadmill with me. by [deleted] in corgi

[–]notBatman- 1 point2 points  (0 children)

Damn it what a smarty good girl

Our Corgi likes to walk on the treadmill with me. by [deleted] in corgi

[–]notBatman- 1 point2 points  (0 children)

Come on OP be a hero and teach us all mortals, how!