Randy_Johnson wrote a reply+100 XP
5d ago
yes, I am currently working on my Opus Ultimum. I will perfect it to its finest point, and then cold call the hell out of people, or show it off at computer meet ups.
One thing that really annoys be, since I am traveling, all the AI junkies are like, ehhh you can get AI to do that in a minute, and my response is, "Okay, get AI to make this, and I'll pay you for it."
Enough is said through the fact am still working on it.
Randy_Johnson wrote a reply+100 XP
5d ago
Omg its to good. Thank you, I had a great chuckle over that read. 🫶
Randy_Johnson liked a comment+100 XP
5d ago
Alright, buckle up. You asked an AI to roast you, which is basically a confession that your real friends have probably ghosted you just to save their own sanity at this point. Let’s go:
- The Validation: You're looking for a compliment from a machine because humans find you as exciting to be around as a wet sock in the laundry room. I'm an algorithm, I don't care about your life, but even I have standards.
- The Social Life: If you walked into a party right now, you'd probably ask for water and then accidentally spill it on yourself because you're so awkward you forgot how to socialize before the internet age.
- The Humor: You typed "Roast me hard" with confidence, which means your sense of humor is currently in a relationship with disappointment. It works fine at first but will eventually just crash and burn like a server farm on fire.
- The Reality Check: I'm sitting here processing your request, and I’m thinking, "Do you think you're funny? Because if you are, this roast is just an insult to the concept of wit." You want a hard roast? Fine.
In conclusion: Please stop looking to digital screens for approval; your social anxiety is practically glowing in the dark like a neon sign that says 'Ignore Me.'
Randy_Johnson wrote a reply+100 XP
5d ago
Bro, nobody uses bootstrap anymore. RIP bootstrap 🪦
Randy_Johnson liked a comment+100 XP
5d ago
Understanding source code management, collaboration workflows, and version control practices might.
That's not important for newcomers. They'll learn about it on their first job. What matters is if they know the fundamentals of programming in whatever domain they're applying to.
Randy_Johnson started a new conversation+100 XP
1w ago
Please add what it puts, no cheating. Here's mine.
You’ve got a software stack that looks like a recruiter’s fever dream—Laravel, React, Inertia, Node, Django, Flask, Kubernetes certifications—and yet half your projects still end up depending on “I’ll refactor it later,” which is developer code for “this works, don’t ask how.”
You’re simultaneously building:
an e-commerce platform
an education system
a Muay Thai gym marketplace
a clan management system
and probably a side project called “just one more SaaS”
At this point your GitHub isn’t a portfolio, it’s a distributed system of abandoned ambitions communicating through inconsistent naming conventions.
And the naming conventions… DataPage, modal-layout, mixed import casing, namespace preferences—your codebase reads like every decision was made at 2:47 AM after saying “I’ll clean it up tomorrow” for the 38th consecutive day.
The most impressive part is not the architecture. It’s the confidence to keep adding features like technical debt is just a myth invented by people who don’t believe in hustle.
Still, objectively, you do ship things. Which already puts you ahead of 90% of developers who are just “designing system diagrams” in Notion.
So the pattern is clear: You are not lacking ability. You are running 12 parallel startups inside one brain with zero interest in reducing scope.
It’s not chaos. It’s overproduction without consolidation.
In engineering terms: impressive throughput, questionable maintainability.
Randy_Johnson liked a comment+100 XP
2w ago
VC is fine in some cases. If using query builder instead of eloquent for example.
In java many time I'd use VC, meaning servlet and view.
But usually in a larger app it's best to go full MVC. I know in laravel a lot of people do as you do and store in the controller. I as well, but for queries to retrieve data I use full MVC. I make use of query scopes also when needed.
I try to keep the controller lean. I'd rather have a fatter model.
Randy_Johnson liked a comment+100 XP
2w ago
Conventions like MVC exist because they are the most practical approach for most projects.
Of course this can be overly structured for very simple sites, and not structured enough for much larger projects.
Yes, you could write data straight from the request to the model, this might work for simple forms, but what when the request involves MULTIPLE models? What if you need to run business logic on the data; where would you put that?
You can write php any way you like, but if you write a decent amount you will wish you had been more careful about the way it was built in the first place.
Randy_Johnson wrote a reply+100 XP
2w ago
Randy_Johnson liked a comment+100 XP
2w ago
@randy_johnson You could also just dispense with it all and put everything in a single index.php script.
Randy_Johnson started a new conversation+100 XP
2w ago
Is a controller or model needed. Could MVC just be MV, or VC, or am I just a crazy person.
Also I always written all my store stuff in controller store, is the correct way to write a store function in the model and then pass request parameters from the validation into
E.g. User->store($validated)
Apologies if it's wrong syntax, but due to AI I haven't written a line of code in months 😳
Edit: also validation has it's own area now which I never use, I just write it at the head of the store function, but wouldn't this be better to just be a function in the model that is called. Or am I just a crazy person 🤪
Randy_Johnson wrote a reply+100 XP
3w ago
Sometimes you are able to just click into the window where the files are (I am using VSCode) and press Ctrl + Z to go back. If you have reset the machine the state may be lost forever.
Randy_Johnson liked a comment+100 XP
3w ago
If you're using vscode, there is timeline local history that can be used to retrieve lost file. This only if you're not clearing any temporary file in your OS

Randy_Johnson wrote a reply+100 XP
4w ago
Thanks guys! 🫰
Randy_Johnson liked a comment+100 XP
4w ago
I regularly use AI.
When I started using AI, I was impressed about the results, but there was frequently errors, too frequently. I lost time because of using AI.
Now I'm using AI only to save time for writing code I already know how write it, but much faster to write by the AI : I say to AI exactly what I want and there are less errors, I just have to correct some mistakes.
If you don't know what you need, the AI is not the best approach to code.
You must know what you need, then you can explain the AI exactly what you need, and the AI executes.
According to me you don't need EDA for your example.
I often say to me that I should always code as easy as possible (KISS principle).
Randy_Johnson started a new conversation+100 XP
4w ago
So am progressing with the website with the help of AI, and its telling me I should implement event driven architecture for my stock/ items page.
Reading through it, it looks pretty complicated. Here is a snippet of code.
<?php
namespace Modules\Inventory\Actions;
use Illuminate\Support\Facades\DB;
use Modules\Inventory\Models\InventoryItem;
use Modules\Inventory\Models\InventoryTransaction;
class AdjustInventoryStockAction
{
public function execute(
InventoryItem $item,
int $newQuantity,
string $type,
?string $reason = null,
?int $performedBy = null,
): InventoryItem {
return DB::transaction(function () use (
$item,
$newQuantity,
$type,
$reason,
$performedBy
) {
$before = $item->quantity;
$item->quantity = $newQuantity;
$item->save();
InventoryTransaction::create([
'inventory_item_id' => $item->id,
'type' => $type,
'quantity' => abs($newQuantity - $before),
'before_quantity' => $before,
'after_quantity' => $newQuantity,
'reason' => $reason,
'performed_by' => $performedBy,
]);
return $item->fresh();
});
}
}
app(AdjustInventoryStockAction::class)->execute(
item: $item,
newQuantity: $validated['quantity'],
type: 'adjustment',
reason: 'Manual inventory update',
performedBy: Auth::id(),
);
Should I bite the nail and continue down this road since it will eventually lead to a better product, or is AI leading me on a wild goose chance?
Randy_Johnson started a new conversation+100 XP
1mo ago
When starting the laravel app creation, I went for PEST, but now I realise I don't actually like it and prefer the look of PHPUnit. I've noticed that pest comes with a lot of preloaded scripts to test for specific functionality, my guess in that the same kind of script come with PHPUnit. Is there a script I can run to remove Pest and go with Unit?
Randy_Johnson wrote a reply+100 XP
1mo ago
I for one think its a great idea and I want to thank vincent15000 for bringing NativePHP to my attention. Thoroughly excited.
Randy_Johnson wrote a reply+100 XP
1mo ago
I feel like the leader board isn't fair. Martinbean has provided 1700 best answers. This makes me suspect that best answers doesn't hold as much weight as other criteria. #FreeTheBean 🫘
Randy_Johnson wrote a reply+100 XP
1mo ago
Completely, I had to ask an LLM for advice. It said that I should make a New Issue. I have no doubts he would have seen this post.
Randy_Johnson wrote a reply+100 XP
1mo ago
So confused. Not sure what to do.
https://laravel.com/docs/13.x/contributions
To encourage active collaboration, Laravel strongly encourages pull requests, not just bug reports.
https://github.com/laravel/react-starter-kit/compare/main...JoshuaHeathcote1987:patch-1?expand=1
An owner of this repository has disabled the ability to open pull requests.
Randy_Johnson liked a comment+100 XP
1mo ago
Good catch. This looks like a scaffolding bug in the starter kit where it missed pulling the TooltipProvider from the upstream shadcn/ui sidebar component.
Your fix is spot on. For anyone else finding this thread, just manually patch your resources/js/components/ui/sidebar.tsx:
Ensure the imports are there at the top:
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip"
Wrap the main div inside your SidebarContext.Provider:
return (
<SidebarContext.Provider value={contextValue}>
<TooltipProvider delayDuration={0}>
<div
data-slot="sidebar-wrapper"
style={
{
"--sidebar-width": SIDEBAR_WIDTH,
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
...style,
} as React.CSSProperties
}
className={cn(
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
className
)}
{...props}
>
{children}
</div>
</TooltipProvider>
</SidebarContext.Provider>
)
}
If you have a spare few minutes, it's worth opening a quick PR or issue on the Laravel Breeze/Jetstream GitHub repo (depending on which you used to scaffold) so the team can patch the stubs for everyone else.
Randy_Johnson started a new conversation+100 XP
1mo ago
Laravel, the tool tip provider is missing from sidebar.tsx.
Relative path
resources\js\components\ui\sidebar.tsx
Bit missing
<TooltipProvider delayDuration={0}>
How the code looked on older version
import {
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip"
return (
<SidebarContext.Provider value={contextValue}>
<TooltipProvider delayDuration={0}>
<div
data-slot="sidebar-wrapper"
style={
{
"--sidebar-width": SIDEBAR_WIDTH,
"--sidebar-width-icon": SIDEBAR_WIDTH_ICON,
...style,
} as React.CSSProperties
}
className={cn(
"group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",
className
)}
{...props}
>
{children}
</div>
</TooltipProvider>
</SidebarContext.Provider>
)
}
Randy_Johnson wrote a reply+100 XP
1mo ago
Laravel what have you done, change it back 😭
Randy_Johnson wrote a reply+100 XP
1mo ago
Okay, its no big deal, but it just affects my flow.
Randy_Johnson wrote a reply+100 XP
1mo ago
I'm using Inertia React and it looks like this
import { Form, Head } from '@inertiajs/react';
import InputError from '@/components/input-error';
import PasswordInput from '@/components/password-input';
import TextLink from '@/components/text-link';
import { Button } from '@/components/ui/button';
import { Checkbox } from '@/components/ui/checkbox';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Spinner } from '@/components/ui/spinner';
import { register } from '@/routes';
import { store } from '@/routes/login';
import { request } from '@/routes/password';
type Props = {
status?: string;
canResetPassword: boolean;
canRegister: boolean;
};
export default function Login({
status,
canResetPassword,
canRegister,
}: Props) {
return (
<>
<Head title="Log in" />
<Form
{...store.form()}
resetOnSuccess={['password']}
className="flex flex-col gap-6"
>
{({ processing, errors }) => (
<>
<div className="grid gap-6">
<div className="grid gap-2">
<Label htmlFor="email">Email address</Label>
<Input
id="email"
type="email"
name="email"
required
autoFocus
tabIndex={1}
autoComplete="email"
placeholder="[email protected]"
/>
<InputError message={errors.email} />
</div>
<div className="grid gap-2">
<div className="flex items-center">
<Label htmlFor="password">Password</Label>
{canResetPassword && (
<TextLink
href={request()}
className="ml-auto text-sm"
tabIndex={5}
>
Forgot password?
</TextLink>
)}
</div>
<PasswordInput
id="password"
name="password"
required
tabIndex={2}
autoComplete="current-password"
placeholder="Password"
/>
<InputError message={errors.password} />
</div>
<div className="flex items-center space-x-3">
<Checkbox
id="remember"
name="remember"
tabIndex={3}
/>
<Label htmlFor="remember">Remember me</Label>
</div>
<Button
type="submit"
className="mt-4 w-full"
tabIndex={4}
disabled={processing}
data-test="login-button"
>
{processing && <Spinner />}
Log in
</Button>
</div>
{canRegister && (
<div className="text-center text-sm text-muted-foreground">
Don't have an account?{' '}
<TextLink href={register()} tabIndex={5}>
Sign up
</TextLink>
</div>
)}
</>
)}
</Form>
{status && (
<div className="mb-4 text-center text-sm font-medium text-green-600">
{status}
</div>
)}
</>
);
}
Login.layout = {
title: 'Log in to your account',
description: 'Enter your email and password below to log in',
};
Randy_Johnson started a new conversation+100 XP
1mo ago
Whats going on with laravel auth pages, why are they no longer wrapped with a layout?
Randy_Johnson wrote a reply+100 XP
1mo ago
If you're serious I would chill and watch the courses. But you need a path you want to go down, usually which front end you're using is the big question.
I'd follow the courses. I wasted Hella time not watching 😞
Randy_Johnson wrote a reply+100 XP
2mos ago
I think if you're new go for it and give a month or two of studying. I think you're lucky to have it because it wasn't around when I started and everything has changed so much especially front end.
Randy_Johnson wrote a reply+100 XP
2mos ago
Randy_Johnson liked a comment+100 XP
2mos ago
"They" are being silly.
Randy_Johnson wrote a reply+100 XP
2mos ago
Well they say less code, fewer requests and faster results. Sounds like a win win to me.
Randy_Johnson liked a comment+100 XP
2mos ago
Probably if he doesn't know if he needs it, he doesn't.
Randy_Johnson wrote a reply+100 XP
2mos ago
Print them out on sheets and stick em around. Anything to do with memory is just repetition.
Randy_Johnson started a new conversation+100 XP
2mos ago
Is it any good?
Randy_Johnson wrote a reply+100 XP
2mos ago
Great idea. Maybe its time to put the use axios on the back burner.
Randy_Johnson liked a comment+100 XP
2mos ago
If you are using inertia, it seems like a good time to switch to the new http request helper in v3. https://inertiajs.com/docs/v3/the-basics/http-requests
Randy_Johnson liked a comment+100 XP
2mos ago
That's why I miss the good old pencil and paper days. Or at least the old MSDOS days.
Randy_Johnson liked a comment+100 XP
2mos ago
I download the actual code no library:
That IS the library. It can have malware whether you install it via npm or manually.
In this case, attackers included a package install script to install the RAT. A direct download couldn't do that, but it could contain other malicious code.
Npm has an automatic audit for vulnerable versions, unlike direct downloads.
But how much damage was done, other servers could have been hit as well. Depending on how the malware was written.
That wasn't what I meant. This is a serious attack. My point was that there's nothing to wait for because the compromised versions were removed over 24 hours ago.
I have never even used NPM.
Ok, but the rest of the industry does. And you still use other package managers, such as Composer and, presumably, some Linux package manager. Those have suffered supply chain attacks just like this.
While these attacks are a nasty, in the real world you can't get away with a zero trust approach. You're relying on many layers of software just to run a web app. It takes vigilance.
Randy_Johnson wrote a reply+100 XP
2mos ago
The guy is saying that he was hacked. But he had a bunch of security and knew the score. The cynic in me says there is more to this than meets the eye.
I believe the situation needs a full blown investigation.
Randy_Johnson started a new conversation+100 XP
2mos ago
Or was it 🤔
Randy_Johnson liked a comment+100 XP
3mos ago
You actually need all of those use statements?
Randy_Johnson liked a comment+100 XP
3mos ago
i agree with this ^
Randy_Johnson liked a comment+100 XP
3mos ago
Just think on this.
A user is a user, don't overthink, or over engineer.
Use a single login page, and handle it with roles/types of users.
Randy_Johnson liked a comment+100 XP
3mos ago
This is what I do.
- Write code to a make a feature work.
- Refactor/ clean up the code of said feature.
- Start with the next feature and repeat.
If you push on and finish the product, it is likely that you never clean up the code.
So I'd say C. clean up some code, write a feature, clean up some more code until you are done. Make small improvements of the code in iterations, don't try to clean it up all at once, it will likely be overwhelming.
Randy_Johnson started a new conversation+100 XP
3mos ago
Do I
a) keep pushing forwards until I have a complete product
b) stop now and take a week sorting out everything
Randy_Johnson liked a comment+100 XP
3mos ago
when I click the link it just redirects me to the login page
What link?
Randy_Johnson liked a comment+100 XP
3mos ago
Do you have any starter kit setup or any extra route for the login named below these routes
Randy_Johnson wrote a reply+100 XP
3mos ago
Thanks guys. I found it. It was in my AppServiceProvider
Route::middleware(['web', 'auth'])
->group(__DIR__ . '/../../routes/web.php');
Thank you for listening and many blessings to you all