lazerg liked a comment+100 XP
2d ago
I really LIKE this video.
lazerg liked a comment+100 XP
2d ago
Quick PSA. Be very, very careful if you intend to install this on your primary machine.
Ideally, opt for a dedicated old laptop or VPS.
lazerg liked a comment+100 XP
2d ago
Thanks for the overview, @jwmcpeak
With something this niche, it might take a bit to figure out some truly good use cases for it. But like you warned more than once, it's stored directly in memory, so it shouldn't be overused anyway.
lazerg liked a comment+100 XP
2d ago
@elsayed-elbeshry I'm pretty sure that's the default. In config\mail.php, there's a setting for the default mailer:
'default' => env('MAIL_MAILER', 'log'),
lazerg liked a comment+100 XP
2d ago
@jwmcpeak Thank you very much :)
lazerg liked a comment+100 XP
2d ago
@Danakin looks like you are right. I tried it and it does get added to the payload, under the illuminate:log:context key.
{
"uuid": "bded95ba-a45a-40ea-84d3-67ceae2b5dc4",
"displayName": "App\\Jobs\\Example",
"job": "Illuminate\\Queue\\CallQueuedHandler@call",
"maxTries": null,
"maxExceptions": null,
"failOnTimeout": false,
"backoff": null,
"timeout": null,
"retryUntil": null,
"data": {
"commandName": "App\\Jobs\\Example",
"command": "O:16:\"App\\Jobs\\Example\":0:{}"
},
"illuminate:log:context": {
"data": {
"example": "s:5:\"hello world\";"
},
"hidden": {
"secret": "s:12:\"don not tell\";"
}
}
}
lazerg liked a comment+100 XP
2d ago
Thanks @Danakin. I'm curious about the internal mechanism. Where, how, when are they hydrating and dehydrating the data.
lazerg liked a comment+100 XP
2d ago
What I'd like to know is how Context passes the data into a queued job, since you said Context resides in memory but queued jobs are not part of the request but are processed by a queue. How does that magic work?
lazerg liked a comment+100 XP
2d ago
The singing was great in the end,
lazerg liked a comment+100 XP
2d ago
can you show us with digitalocean ?
lazerg liked a comment+100 XP
2d ago
@untymage No. It means that you won't be able to use this exact configuration, but it should be adaptable to other services with a bit of work. I would love to see this done on something like DigitalOcean, though. It just makes sense, given that Laracasts is hosted there itself.
lazerg liked a comment+100 XP
2d ago
I don't use AWS. What should I do? Does that mean I need to use AWS to take advantage of load balancing?
lazerg liked a comment+100 XP
4d ago
I think instead of keeping the states in an 1-dimensional array, it'd be much easier to manage the user's state, calculate the winning state and visualize the overall board if it is a 2D array. Also, to calculate users' turn, one alternate solution could be simply incrementing a number on each user's action and checking if it's an odd number or an even number.
lazerg liked a comment+100 XP
4d ago
@pascal78 thank you 😊 I'm glad that decision paid off - I wanted the focus to be on websockets and server/client interactions, but something a little more interesting than messaging indicators.
lazerg liked a comment+100 XP
4d ago
Hi Luke ! Thanks you for this great course !
TicTacToe is a perfect example without too complex logic, and it allows us to focus on the websockets events and interactions via Reverb and Echo !
lazerg liked a comment+100 XP
4d ago
@sketchni so… you chose death 😁 No, all valid. If I were to be adding any additional methods, I'd definitely start splitting things out into dedicated CRUD controllers. Great break down here of the other side 👌
lazerg liked a comment+100 XP
4d ago
I was expecting this vid to start right where the previous one was cut off :D
lazerg liked a comment+100 XP
4d ago
Hi Luke, Just out of curiosity is there any specific reason apart from personal preference behind preferring the script at the bottom rather than at the top of the file?
lazerg liked a comment+100 XP
4d ago
Interesting as always, thanks Luke 🙂
lazerg wrote a comment+100 XP
4d ago
Thank you for a series !
lazerg liked a comment+100 XP
4d ago
I just tested it in the Tinker
\App\Ai\DirectAnswerAgent::fake([
['response...']
]);
$response = \App\Ai\DirectAnswerAgent::make()->prompt('hi there');
$responseB = \App\Ai\DirectAnswerAgent::make()->prompt('hi there 2');
dump([
(string) $response,
(string) $responseB,
]);
And the result is:
[
"[\"response...\"]",
"Fake response for prompt: hi there 2",
]
It does not hit the API, it returns a generic fake response (because I haven't provided my custom fake response). But it does not hit the API, because fake() was called.
But once I remove the fake() completely - it does hit real API.
lazerg liked a comment+100 XP
4d ago
It's funny how Jeremy preferred not fixing the typo in the class name because probably VScode can't rename/refactor this as PHPStorm would.
lazerg liked a comment+100 XP
4d ago
Very rushed video. I wish the details and theory were thought slowly.
lazerg liked a comment+100 XP
4d ago
@xmaop @sebastiangperez Oh wow. Thanks, y'all. I'll look and see what happened there.
lazerg liked a comment+100 XP
4d ago
lazerg liked a comment+100 XP
4d ago
There is a glitch at time 5:50 and 9:10
lazerg liked a comment+100 XP
5d ago
lazerg liked a comment+100 XP
5d ago
lazerg liked a comment+100 XP
5d ago
lazerg liked a comment+100 XP
6d ago
Solving a "it works on my machine" problem: unknown unknown -> known unknown -> known known -> solution!
lazerg liked a comment+100 XP
6d ago
Use type until you need something interface provides.
Both are totally valid and often interchangeable. My personal rule: start with type unless an interface-specific feature makes it necessary.
@JoeBot compare Type vs. Interface
lazerg liked a comment+100 XP
6d ago
Following the video and it is one of the clearest explanations I've seen for Typescript types. Thank you!
lazerg liked a comment+100 XP
1w ago
There aren’t many opportunities for CEO to teach me programming.
lazerg liked a comment+100 XP
1w ago
No way a CEO teaching me programming. Incredible!
lazerg liked a comment+100 XP
1w ago
This is a great series. Especially now that I am learning a bit about what Claude Code can do and how best to implement this in my daily work as a programmer.
Thank you!
lazerg liked a comment+100 XP
1w ago
One trick I use after design comes back without pixel perfection is to annotate on the design, then ask my agent to review the original screenshot versus my annotated screenshot and then list all things that are wrong, before I confirm it can proceed to fix. I find that this approach drastically reduces the back and forth as the agent is forced to review its own work, aided by the annotations, itemise it for agreement and can proceed to one (or second) shot the design.
lazerg liked a comment+100 XP
1w ago
Its not you Jeffrey its the "twitter" where all magically works one shotting it :)
lazerg liked a comment+100 XP
1w ago
@SabatinoMasala thanks, do you have a post or video about learning Linear so we can check in?
lazerg liked a comment+100 XP
1w ago
Great course! Really love it and appreciate all the learnings. One thing though, where can we find the files for this course?
lazerg wrote a comment+100 XP
1w ago
Off topic: How do you guys create the opening videos with Ralph in them? They look really cool. Do you use any tools?
lazerg liked a comment+100 XP
1w ago
Is there some rule as to how semi-colons are used?
lazerg liked a comment+100 XP
1w ago
In WebStorm, unless I use a // @ts-ignore above the suitMeaning() function, I get a 'not all code paths return a value' error and the code won't compile. It specifically underlines the (suit: Suit) => { line. Any ideas why this might occur? If I use // @ts-ignore it compiles and works fine.
lazerg liked a comment+100 XP
1w ago
That's great to hear, thank you. This was one of the trickier videos to plan and I'm glad I was able to communicate the differences in a way that helped.
lazerg liked a comment+100 XP
1w ago
This is such a good explanation. I found myself using enums thinking it was the 'typescript' way to do things, when really I should've been using literals.
This really answers the 'when would I use enums at all?' question perfectly.
lazerg liked a comment+100 XP
1w ago
@Michael_Timbs The link to your Medium does not work :/
lazerg liked a comment+100 XP
1w ago
REDIS does not require a different server- u can use it in the same server as you have right now for your dev. but a separate server would be a better choice.
lazerg liked a comment+100 XP
1w ago
@lazerg I'm also waiting. :)
lazerg wrote a comment+100 XP
3w ago
Hi @jeffreyway ... When we will have the continuation?
lazerg liked a comment+100 XP
3w ago
no more sharing the code?