Laravel Quickies: Use collections to generate 3-dimensional labels without one single foreach loop

Laravel Quickies: Use collections to generate 3-dimensional labels without one single foreach loop

Stefan Bauer

2 года назад

717 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@JagdeepSinghKalsi
@JagdeepSinghKalsi - 24.10.2021 21:23

It would be great if you can generate this first in PHP, and then in Laravel collection.

That should have given a much better context of what is the uniqueness/benefit of using collection.

In my experience dealing with Laravel devs (and not due to any major fault of their own), they tend to learn the "Laravel" way of doing things but they start to beleive/internalise that this is NOT doable in PHP(and by extension in any other framework/library) and this keeps their learning/knowledge pretty restricted in a certain context.

Coming from over 15 years of PHP experience, and working with Laravel devs for around 5 years now, I know this is true.

Ответить
@ProgramWithGio
@ProgramWithGio - 20.10.2021 03:57

Great video, keep it up Stefan 🙌

Ответить
@jrdev2353
@jrdev2353 - 19.10.2021 20:15

Thank you 👍

Ответить
@tipce777
@tipce777 - 19.10.2021 14:19

Nice way of using the collections, surely has opened up this crossJoin method in my eyes :)

I might've misunderstood the requirements though, aren't you missing the parts for the previous shelves? In your example of 2 shelves, you only had the labels for 2.x.x, but you didn't have the 1.x.x? Also in the example of 4 shelves, you didn't have the labels for 1.x.x, 2.x.x and 3.x.x - was that intentional? Thanks for the video

Ответить
@codewithpradeep
@codewithpradeep - 19.10.2021 13:33

Great video, Thank you Stefan.

Ответить
@bobbyiliev_
@bobbyiliev_ - 19.10.2021 12:30

Great video! Subscribed!

Ответить
@nunomaduro
@nunomaduro - 19.10.2021 12:18

Great explanation, thank you.

Ответить
@mabdullahsari
@mabdullahsari - 19.10.2021 12:16

- It feels awkward to start a video without any form of greeting
- Audio can use some tweaking (it's OK though, just some fine-tuning)
- You should post the links you show in the video description. Many people are lazy (including me) to type it over 😬
- Instead of coding the thing live, what you could do is code the end result you'd like to show, off video. Then, record the screen while shaving off sections of the code bit by bit until you have nothing left (so, go backwards). Now you can reverse the footage in your video editor and just do a voice-over of the "fake" live coding which will give you much more confidence. Even if you mess up, you can just retake the audio. That's how Jeff from Fireship (no plugging intended), creates his videos and it works in my opnion, wonderfully. Nobody's time gets "wasted".

Looking forward to the other videos :)

Ответить