/wdg/ - Web Development General - /g/ (#105547059) [Archived: 914 hours ago]

Anonymous
6/10/2025, 10:48:57 AM No.105547059
swift
swift
md5: 3d15e4f5dfd92367d6c8a20e698c1d05๐Ÿ”
Swift on the server edition.

>Free beginner resources to get started with HTML, CSS and JS
https://developer.mozilla.org/en-US/docs/Learn - MDN is your friend for web dev fundamentals
https://web.dev/learn/ - Guides by Google, you can also learn concepts like Accessibility, Responsive Design etc
https://eloquentjavascript.net/Eloquent_JavaScript.pdf - A modern introduction to JavaScript
https://javascript.info/ - Quite a good JS tutorial
https://flukeout.github.io/ - Learn CSS selectors in no time
https://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex and grid in CSS
https://roadmap.sh/roadmaps?g=Web+Development - Guided beginner roadmaps

>Resources for backend languages
https://nodejs.org/en/learn/getting-started/introduction-to-nodejs - An intro to Node.js
https://www.phptutorial.net - A PHP tutorial
https://dev.java/learn/ - A Java tutorial
https://rentry.org/htbby - Links for Python and Go

>Resources for miscellaneous areas
https://github.com/bradtraversy/design-resources-for-developers - List of design resources
https://www.digitalocean.com/community/tutorials - Usually the best guides for everything server related

>Need help? Create an example and post the link
https://jsfiddle.net - if you need help with HTML/CSS/JS
https://3v4l.org - if you need help with PHP/HackLang
https://codesandbox.io - if you need help with React/Angular/Vue

/wdg/ may or may not welcome app development discussion. You can post and see what the response is.
Some app technologies of course have overlap with web dev, like React Native, Electron, and Flutter.

We have our own website: https://wdg-one.github.io

Submit your project progress updates using this format in your posts, the scraper will pick it up:

:: my-project-title ::
dev:: anon
tools:: PHP, MySQL, etc.
link:: https://my.website.com
repo:: https://github.com/user/repo
progress:: Lorem ipsum dolor sit amet

Previous: >>105514952
Replies: >>105548554 >>105562698 >>105579578 >>105599147 >>105599850 >>105619176 >>105621270
Anonymous
6/10/2025, 12:16:19 PM No.105547536
>mfw need to decide if i should learn go
Replies: >>105547546
Anonymous
6/10/2025, 12:17:26 PM No.105547546
>>105547536
Well, do you want to learn it? That's the important question
Replies: >>105547692
Anonymous
6/10/2025, 12:38:50 PM No.105547692
>>105547546
i think itd be fun, but there are so many languages and i can only pick one for to code the server stuff for my website in.. i just dont wanna pick a bad one
Replies: >>105548106 >>105573262
Anonymous
6/10/2025, 1:42:19 PM No.105548106
>>105547692
>i can only pick one for to code the server stuff for my website in
You can always start with one and rewrite it later if you really want to
Replies: >>105548441
Anonymous
6/10/2025, 1:53:37 PM No.105548178
heroku dashboard is down, it's over
Anonymous
6/10/2025, 2:05:14 PM No.105548276
hi guys, i'm ux designer, i have designed complete website in figma (both desktop and mobile), now boss wants me to code also. i've never coded in my life. what should i do?
they want backend in PHP. it's just information website of a lab (text, images, maybe youtube embed) and just a simple form.
how do i start?
our boss said they are open to anything free, open source and secure technology for website.
I heard you can generate HTML and CSS code with just figma, but what about other? how i am going to do it?
what files do i need to create? what folders? what code?

how do i convince my boss to use wordpress elementor?
Replies: >>105548306 >>105556906 >>105582984
Anonymous
6/10/2025, 2:08:52 PM No.105548306
>>105548276
>they want backend in PHP.
Do you know why they want this?
>and just a simple form
What is the form for? Is it like a "contact us" email thing? Or a questionnaire?
Replies: >>105548370
Anonymous
6/10/2025, 2:17:19 PM No.105548370
>>105548306
i don't know. but it is probably because of security i would assume

yes just a simple "enter email" , "enter your message" contact form.

and yes, i forgot to mention, there is also , "our updates" section where they will show lab updates, news, papers. so i guess backend is needed. but isn't having no-code CMS is good for this type of website??

it's a research lab in a university. they have there own "server" i guess, idk tech term. i mean, no hostinger or godaddy, bluehost. we do have domain name ready.

boss said try to code, he knows i can't code.
Replies: >>105548510
Anonymous
6/10/2025, 2:25:16 PM No.105548441
>>105548106
wouldnt it be hard to rewrite an entire website? i guess its possible at least..
Replies: >>105548510
Anonymous
6/10/2025, 2:30:48 PM No.105548491
tailwind and effect are based
Anonymous
6/10/2025, 2:33:09 PM No.105548510
>>105548370
Yeah this sounds ideal for a no-code CMS. What I would do is get some numbers for how long it would take you if you go for a no-code solution. Then figure out how long it would take you to do it by writing a solution yourself - he knows you aren't a coder so you could say "I'd need some spin up time because I'm doing something I'm not familiar with, so that would slow me down and ..., i'd need to make sure it was secure and that's another area that would slow me down and..." and so on. Try to give a schedule for both and just explain why one would be better. If your boss isn't convinced, then you could say something like
>What if we do the no-code solution to start, to make sure our customers/users/whoever can use this. While I'm working on that here, I'll get up to speed with coding on my own time and then if you still want it, I can code it myself afterwards?
something like that. In my experience bosses like having options with reasoning in favor of each. Even if there's one you prefer, they like knowing the field so they can sleep better thinking they made the "right" decision, as opposed to just doing whatever was first presented. Change the wording as you want.

>>105548441
It might be, but if you're only switching the language it won't be that bad. Think of it less like rewriting and more like translating. You already know what you want, you're just putting it into a different languages syntax. It's if you want to change things that rewriting would be hard, but that's because you're doing novel design work again. It'd be the same as changing it while keeping the language the same in that case.
Anonymous
6/10/2025, 2:39:17 PM No.105548554
>>105547059 (OP)
Vapor is quite nice to use, but it's way to slow compared to most alternatives.

Also last time I compiled it, it was using mustache and that's pretty much abandonware.
Anonymous
6/10/2025, 4:40:25 PM No.105549597
Page 8
Replies: >>105550333
Anonymous
6/10/2025, 5:19:59 PM No.105549944
>>105517017
Do job interviews really? No testing? 15m? No styling?
I'd still pass the interview but the interview is selecting for all the wrong metrics. There's no situation in the actual world could you release an unfinished product without testing
Anonymous
6/10/2025, 6:00:01 PM No.105550333
FILE1278
FILE1278
md5: fadf8f54e805cdaf99266b8b2808db45๐Ÿ”
>>105549597
Again
The web is dead
Replies: >>105550899
Anonymous
6/10/2025, 6:50:04 PM No.105550899
>>105550333
I disagree
Anonymous
6/10/2025, 7:41:17 PM No.105551410
>do the grid tutorial thing
>still no idea how to actually make a grid at the end
seems like thatd be the most important part
Replies: >>105578894
Anonymous
6/10/2025, 10:08:11 PM No.105552991
>dude I really need to sort out these stack of vulnerabilities in my react project
>okay npm run audit / fix audit
>it does nothing
>right okay
>hmmmmm
>npm update
>still nothing
>check google
>find out its because this old project is using create-react-app which is dead
>ohhhh
>setup a new vite project
>copy my sources over
>proxy config is different and css is broken
>uhhhh
>notice in the move I went from tailwind 3 to 4 and after 20 minutes of looking found that they replaced , for _ in some configs
>everything now all working again

Neat well that was an evening well spent and my project builds way faster now and doesn't have so much shit in the package.json too. A win win.
Replies: >>105556404
Anonymous
6/10/2025, 11:11:55 PM No.105553661
Is the golden age of webdev over? I remember just a couple of years ago, new groundbreaking frameworks every other weeks, all that shit. And now what do we have? Fucking vercel, AI and muh PaaS shit? Is this all there is?
Replies: >>105554136 >>105556393 >>105557362
Anonymous
6/11/2025, 12:00:22 AM No.105554136
>>105553661
Everything useful has already been made so they had to invent bullshit like SSR react. Webdev hasn't peaked but the existing stuff is already peak. They make new shitty stuff for tech influencer shilling
Anonymous
6/11/2025, 4:47:16 AM No.105556372
crashing this thread.. with no survivors!
Anonymous
6/11/2025, 4:50:47 AM No.105556393
>>105553661
Everything went flat circle and we went from everything on the server to everything on the server (React) and still nothing fucking works.
Anonymous
6/11/2025, 4:53:50 AM No.105556404
>>105552991
angular doesn't have this problem
Anonymous
6/11/2025, 6:12:13 AM No.105556906
>>105548276
>Boss asks an UX designer to work as fullstack too
That can't end well
Anonymous
6/11/2025, 7:23:37 AM No.105557345
e2e web testing is a scam.

especially if the app/site is written with a reactive framework:
you are doing everything to not have to write code with vanilla DOM methods, querySelectors, textContents, attributes - and then you add e2e testing on top of that with just a glorified (but of course different) syntax of DOM methods such as querySelectors, textContents and attributes only in order to test things which you would not have to test if you simply did not use a frontend (meta) framework
Anonymous
6/11/2025, 7:26:43 AM No.105557362
>>105553661
the golden age is right now, just look at how versatile the web platforms have become! you don't need React or any of that shit for anything, it's all very simple to do by yourself (and you should)
Replies: >>105557377
Anonymous
6/11/2025, 7:30:13 AM No.105557377
>>105557362
genx boomers hate when they're confronted with something they don't know.
Anonymous
6/11/2025, 10:42:36 AM No.105558528
Page 8
Anonymous
6/11/2025, 1:27:22 PM No.105559498
Page 8 again
Anonymous
6/11/2025, 1:27:31 PM No.105559500
eight
Anonymous
6/11/2025, 3:38:48 PM No.105560362
Page 8 yet again
Anonymous
6/11/2025, 5:21:07 PM No.105561191
/wdg/ is dying but I will do what I can to save it
Replies: >>105561313
Anonymous
6/11/2025, 5:34:28 PM No.105561313
>>105561191
sorry anon, /g/ is just too fast..
Replies: >>105561973
Anonymous
6/11/2025, 6:43:53 PM No.105561973
>>105561313
So it seems
Anonymous
6/11/2025, 7:55:08 PM No.105562698
>>105547059 (OP)
I had a dream last night that my friend asked me to make him a mobile app so I pulled an all nighter learning Java then making the app, and when I woke up my app was in c++ for some reason and no one knew why
Replies: >>105564293
Anonymous
6/11/2025, 10:17:09 PM No.105564207
I fucking hate Rustfags so fucking much.
MS announces rewriting TypeScript in GO and all the Rustrannies literally start FOAMING AT THE MOUTH screaming WHY NOT RUST?!??!?!
Replies: >>105569510
Anonymous
6/11/2025, 10:25:24 PM No.105564293
>>105562698
I've been playing around with making a mobile app and I also played around with making a Progressive Web App. PWAs are pretty cool and can do a lot these days, but they still lack a bit, compared to native apps. Fucking Apple and Google bastards. The problem with native apps is that you need to pay Apple to put your app in the App Store (I think it's $99 a year) and you need to pay Google to put your app in the Play Store (I think theirs is a one off fee of $25, much cheaper)
Replies: >>105569453
Anonymous
6/12/2025, 12:06:23 AM No.105565287
Page 9
Anonymous
6/12/2025, 1:13:15 AM No.105565889
not sure if I should focus on .net or java and spring
Replies: >>105571224
Anonymous
6/12/2025, 3:38:48 AM No.105566858
>any comments area
>muhammad
>aditya
>aneesh
>rajesh
>thank you bro

How do we escape them
Anonymous
6/12/2025, 3:59:17 AM No.105566979
>>105517017

Phone attempt here we go

Function stopwatch(){
Const [timeS, setTimeS] = useState(0);
Const [playing, setPlaying] = useState(true);
Useeffect(() => {
Const Unsub = SetTimeout(()=>{}, 1000 );
Return ()=>{ Unsub() }
},[playing])

Return (
<Div>
Current time:
<span className="m">{timeS / 60}</span>
<Span className="s">{timeS% 60}</span>

<Button onClick={() => setPlaying(true)}/>
<Button onClick={() => setPlaying(false)}/>
<Button onClick={() => {setPlaying(false)}; setTimes(0)}/>
</div>
)
}
Replies: >>105566988 >>105566997 >>105569623
Anonymous
6/12/2025, 4:00:37 AM No.105566988
>>105566979
Shit it should start off false and I'm too lazy for onClick text and brackets
Anonymous
6/12/2025, 4:02:23 AM No.105566997
>>105566979
Forgot if statement in useeffect ah fuck it
Anonymous
6/12/2025, 5:36:45 AM No.105567645
I don't know what to work on. Is there anywhere you can go to help other people build stuff? Specifically web development stuff? Maybe almost like volunteering or something would be good for me.
Anonymous
6/12/2025, 5:44:39 AM No.105567697
1596026506163
1596026506163
md5: ec8e81492321bed783edbaa100923c1e๐Ÿ”
How do i write cookies?
Replies: >>105568661
Anonymous
6/12/2025, 6:30:18 AM No.105567988
I have an old pc that I want to host a website on. What do? Which distros does /g/ recommend? And what tools for developing web pages?

I'm inexperienced, but fairly tech-literate.
Replies: >>105568482
Anonymous
6/12/2025, 7:56:33 AM No.105568482
>>105567988
Not the worst page: https://landchad.net/
I like Debian Stable and VS Code
Anonymous
6/12/2025, 8:29:30 AM No.105568661
>>105567697
Just save the access and refresh tokens in localstorage pepega
Anonymous
6/12/2025, 10:11:17 AM No.105569239
>1 hour technical interview with two senior devs

Fucking hate these humiliation rituals
Anonymous
6/12/2025, 10:20:35 AM No.105569297
>tRPC
>zod
>drizzle
>>typescript lsp takes seconds to update
tsgo can't come soon enough
Anonymous
6/12/2025, 10:38:31 AM No.105569453
>>105564293
I've done mobile apps before. The hardest part is bending over backwards for Google and apple with all the eula and tos shit and making sure everything is up to their standard. I used capacitor and made by alpine.js code just werk for mobile. It was the easy part. Apple also wants you to have a fucking Mac and iPhone to publish your app and compile it. I understand an iPhone but there's no reason I have to have a fucking Mac. They're just being cunts.
Anonymous
6/12/2025, 10:44:46 AM No.105569510
>>105564207
Rust is kind of pointless imo now that c++ has memory safety. That was their big argument against c++. C++ is also typically faster, and already has a massive ecosystem for everything you need.

But what really makes it pointless to me is Zig. If you want to use a new language Zig is easier and more secure than rust, and typically even beats c++ in performance tests. There's no reason to use Rust when modern c++ and Zig exists. It's like choosing react for a new app because it was the shiny new toy 10 years ago despite it now being dated by newer better frameworks, and most sites just use legacy shit like WordPress and fucking jquery anyways so the industry standard argument is bullshit as well.
Anonymous
6/12/2025, 10:49:55 AM No.105569559
Of all the server side rendering frameworks I used like next, php, WordPress (if you can call it that), laravel, ruby on rails, jade/pug years ago, etc...

Astro is by far my favorite.
Replies: >>105569610
Anonymous
6/12/2025, 10:55:11 AM No.105569610
>>105569559
>he didnโ€™t try next or tanstack
Replies: >>105570113
Anonymous
6/12/2025, 10:56:41 AM No.105569623
>>105566979
Thanks to the one guy that attempted it. True this can be generated in 10 seconds with an llm, but I was asked to do it live and just wanted to see who else could do it. I would never write this shit from scratch nowadays.
Replies: >>105577286
Anonymous
6/12/2025, 10:57:13 AM No.105569627
Whyโ€™s this thread so dead since most software is web based
Replies: >>105570149
Anonymous
6/12/2025, 12:13:08 PM No.105570113
>>105569610
Literally the first one mentioned.
Anonymous
6/12/2025, 12:17:08 PM No.105570149
>>105569627
See the post above you. The world is full of retards who don't want to do anything because they can just ask AI. "I would never write this shit from scratch"

What's the point of asking this niche thread where no one will respond to your question usually anyways when you can ask GPT?

The only point of these threads is general discussion anymore such as talking shit about someone else's stack. There's not a single code tag in the entire thread, people don't post code here anymore.
Replies: >>105570232 >>105570242
Anonymous
6/12/2025, 12:32:26 PM No.105570232
>>105570149
an anon helped me with something a few threads back
Anonymous
6/12/2025, 12:34:13 PM No.105570242
>>105570149
we had some easy code challenges a thread or two back, be the change you want to see
Anonymous
6/12/2025, 12:53:22 PM No.105570361
Is using view engines standard practice?
Anonymous
6/12/2025, 3:16:34 PM No.105571224
>>105565889
Java 100%. C# you're limited to M$ ecosystem.
Replies: >>105571858
Anonymous
6/12/2025, 4:21:46 PM No.105571720
Is there any website with benchmarks of various MongoDB versions from 4.4 all the way to 8.0? I've been thinking of upgrading, but turns out that performance has been degrading since 4.4 consistently, and I was wondering how does it compare to 8.0 where they tried to get it back to 4.4 levels. I know that I should run my own benchmarks with my own loads, but it's a hell of a pain to set up when I'm almost soloing the company's backend and infra.
Replies: >>105574701
Anonymous
6/12/2025, 4:37:23 PM No.105571858
>>105571224
I don't think that's true anymore, remember reading about it running on linux as well, and I've ran it with mysql myself
Anonymous
6/12/2025, 6:43:50 PM No.105572880
Page 9
Anonymous
6/12/2025, 7:12:14 PM No.105573197
Why hasn't anyone tried to make a Python or Javascript framework with Rails-esque magic? Something like Python on Pails or JS in Jails.
Replies: >>105573767
Anonymous
6/12/2025, 7:18:36 PM No.105573262
>>105547692
>and i can only pick one for to code the server stuff for my website in
why not pick the language designed for writing server code? (go)
Anonymous
6/12/2025, 7:37:17 PM No.105573477
My company is hiring an outside company to handle an addition to our product.
This is something any of us developers are capable of doing.
They said we are "testing them out"
I looked into the company and they have a job listing for a developer, location in India.
Are we being replaced?
Anonymous
6/12/2025, 7:57:16 PM No.105573767
>>105573197
>Python
Django is relatively similar to Rails

>JavaScript
I think there are attempts at such a thing - there's something called Redwood JS but I've never used it. It's probably simpler to just use Express and add on other bits if you need them, like an ORM, templating if you need it, etc.
Anonymous
6/12/2025, 8:25:52 PM No.105574113
1524270336046
1524270336046
md5: c9ac751615df5e336c6430ded6122e56๐Ÿ”
How do you guys test your projects? Do you guys have a bunch of browsers installed or is your main browser enough?
Replies: >>105574306 >>105574737
Anonymous
6/12/2025, 8:40:00 PM No.105574306
>>105574113
You may be able to use browserstack for free.
Anonymous
6/12/2025, 9:11:20 PM No.105574701
>>105571720
If you're using mongoose anyways just switch to prisma and postgres or mysql or whatever else you want. It takes like an hour to learn the ORM prisma and you can basically GPT your model into the prisma schema, then easily GPT all the API calls to use prisma calls instead of mongoose.

There's no reason to use Mongo anymore.
Replies: >>105574883
Anonymous
6/12/2025, 9:13:37 PM No.105574737
>>105574113
how old are you? lol
Chrome.
Only test in other browsers if users are bitching about it not working and they are paying users.
Anonymous
6/12/2025, 9:16:31 PM No.105574773
file
file
md5: 6d7e39bebf9b0b61d2332cf0b7cee587๐Ÿ”
why is this still a thing
Replies: >>105574884 >>105574996 >>105575679 >>105584425
Anonymous
6/12/2025, 9:24:35 PM No.105574883
>>105574701
Spring + Morphia (and some occasional Spring Data), we're a Java shop. The project is too big now to switch to SQL, it would take months and we'd have to redo all of the analytics too, so we're stuck with what we have. I would like to migrate myself if possible, but it's just not realistic.
Replies: >>105576131
Anonymous
6/12/2025, 9:24:35 PM No.105574884
>>105574773
Can you elaborate? It looks normal to me
Replies: >>105577615
Anonymous
6/12/2025, 9:33:38 PM No.105574996
>>105574773
it isn't, do 100vh and 100vw
Replies: >>105577615
Anonymous
6/12/2025, 10:30:56 PM No.105575673
Screenshot_2025-06-12_16-28-11
Screenshot_2025-06-12_16-28-11
md5: 4b2a67d9de4f96c1c136ddf7709932c6๐Ÿ”
Added smilies to my forum (on top of BBcode).

Yes I ripped them off. Do you recognize from where?
Anonymous
6/12/2025, 10:31:58 PM No.105575679
>>105574773
Because <body> takes up as much height as it requires. add

body {
min-height: 100vh;
}
Replies: >>105577615
Anonymous
6/12/2025, 10:33:36 PM No.105575693
What is the use case for writing server code in Swift? Making it harder to hire people to maintain it in the future? Even on iOS Swift has been a maintenance nightmare with how frequently it makes big changes.
Replies: >>105576207 >>105576232 >>105576306 >>105576331
Anonymous
6/12/2025, 11:18:03 PM No.105576131
>>105574883
Understandable. I'd say you could migrate to postgres json but its even slower than mongo lmao
Anonymous
6/12/2025, 11:28:25 PM No.105576207
>>105575693
I didn't even think people used swift outside of iOS.
Replies: >>105576306
Anonymous
6/12/2025, 11:30:39 PM No.105576232
>>105575693
>server code in swift
wtf I thought it only worked on iOS??
Replies: >>105576306
Anonymous
6/12/2025, 11:38:46 PM No.105576306
>>105575693
>>105576207
>>105576232
I guess if you already know Swift then you could use it to write a server application

Also Swift runs on Linux and Windows these days. Apple wants to increase adoption.
Anonymous
6/12/2025, 11:41:27 PM No.105576331
>>105575693
Same reason people want to write server code in javascript. You only need to know one language, and you can share dependencies between both projects
Anonymous
6/13/2025, 1:32:39 AM No.105577286
>>105569623
honestly as far as tasks go i dont think its that unreasonable. assuming it's live coding you could describe your thought process as well. i'd imagine the key thing they are after is how the setTimeout is handled and the different buttons onClicks. and I say this as a go day job person.
Anonymous
6/13/2025, 2:21:01 AM No.105577615
file
file
md5: b44e1215ab878bc1762e6af15462519e๐Ÿ”
>>105575679
>>105574996
>>105574884
Had to do this for it to work. If this isn't the default in every browser at the end of the year i will quit web dev.
Replies: >>105579063 >>105584524
Anonymous
6/13/2025, 3:41:57 AM No.105578111
How do I expose my services (TCP and UDP) without revealing my IP address (and also without running on Tor or I2P or similar latency-based systems)?
Replies: >>105578182
Anonymous
6/13/2025, 3:50:05 AM No.105578182
>>105578111
Not exactly what you asked but for HTTP and WebSockets you can use cloudflare tunnel.
Replies: >>105578245
Anonymous
6/13/2025, 3:59:44 AM No.105578245
>>105578182
>cloudflare tunnel
I thought I looked at that a little while ago but it was all fucked. Does it allow for something like port forwarding? Do users need to install shit to use it, or is it just out on the Internet available to them?
Replies: >>105580749
Anonymous
6/13/2025, 4:34:42 AM No.105578448
I just started my own local web related business and made a few grand today for a few hours of work.

I hit the gold mine and found an ultra niche yet in demand business.
Replies: >>105579250
Anonymous
6/13/2025, 6:00:05 AM No.105578894
>>105551410
css is absurd. no one remembers it, everyone looks it up whenever they need to do something
Replies: >>105580163 >>105580239
Anonymous
6/13/2025, 6:32:39 AM No.105579063
>>105577615
wait until you discover you need yet a different value for it to work on mobile properly
Anonymous
6/13/2025, 7:16:15 AM No.105579250
>>105578448
Give us more info
Anonymous
6/13/2025, 8:34:44 AM No.105579578
Untitled-1
Untitled-1
md5: 5defc8441aa81f407f6034aab6095992๐Ÿ”
>>105547059 (OP)
Can someone explain why my getElementById isnt working?
Replies: >>105579790 >>105579793 >>105580980 >>105584439 >>105584541 >>105586540
Anonymous
6/13/2025, 9:27:52 AM No.105579790
>>105579578
Try document.querySelectory("#h1id")

querySelector is more widely used now since you can geab whatever.
Replies: >>105580553
Anonymous
6/13/2025, 9:29:07 AM No.105579793
>>105579578
Add a "defer" attribute to your <script src=...
Replies: >>105580089
Anonymous
6/13/2025, 10:14:59 AM No.105580089
>>105579793
Or he could just move the script lower
Anonymous
6/13/2025, 10:27:54 AM No.105580163
>>105578894
All web infrastructure is absurd starting with html and http
Anonymous
6/13/2025, 10:44:01 AM No.105580239
>>105578894
I remember every bit of it.
Anonymous
6/13/2025, 11:40:46 AM No.105580553
>>105579790
I never use querySelector because apparently it's slower, so I get elements by ID. But most of the time I'm using React instead.
Replies: >>105584904
Anonymous
6/13/2025, 12:07:50 PM No.105580749
>>105578245
You install cloudflared on your server. Then you log into the Zero Trust dashboard and add a tunnel to point to a location (e.g. point project.youtdomain.com to localhost:8000).
Replies: >>105616578
Anonymous
6/13/2025, 12:12:20 PM No.105580775
Why are even the simplest of things hard as fuck to do in Django? Everything is complex and shrouded in veil of mystery
Since python is badically pseudocode, i thought pythons most popular framework would also be simple.
Js is trash but node is 100 times more simple
Replies: >>105580949 >>105581572
Anonymous
6/13/2025, 12:48:08 PM No.105580949
>>105580775
>Js is trash
Why do you believe this? I like JS and TS
Replies: >>105580979
Anonymous
6/13/2025, 12:57:43 PM No.105580979
>>105580949
Js is fine i guess but theres weird and illogical stuff going on there. Node is easy and simple so i like it
Anonymous
6/13/2025, 12:57:49 PM No.105580980
>>105579578
https://developer.mozilla.org/en-US/docs/Web/Performance/Guides/How_browsers_work
>When the parser finds non-blocking resources, such as an image, the browser will request those resources and continue parsing. Parsing can continue when a CSS file is encountered, but <script> elements โ€” particularly those without an async or defer attribute โ€” block rendering, and pause the parsing of HTML. Though the browser's preload scanner hastens this process, excessive scripts can still be a significant bottleneck.
In your case the browser hasn't parsed (and so doesn't have) anything in your body section when it runs script.js. You could use defer on the <script> element to parse in the body and then your script would do what you expected.
Anonymous
6/13/2025, 2:16:37 PM No.105581384
Lads. I stopped my antidepressant and my programming productivity has declined. I'm now lazy and I play video games instead.

Maybe I should go back on the antidepressant so I can program more.
Anonymous
6/13/2025, 2:45:42 PM No.105581572
>>105580775
Django is the worst framework in existence. It was extracted from an online newspaper after all. Unless your app is a CMS in some form, you're always fighting the framework.
In general, for web stuff, python is awful.
Replies: >>105581586
Anonymous
6/13/2025, 2:48:28 PM No.105581586
>>105581572
ha, yeah it is.
I've had jobs in several languages and frameworks and django was awful. I worked there for a year and never fully figured it out.
Replies: >>105581604
Anonymous
6/13/2025, 2:50:47 PM No.105581604
>>105581586
So, whatโ€™s good then, anon?
Replies: >>105581640
Anonymous
6/13/2025, 2:56:04 PM No.105581640
>>105581604
PHP.
I prefer working without a framework but Laravel is ok, and so is Symfony.
I would stick with python if you're looking for a job though, as it gives a good path into AI/ML.
With PHP you're in constant competition with overseas workers.
Anonymous
6/13/2025, 3:50:47 PM No.105581973
currently doing a copilot medium js challenge, making me sweat bullets
Replies: >>105582875 >>105582934
Anonymous
6/13/2025, 5:53:23 PM No.105582875
>>105581973
here again, it's very cool, I think I like it more than chatgpt, I'm getting the company version, so that makes sense, anyways, AI is a good mentor or exercise buddy
Replies: >>105582934
Anonymous
6/13/2025, 5:56:00 PM No.105582893
I wrote a script in C and ran the resulting executable on Apache with CGI. With ApacheBench I got 250 requests per second on a Raspberry PI.
Then I wrote a FastCGI test script in C and ran it on Apache with FastCGI (mod_fcgid). With ApacheBench I get around 100 requests per second. Doesn't make any sense to me.
For comparison PHP with mod_php gets around 1500 requests per second with the same parameters.
Replies: >>105583041 >>105584542
Anonymous
6/13/2025, 6:01:28 PM No.105582934
>>105582875
>>105581973
kms moment though, was when I asked it for a js challenge and it told me to do fizzbuzz, that was tough
Replies: >>105582972
Anonymous
6/13/2025, 6:05:06 PM No.105582972
>>105582934
mentally, as in, fuck, shit, I've been programming for 6+ years, and this bitch thinks I'm on fizzbuzz level
Anonymous
6/13/2025, 6:05:56 PM No.105582984
>>105548276
Just do locked down Wordpress and code the templates with ChatGPT's help. But you're a designer (presumably a retard) so expecting you to write code is hilarious.
Anonymous
6/13/2025, 6:11:52 PM No.105583035
>jakarta.persistence.AttributeConverter
I love java so much it's so peak nothing will ever top java bros
Anonymous
6/13/2025, 6:14:16 PM No.105583041
>>105582893
PHP is extremely optimized today and it compiles to better C code than you'll ever write.
Anonymous
6/13/2025, 7:32:19 PM No.105583636
Question lads, should I make:

1) A progressive web app which can work on smartphones

OR

2) A native smartphone app using React Native

I think the second option is probably easier and better (because progressive web apps have quirks). But I'm a cheapskate and I don't want to pay Apple and Google money to list apps in their app stores. The advantage of a progressive web app is that you just host it on the open internet.
Replies: >>105584079 >>105584094
Anonymous
6/13/2025, 8:27:41 PM No.105584079
>>105583636
3) Progressive web app that has a native app build which is webview + JS bridge for native functions
Replies: >>105585464
Anonymous
6/13/2025, 8:29:11 PM No.105584094
>>105583636
It depends on what you want, if your goal is to have users and make money you will shoot yourself in the foot by not have an app on the store and Zoomers and Gen Alpha don't even use websites now.
Replies: >>105585464
Anonymous
6/13/2025, 9:07:45 PM No.105584425
>>105574773
What?
Everything looks as it should.
Anonymous
6/13/2025, 9:08:55 PM No.105584439
>>105579578
Use querySelector, getElementByX etc. methods are outdated and shit.
Replies: >>105586022
Anonymous
6/13/2025, 9:17:02 PM No.105584524
>>105577615
>why don't they rewrite the spec because I have an opinion on how it should work
HTML wasn't made to create apps, it was basically designed around concepts we understand in printing except the entire web page is like an infinitely long piece of paper. The concept of having containers (by default) being 100% height greedy is not what the spec was designed around. It's a document format, every container is designed to grow based on the content within and in 99% of use cases that's what people want. Even this website only works sanely because of this premise.

If you want more control over layout there are advanced containers and even simple position relative and absolute shenanigans which is how you do UI in Android, iOS and even game engines.
Anonymous
6/13/2025, 9:18:59 PM No.105584541
>>105579578
Because your script runs before the HTML exists. The easiest solution is putting <script> just before the closing </body> otherwise you have to put it inside a load event. This is also good practice because <script> is a render blocking element.
Anonymous
6/13/2025, 9:19:04 PM No.105584542
>>105582893
Yep, that does not make sense. Post minimal viable test script here so we can check that stuff out.
Fuck, I miss cgi. Those were the days. Everything was so damn simple.
Anonymous
6/13/2025, 9:59:40 PM No.105584904
>>105580553
Frontend speed doesn't matter much unironically as long as you're not using some massively bloated framework. You're not going to create lag grabbing some elements with vanilla javascript in a small ass website lmao
Replies: >>105584972
Anonymous
6/13/2025, 10:07:12 PM No.105584972
>>105584904
After writing web apps for years I have never had querySelector() be a bottle neck and honestly if you're at the point of having tens of thousands of elements you are likely bottlenecked by other things and if you keep basic hygiene of scoping your query selectors it's never going to be a problem.

e.g.

container = document.querySelector(".container")
el = container.querySelector(".thing")
Anonymous
6/13/2025, 11:02:14 PM No.105585464
>>105584079
Maybe I should look into that but I think Apple generally doesn't like it if your App Store app is just a webview:
>Your app should include features, content, and UI that elevate it beyond a repackaged website.
https://developer.apple.com/app-store/review/guidelines/#minimum-functionality

Maybe there are ways to make it work though

>>105584094
Ultimately I want users, and maybe to make money.

I like the idea of a progressive web app because you can add it to your home screen on an iPhone and it will function essentially like a normal app. By doing this, you can avoid app store fees and regulations etc.

But maybe you're right that today's users expect to get things from the app store. If I want to do that though then I'd have to pay Apple $99 a year to list in the app store, and I think it's $25 to Google (one off fee) to list in the Google Play store.
Replies: >>105585551
Anonymous
6/13/2025, 11:11:20 PM No.105585551
>>105585464
If your "app" is just a website then it's not something anyone wants to use either. What Apples policy wants is you not to put a website in an app and the test is "does this look like a mobile version of a website?" (yes/no). If you aren't going to make $125/yr for your app idea to cover a year of your costs then you don't have a very good idea.
Replies: >>105585668
Anonymous
6/13/2025, 11:23:39 PM No.105585668
>>105585551
>If you aren't going to make $125/yr for your app idea to cover a year of your costs then you don't have a very good idea
I guess my main motivation for making an app (or web app) is not the money it could make. Perhaps it would make no money. I just want to see if I can make something which people want to use. As a technical challenge I guess. And if I make something good then I can show it to employers.
Replies: >>105585718
Anonymous
6/13/2025, 11:27:43 PM No.105585718
>>105585668
Just do it on Android then
Replies: >>105585940
Anonymous
6/13/2025, 11:58:55 PM No.105585940
>>105585718
Maybe I'll just try a basic progressive web app for now, which iPhone and Android users could both use
Replies: >>105585954
Anonymous
6/14/2025, 12:00:59 AM No.105585954
>>105585940
almost no one will use it on their phone just fyi
Anonymous
6/14/2025, 12:09:06 AM No.105586022
>>105584439
Retard take. getElementByx does a simple hash table lookup. querySelector has to parse your query then it can perform the lookup. Use querySelector when you need to do a legit query more complex than a single Id or className. Use getElementByx for simpler cases like an id or className.
Replies: >>105586453
Anonymous
6/14/2025, 1:02:03 AM No.105586436
1736771821674
1736771821674
md5: dcf437b570e0919ad3f2837d6b8eb805๐Ÿ”
Can someone help me out? I run cursor with several mdc files but my project is a large scale enterprise app and there's like 10 mdc files, the api one alone is like 700 lines long with all the conventions and important information that relates to the backend. I use claude 4 sonnet (thinking) and it's been a blast.

The problem is the context is too small to include all of these for each agent prompt. Is there a way to improve the context so it can read all of them before answering? I've read something about MCP servers but I don't quite understand if that would alleviate my issue.

It seems to me all I need to truly vibe code is a brain that knows all about my codebase and when I prompt it doesn't have to re-read all these files over and over again but actually knows the ins and outs of my app.
Replies: >>105586574 >>105587804 >>105587882 >>105588442
Anonymous
6/14/2025, 1:03:56 AM No.105586453
>>105586022
>bro microoptimize using id tags to save 0.01 microseconds
Holy shit you wasted more time writing about that than me doing querySelector 1 million times.
Replies: >>105586504
Anonymous
6/14/2025, 1:10:24 AM No.105586504
>>105586453
Just to add:
- you waste time juggling unique ids (and if you're doing this you AT MAX have like 100 elements with ids on a production website)
- most websites DO NOT just have a single convenient id for each environment and in practice the only thing that makes sense is id for label/input pairs
- you waste time dealing with things with ids instead of using regular querySelector queries
- if you're considering unique ids, you can just quad tree your selectors by not doing document.querySelector like a dumbass and cache nodes like "sidebar.querySelector" or "table.querySelector"
- it's 2025 not 1998
Anonymous
6/14/2025, 1:13:56 AM No.105586540
>>105579578
Script is too high up. It runs before the DOM element you want to select exists.
Either run the code you want to run in a DOMContentLoaded event handler, or just add the defer attribute to the script, OR place the script at the bottom of <body>.
Anonymous
6/14/2025, 1:18:50 AM No.105586574
>>105586436
>prompt it doesn't have to re-read all these files over and over again but actually knows the ins and outs of my app.
not happening
Replies: >>105587750
Anonymous
6/14/2025, 4:16:45 AM No.105587750
>>105586574
Yeah it is. Here's the holy grail. Feed your context and cache it with Gemini's 1m context window, then use claude on cursor to do the actual thinking and response.

https://github.com/ogoldberg/gemini-context-mcp-server
Replies: >>105587804
Anonymous
6/14/2025, 4:23:40 AM No.105587804
>>105587750
>context cache
kek
>>105586436
>doesn't have to re-read all these files over and over again
but yeah i already do what you described
Replies: >>105587831
Anonymous
6/14/2025, 4:29:45 AM No.105587831
mcp
mcp
md5: 7da4e74ae97b19d59bdf010e7c2e055d๐Ÿ”
>>105587804
pic related, I'll try it out because I'm tired of feeding it several files and using mdc rules to make the AI produce better results. If I can run this locally the only worry I have is sharing data with Gemini but it is what it is
Anonymous
6/14/2025, 4:39:02 AM No.105587882
1749868742026720.png
1749868742026720.png
md5: 73e24b8f8092cf7dcec11d4687e7ee58๐Ÿ”
>>105586436
Are you using oss libs? you could install context7 into cursor:

https://github.com/upstash/context7

and the link to install it:

https://cursor.com/install-mcp?name=context7&config=eyJ1cmwiOiJodHRwczovL21jcC5jb250ZXh0Ny5jb20vbWNwIn0%3D

Otherwise yeah you may want to consider adding rules (like pic related)
Replies: >>105587910
Anonymous
6/14/2025, 4:43:31 AM No.105587910
>>105587882
My rules right now are literally "read api.md before making changes" when touching api/* files, or "read overview.md and roadmap.md before making changes" all the time for each prompt. It gets out of hand fast, because these files have over 1000 lines of text.

I'll check out context7, I've also read about other things like Roo Code. I just think if there was a way to persist and remember the intricacies of a codebase you'd be superpowered to just go in and vibe. Seems like that context window is the real bottleneck but hopefully the technology improves and you get amazing code like with sonnet-4 and the AI has a working short and long-term brain that doesn't treat every conversation in your codebase as a one off code change but actually considers your patterns, workflows, architectural design etc.
Anonymous
6/14/2025, 6:27:48 AM No.105588442
>>105586436
>Is there a way to improve the context so it can read all of them before answering?
not really, it's just a fundamental limitation of llms right now. tools like the gemini thing someone else mentioned are just bandaids on the limitation
using sonnet i've always found that going back and forth with it to build a PRD/todo list helps a lot, since you can start a new thread and refer back to it
Anonymous
6/14/2025, 8:37:36 AM No.105589123
I know fuck all about front-end. Are these static site generators (Jekyll, Hugo, Eleventy, Gatsby) good enough if I just want to make a blog/portfolio app?
Replies: >>105589254
Anonymous
6/14/2025, 8:58:54 AM No.105589254
>>105589123
Yep. I'd use Astro for that. Piss easy, basically html without any graphql shit (gatsby) and no forced framework / markdown shit (jekyll/hugo).
Replies: >>105589332
Anonymous
6/14/2025, 9:14:20 AM No.105589332
>>105589254
Nice. I was considering Gatsby, but I might take a look at Astro instead.
Anonymous
6/14/2025, 11:29:46 AM No.105589957
I'm making my million dollar website which will make me a millionaire and I'm only using js in script tags and express
Replies: >>105590780
Anonymous
6/14/2025, 12:10:15 PM No.105590142
I'm making a news aggregator. Dubs decides my backend framework. Your options are Flask, Django, FastAPI.
Replies: >>105590150 >>105590780
Anonymous
6/14/2025, 12:11:20 PM No.105590150
>>105590142
Mail pigeon
Anonymous
6/14/2025, 12:26:03 PM No.105590211
I need a bit of help with an application I am building using Laravel and Supabase (which I only use as a database). It is a game, and I'd like to identify my users (to keep their score, game state, etc.) without actually having them register an account.

I thought about doing this with Laravel Sessions, so I made a middleware with the following code: public function handle(Request $request, Closure $next)
{
if (!$request->session()->has('userId')) {
$request->session()->put('userId', (string) Str::uuid());
}
return $next($request);
}


which is called on every request using ->withMiddleware() in bootstrap/app.php

I have set a long session expiration, but I noticed that going back to the site after a while returns a different userId.

As you may have figured I am not very experienced and in fact know very little about all this, so I'd be very grateful if you could point me to some resource, or explain how all this works (and why it doesn't in my case).

Would I be better off actually setting up proper authentication? In that case, I would like to have the user register through social media instead of regular email/password, how can I achieve that using Laravel?
Replies: >>105590303 >>105590409
Anonymous
6/14/2025, 12:41:49 PM No.105590303
>>105590211
> It is a game, and I'd like to identify my users (to keep their score, game state, etc.) without actually having them register an account.
Are they supposed to be able to come back next day and play from the same spot? If so, I don't think this will work at all. They'll return tomorrow but their session will be gone so they won't have the userId anymore to retrieve it with right?

>As you may have figured I am not very experienced and in fact know very little about all this, so I'd be very grateful if you could point me to some resource, or explain how all this works (and why it doesn't in my case).
from
>https://www.php.net/manual/en/function.session-destroy.php
It seems like you may be running into a complication of strict mode (assuming you have it enabled). Maybe you still have the old session info on your browser but your server no longer recognizes it and so gives you a new id.

>In that case, I would like to have the user register through social media instead of regular email/password, how can I achieve that using Laravel?
KeyCloak should be usable with PHP and can support social media login.

I think it might be easier for you when developing to support a basic user/pass authentication and then when you have the game working the way you like, it should be just a final push to integrate keycloak (and it will let you put off worrying about authentication until you can focus on it, so you can focus on the game/logic/design for now). Sorry I don't know PHP so I can't help more
Replies: >>105590487
Anonymous
6/14/2025, 1:00:06 PM No.105590409
>>105590211
>I have set a long session expiration, but I noticed that going back to the site after a while returns a different userId

That might be because the cookie (laravel_session) had expired on your browser between your changes in config/session.php. Check the lifetime using your dev tools.

Also, Is there even a reason you need to store the uuid in the session? You can always retrieve the session id:
https://api.laravel.com/docs/12.x/Illuminate/Contracts/Session/Session.html#method_getId


>I would like to have the user register through social media instead of regular email/password, how can I achieve that using Laravel?

Socialite is probably the best way to do this, but you may need to know a bit about how the OAuth flow works cause the docs otherwise could be confusing.
https://laravel.com/docs/12.x/socialite
Replies: >>105590487
Anonymous
6/14/2025, 1:13:47 PM No.105590487
>>105590303
Yeah the game is done already, this is basically all that's left to do. I'll just bite the bullet and implement authentication.
>>105590409
I had made a mistake writing the expiration time, it seems to work better now but still not perfect: I set 1800000 minutes (1250 days) but a new cookie will have the expiration date set to July 19, 2026 (could this be a browser feature to prevent excessively long expiration dates?)

Anyway, as I said, I think I'll just use regular authentication. I'd like to use Twitch but it seems like Socialite doesn't have a driver for it, do you happen to know something that would suit me?
Replies: >>105590512 >>105590515 >>105595370
Anonymous
6/14/2025, 1:17:40 PM No.105590512
>>105590487
>(could this be a browser feature to prevent excessively long expiration dates?)
Yes, depends on the browser. You can't store cookies forever.

>Anyway, as I said, I think I'll just use regular authentication. I'd like to use Twitch but it seems like Socialite doesn't have a driver for it, do you happen to know something that would suit me?

There's third party providers you'll need to install for that
https://socialiteproviders.com/Twitch/
Replies: >>105590544 >>105590677
Anonymous
6/14/2025, 1:18:23 PM No.105590515
>>105590487
>implement authentication.
nta, sounds for the best honestly, usernames, leaderboards, and cross device accounts
Anonymous
6/14/2025, 1:22:40 PM No.105590544
>>105590512
Sounds great, thanks!
Replies: >>105590677
Anonymous
6/14/2025, 1:40:29 PM No.105590677
>>105590544
>>105590512
nta, thanks, fukken saved
Anonymous
6/14/2025, 1:54:54 PM No.105590780
>>105589957
What kind of website lad

>>105590142
Whichever you prefer
Replies: >>105590800
Anonymous
6/14/2025, 1:58:47 PM No.105590800
>>105590780
Well obviously I can't tell you, I don't want you to make milion dollars with it before I do
Replies: >>105590873
Anonymous
6/14/2025, 2:11:02 PM No.105590873
black-guy-pointing-at-head-meme-1j7rqt
black-guy-pointing-at-head-meme-1j7rqt
md5: 039ad6c8c920e62f9ec372f9541d7b55๐Ÿ”
>>105590800
Anonymous
6/14/2025, 2:35:41 PM No.105590991
Do you know any tutorials where the end result actually looks good? I want to elevate my css design skills a bit.
Replies: >>105591474 >>105591551
Anonymous
6/14/2025, 3:55:37 PM No.105591474
>>105590991
no, but you can have this
/*design*/
https://medium.com/refactoring-ui/7-practical-tips-for-cheating-at-design-40c736799886

/*desing inspiration web*/
https://dribbble.com/
https://www.uplabs.com/
https://www.behance.net/
http://www.goodweb.design/
https://onepagelove.com/
https://www.awwwards.com/
https://medium.com/refactoring-ui/7-practical-tips-for-cheating-at-design-40c736799886
https://codepen.io/nicolaspavlotsky/full/ZJPXgy
https://hype4.academy/articles/design/glassmorphism-in-user-interfaces

/* fonts */
https://fontpair.co/

/* design theory */
https://www.ibm.com/design/language/illustration/flat-style/design/
https://www.ibm.com/design/language/

/* hosts refactoring UI pdf */
https://z-lib.org/

/* design from refactor ui dude */
https://twitter.com/i/events/880688233641848832?lang=fr
https://www.youtube.com/watch?v=7Z9rrryIOC4 [Embed]
https://gofile.io/d/KCQMw2

most might be a bit ubdated but it's what I have
Replies: >>105591482
Anonymous
6/14/2025, 3:56:38 PM No.105591482
>>105591474
*outdated
Anonymous
6/14/2025, 4:05:48 PM No.105591551
>>105590991
>css tutorials
idk but
android and ios have official design guidelines but you can apply most of them elsewhere too
and google has m2 and m3 material design e.g https://m3.material.io/components
Anonymous
6/14/2025, 4:40:06 PM No.105591783
Does adsense pay well for single page web apps
Replies: >>105591844 >>105592607 >>105593437
Anonymous
6/14/2025, 4:47:56 PM No.105591844
>>105591783
I hope not. Fuck SPAs. 99% of them are fucking niggerlicious and can't handle the fucking refresh button or back/forward buttons properly.
Replies: >>105592450 >>105592538 >>105607609
Anonymous
6/14/2025, 5:59:13 PM No.105592450
>>105591844
SPAs are good, I'm making one, and it handles refresh/back/forward properly

Sometimes a more traditional website makes more sense. But SPAs can sometimes be more efficient. And an SPA can act more similarly to a native application. Which is pretty cool, because you're just writing one app and you know it will run on many devices and platforms, because practically all devices these days have a web browser.
Replies: >>105592538
Anonymous
6/14/2025, 6:09:21 PM No.105592538
1742753001810110
1742753001810110
md5: 51dcd143d227d40acdee3933aa32e727๐Ÿ”
>>105591844
>>105592450
nta, spas are cool af, the drawbacks exist, but they really shouldn't and with this I mean that js/browsers should integrate SPA functionality natively, same way search engines should be bitch slapped into indexing them properly
Anonymous
6/14/2025, 6:17:12 PM No.105592607
>>105591783
Unless you're in a high CPC category... no. And your target audience likely uses ad blockers. The only way to make money is to have something that people will swipe a credit card for and that you can affordably advertise (on Adwords) with ROI.
Replies: >>105592614
Anonymous
6/14/2025, 6:18:15 PM No.105592614
>>105592607
I'm going to rape you
Replies: >>105592633
Anonymous
6/14/2025, 6:20:22 PM No.105592633
>>105592614
>bro I'm going to use Adsense on a SPA that won't have any organic traffic because it won't rank on any search engine
Replies: >>105592638
Anonymous
6/14/2025, 6:20:54 PM No.105592638
>>105592633
You know what happens when you assume? You become Donkey from Shrek.
Replies: >>105592647
Anonymous
6/14/2025, 6:22:26 PM No.105592647
>>105592638
If the fact you posted here with that question tells me you have no idea what you're doing and your idea sucks and I bet you don't even have the balls to give a high level pitch of your idea which is surefire proof you're a retard who thinks he has a golden million dollar idea.
Replies: >>105592657
Anonymous
6/14/2025, 6:23:20 PM No.105592657
>>105592647
I'm not giving you free ideas, bum.
Replies: >>105592695
Anonymous
6/14/2025, 6:27:44 PM No.105592695
>>105592657
that's what I thought, no you won't make money with adsense, no you won't get magic traffic
so unless
- you have a network of streamers advertising for your
- you have an SEO team and/or a network of websites that can push traffic for you
- or you're do your own CPC campaign (which would make you ineligible for Adsense, arbitrage will get you banned)
You will not make enough money to even hit the payout threshold. But better luck next time kiddo, you're one of millions with a golden idea lmao.
Replies: >>105592703
Anonymous
6/14/2025, 6:28:53 PM No.105592703
>>105592695
I don't even know what got you so upset
Replies: >>105592730
Anonymous
6/14/2025, 6:32:55 PM No.105592730
>>105592703
>I'm going to rape you
kill yourself
Replies: >>105592734
Anonymous
6/14/2025, 6:33:21 PM No.105592734
>>105592730
It's in my culture
Replies: >>105592751
Anonymous
6/14/2025, 6:35:02 PM No.105592751
>>105592734
I'll give you a protip, if your idea can be stolen from two sentences on 4chan your idea will be stolen when you publish and someone does it better.
Replies: >>105592760 >>105593408
Anonymous
6/14/2025, 6:36:08 PM No.105592760
>>105592751
I also gain nothing from posting it here.
>hey I've been nothing but rude to you and act like a smug know it all. Let me know what website you want to make
Why? What do I stand to gain? Lol
Replies: >>105592783 >>105592856 >>105593408
Anonymous
6/14/2025, 6:39:10 PM No.105592783
>>105592760
niggers like him are the cancer in 4chins, ignore that subhuman
Replies: >>105592856
Anonymous
6/14/2025, 6:45:50 PM No.105592856
>>105592760
Given you have no idea how to monetize it's kind of important lmao. Imagine just asking "can I make money with adsense with my SPA" and expecting real responses when you can't even talk about your SPA. So we circle back to my previous response: you will not make money because you're a newbie who thinks he's going to get rich and typically people like you don't even have unique ideas or even better, your idea is actually trash. If your idea can be easily copied from two sentences here you have a bad idea that will be stolen. If your idea takes 1000 hours to implement, writing two sentences doesn't matter because anyone who steals ideas tend to be incapable of doing such projects and as someone with successful projects, copycats never do it better if you're actually good. But whatever, you're just going to have >>105592783 dick suckers that wont' actually contribute anything but maybe that's what you really want, is someone to jerk you off.

But you're welcome for the free $500 consulting session, you'll not get anything more valuable today.
Replies: >>105592864 >>105601464
Anonymous
6/14/2025, 6:46:39 PM No.105592864
>>105592856
Jesus that's a lot of text
Anything useful in it?
Anonymous
6/14/2025, 7:55:10 PM No.105593408
>>105592751
Cringe

>>105592760
Based
Anonymous
6/14/2025, 7:58:20 PM No.105593437
>>105591783
Just make youtube, tiktok, instagram, discord, patreon, etc.'s instructional/informative/reaction videos like a normal person.
Anonymous
6/14/2025, 10:01:52 PM No.105594419
Page 8
Anonymous
6/14/2025, 11:24:05 PM No.105595089
When someone wants to see my API documentation what does it mean exactly? I already made a collection with Postman. Give them a link to the published documentation?
Replies: >>105600201 >>105605155
sage
6/14/2025, 11:49:24 PM No.105595370
>>105590487
What kind of game are you making? t. fellow webgame dev
Anonymous
6/15/2025, 2:44:19 AM No.105596605
>oh cool a frontend repo
>checks their profile
>hand chin steve job pose
every fucking time
Replies: >>105596807 >>105599120
Anonymous
6/15/2025, 3:21:16 AM No.105596807
>>105596605
What?
Anonymous
6/15/2025, 9:57:19 AM No.105598932
n0lahlU2vE1qedblno1500
n0lahlU2vE1qedblno1500
md5: 2665d062846ac1b81df4250bd04c2e09๐Ÿ”
page 10 save
Replies: >>105599120
Anonymous
6/15/2025, 10:33:42 AM No.105599120
462314850_8293438707419168_4861058659273801989_n
462314850_8293438707419168_4861058659273801989_n
md5: 18c3f17081c3caa9b676e480abfe6c78๐Ÿ”
>>105596605
Like this?

>>105598932
Thank you for saving the thread
Anonymous
6/15/2025, 10:40:34 AM No.105599147
>>105547059 (OP)
>https://flukeout.github.io/
I've been doing webdev for awhile and didn't know about those more advanced css selectors. Very cool exercise.
Replies: >>105599837 >>105599959 >>105600703
Anonymous
6/15/2025, 12:53:42 PM No.105599837
>>105599147
super good shit, if ur a newbie, do this, if ur rusty, do this, if u don't know the new css selectors do this as well 10/10
Anonymous
6/15/2025, 12:55:45 PM No.105599850
>>105547059 (OP)
It's called vapor because it's vaporware?
Replies: >>105599959
Anonymous
6/15/2025, 1:17:56 PM No.105599959
password monitoring service
password monitoring service
md5: 4a2c3aefe679aeb26992ac55bf87fb15๐Ÿ”
>>105599147
Pretty cool

>>105599850
I dunno why it has that name, but Apple themselves are apparently using it in production (pic related)
>We began rewriting our service using Vapor, a Swift web framework
https://www.swift.org/blog/swift-at-apple-migrating-the-password-monitoring-service-from-java/
Anonymous
6/15/2025, 2:03:17 PM No.105600201
>>105595089
bump
Anonymous
6/15/2025, 3:22:51 PM No.105600703
>>105599147
You only need class selector
Anonymous
6/15/2025, 3:25:52 PM No.105600719
4chan_g_82307688_-_JS_syntax_highlighting
4chan_g_82307688_-_JS_syntax_highlighting
md5: e4b494e0c457d40271eac9d4abb29e86๐Ÿ”
Anonymous
6/15/2025, 5:13:07 PM No.105601464
>>105592856
you've already established this kid is some high school dropout grifter by the way he talks so why not feed him wrong information and waste his time
Replies: >>105601736
Anonymous
6/15/2025, 5:49:59 PM No.105601736
>>105601464
he really wanted da million dollah, keks
Anonymous
6/15/2025, 7:49:29 PM No.105602737
Done some work on my PWA today lads.
Anonymous
6/15/2025, 9:26:30 PM No.105603591
Page 8
Anonymous
6/15/2025, 10:24:54 PM No.105604065
Feel like such a pussy but I think I'm having bad burn out. I've been entrenched in my own project that's gotten way too big for a single dev to manage but I have no choice right now.

I've been dealing with probably the most complicated feature I've had to implement so far and it took me 10 days just of planning and researching and spitballing with LLMs to come up with a feasible solution but every time I think about sitting down to implement it I get that anxiety in the pit of my stomach and a desire to do literally anything else.

I've already taken basically an entire week off and it still hasn't gotten better. Wtf do I do bros
Replies: >>105604079 >>105604404
Anonymous
6/15/2025, 10:26:06 PM No.105604079
>>105604065
This is why education is so important. This is why proper math and physics education are important for real software engineers. It trains your brain.
Replies: >>105604094
Anonymous
6/15/2025, 10:27:53 PM No.105604094
>>105604079
My bachelor is in mechanical engineering lol
Replies: >>105604112
Anonymous
6/15/2025, 10:30:36 PM No.105604112
>>105604094
by planning do you mean, creating a meticulous step by step task list to get you started?
literally like this
>[ ] open text editor
>[ ] load project
>[ ] open file 1
>[ ] apply fix to file 1
>[ ] open file 2
etc etc. you might actually start. seems stupid but works for me.
Replies: >>105604153
Anonymous
6/15/2025, 10:35:54 PM No.105604153
>>105604112
Yes, that's what took me 10 days to create. I have a pretty thorough implementation plan but the dread isn't going away. I guess it's because the solution to the problem is unavoidably complicated and I just can't be fucked dealing with it anymore.
Anonymous
6/15/2025, 11:04:36 PM No.105604404
>>105604065
simplify, ship a subset and ask for feedback?
Replies: >>105604423
Anonymous
6/15/2025, 11:06:41 PM No.105604423
>>105604404
It's not in production yet. A lot of the stress comes from trying to simplify solutions but having to accept that ultimately even the simplest solution is complicated and a pain in the ass. Just sat down to do some work and couldn't get anything done, I'm fucked for the time being it seems lol
Anonymous
6/15/2025, 11:16:18 PM No.105604531
Best Frontend Masters courses? I got an account from my job.
Anonymous
6/15/2025, 11:50:12 PM No.105604829
anyone here got experience with application firewalls in production, any recommendations?
Anonymous
6/16/2025, 12:01:21 AM No.105604926
Does anyone have experience with Youtubes shitty chat?
More importantly do any of you know if it is AT ALL possible to get the user PROFILE from the chat in any way?
You used to be able to slap that dot menu and go straight to the profile but they removed it due to pRiVaCy reasons or some shit.
I'm trying to make a simple moderation system that can detect based on username and the only way I can see to do it right now is a combo of user-profile and name (and membership if they have it)
While you could spoof a name, you can't spoof the same user profile image even if you used the same image.
But still, that's janky as fuck.
Replies: >>105606255
Anonymous
6/16/2025, 12:17:35 AM No.105605072
Capture
Capture
md5: 823f264159b8a1f44af2d2e3d8c3773a๐Ÿ”
good morning sirs
Used to browse this thread very often during covid. Despite the general pessimistic tone you can find here, i was able to get 4 jobs since then. Thanks for all the annons who helped me when i had stupid questions.
My tip is to not give up and keep trying, despite all the AI layoffs headlines, my last job (got in march) was the fastest one since i started. I took me on average 6 months to change a job, this one was like 3. Ofc, my experience is playing a role now, if you have none, just learn to lie.

And btw, are you using AI on your job? Back in 2022 i tried chatgpt, it was bad for code so i never touched it again. Tried last week and it improved a lot. Now im trying to integrate claude and copilot into my workflow.
Replies: >>105605151 >>105609164
Anonymous
6/16/2025, 12:25:25 AM No.105605151
>>105605072
I use it extensively, I don't really write code by hand anymore. I use the whisper model to do voice to text for my prompts. The key is to keep the changes very focused, like 1 level above dictating the actual code you want the LLM in terms of granularity and scope.
Replies: >>105608186
Anonymous
6/16/2025, 12:25:40 AM No.105605155
>>105595089
you can use openapi/swagger to describe with examples the endpoints and what should they expect
google swagger editor and learn how to use that
Anonymous
6/16/2025, 2:32:19 AM No.105606255
>>105604926
I don't know if this still works, but it might give you the info you need.
https://github.com/ottomated/youtube-websocket
Replies: >>105608153
Anonymous
6/16/2025, 2:37:29 AM No.105606297
example
example
md5: 2d62f3b403463b112ef47fbe62bbac3a๐Ÿ”
I'm experimenting with a new (old) stack.

>Server Side
Common Lisp
hunchentoot
hunchensocket
easy-routes
spinneret
mito

>Client Side
htmx
Pico CSS

Anonymous posting is allowed.
http://beastie.sdf.org:4200/
Replies: >>105606307 >>105606363
Anonymous
6/16/2025, 2:38:36 AM No.105606307
>>105606297
no idea what almost any of that is
Replies: >>105606325
Anonymous
6/16/2025, 2:41:25 AM No.105606325
>>105606307
I had never heard of most of them until recently too. You'd have to have a little familiarity with Common Lisp to know. You can find most of these libraries mentioned in a very helpful tutorial.
https://web-apps-in-lisp.github.io/
Anonymous
6/16/2025, 2:47:00 AM No.105606363
>>105606297
I just got websockets with htmx working last night.
https://htmx.org/extensions/ws/

The lisp side could have used more documentation but with the info in the README and digging through some issues, I managed to make it work.
https://github.com/joaotavora/hunchensocket/
https://github.com/joaotavora/hunchensocket/issues/14
^-- This was the first time I used multiple inheritance on purpose, but it kinda magically worked.
Anonymous
6/16/2025, 6:53:54 AM No.105607609
>>105591844
I just use htmx and put hx-boost on my links. This feels fast while still gracefully degrading when there's no JavaScript. It stays SEO friendly this way too.
https://htmx.org/attributes/hx-boost/
Replies: >>105610577
Anonymous
6/16/2025, 9:02:43 AM No.105608153
>>105606255
Oh yeah i forgot about this.
In fact I remember someone else who just recently made some YT Chat shit to track members. I totally forgot about it, I will need to ask him to see if he found any actual ID related shit.
I remember some script that could also isolate certain accounts in to their own chat window, wonder if it could as well, but it was also old, could be broken now.

The worst part is I've seen this lack of ID CAUSE issues for people before.
I've seen people mod accounts they thought were friends but were random ass people impersonating and a chunk of the chat got banned by the time they realized.
Anonymous
6/16/2025, 9:10:21 AM No.105608186
>>105605151
>I use it extensively, I don't really write code by hand anymore.
Not the guy you're replying to, but that sounds crazy to me. I write code by hand just like I always have but I do ask LLMs if I get stuck with something. Sometimes I get decent answers.
Replies: >>105608295 >>105610647
Anonymous
6/16/2025, 9:36:02 AM No.105608295
>>105608186
Not that anon, but that's how I use LLMs too. I'll ask it questions, and sometimes it gives decent answers that would have taken me hours of manual research to figure out. However, I'll write the code myself. I just want it to help me understand things.
Replies: >>105610647
Anonymous
6/16/2025, 12:15:42 PM No.105609164
d4e1b9e-37c83994-28c2-42fb-97ba-2ebfbc9a1e75
d4e1b9e-37c83994-28c2-42fb-97ba-2ebfbc9a1e75
md5: c5657fc9d63c5092449fb71ccaa92752๐Ÿ”
>>105605072
>And btw, are you using AI on your job?
Our code at work is such an overengineered piece of antipattern shit, all AI models don't know what to do with it and straight bug out all the time lmao

It sucks to deal with, but it keeps me off the street and replaced by AI I guess
Replies: >>105610575 >>105610647
Anonymous
6/16/2025, 3:59:03 PM No.105610575
>>105609164
look for greener pastures, no shame in it if it's to improve your situation
Anonymous
6/16/2025, 3:59:08 PM No.105610577
>>105607609
>hx-boost
I might start using this on static sites. It's like a free speed boost that gracefully degrades.
Anonymous
6/16/2025, 4:08:04 PM No.105610647
qq
qq
md5: ee55b99c0670edbf8d994fca7bbf0e4d๐Ÿ”
>>105609164
>>105608295
>>105608186
sirs that have been my experience too, sometimes AI can help you understand smt 10x faster
i need an example to get smt and AI can generate that in seconds

this week ill start testing them to actually refactor and write shit for me
Anonymous
6/16/2025, 4:35:07 PM No.105610882
I use it for js challenges and learning js (more)
t. 6 yoe junior
Anonymous
6/16/2025, 6:28:52 PM No.105611963
Page 8
Anonymous
6/16/2025, 8:27:34 PM No.105613257
Page 9
Anonymous
6/16/2025, 8:29:15 PM No.105613268
"Web dev in early 2000s was dominated by PHP, ASP.NET and comprehensive frameworks like Django and Rails. The architectural design of these technologies was db driven and focused on the server. However, as client devices became more powerful and internet speeds increased, there arose an idea of passing large chunks of processing to the browser on the client side. This, along with the rise of module based Javascript based runtimes, frameworks and libraries on both client and server side (Angularjs, React, Node etc) meant that the comprehensive, monolithic architecture of Rails and Django fell out of favor."
Boomer devs, is this an accurate assessment of what happened in web dev over the past 20 years?
Replies: >>105613286 >>105614245 >>105614577 >>105614582 >>105614598
Anonymous
6/16/2025, 8:30:34 PM No.105613286
>>105613268
don't forget mobile apps needing the same data. that also played a role.
Anonymous
6/16/2025, 8:43:47 PM No.105613447
1743415556704185
1743415556704185
md5: 2b68ce31a8e12a28772c322c0091fe63๐Ÿ”
>I will learn Vue/Nuxt and I don't give a shit if React dominates the market
Replies: >>105614293
Anonymous
6/16/2025, 10:06:32 PM No.105614245
>>105613268
SPAs make sense. Let's say you want a user to be able to like a post, or something like that. There is no point in loading a whole new HTML document when a user does that. It's more efficient to just send a POST request or whatever, then update the page with JS.
Replies: >>105614284
Anonymous
6/16/2025, 10:10:38 PM No.105614284
>>105614245
That absolutely does not require a SPA. CSR doesn't even require being entirely client rendered. SPA's only make sense when you need different view technologies. A pure website (no mobile app/desktop app/anything else) doesn't really ever benefit from being an SPA. If you have more than just a site then you only benefit from an SPA because it simplifies backend development to be entirely frontend agnostic in that case.
Replies: >>105615327
Anonymous
6/16/2025, 10:11:18 PM No.105614293
>>105613447
Based sane man
Anonymous
6/16/2025, 10:46:30 PM No.105614577
>>105613268
>Boomer devs, is this an accurate assessment of what happened in web dev over the past 20 years?
It's painting with pretty broad brushes, but it's not wrong. I feel like jQuery deserves a mention, because it was winning JS library of that era. Similar to how many libraries try to copy or improve upon React, back then everybody was copying jQuery.
Replies: >>105614598
Anonymous
6/16/2025, 10:47:28 PM No.105614582
>>105613268
No. The accurate assessment of what happened in web dev over the past 20 years is as follows:
>People got more retarded and started doing more and more dumb things which is the reason why they have to keep doing a full 360 every few years
Anonymous
6/16/2025, 10:49:40 PM No.105614598
>>105613268
You have three types of websites:
- completely static
- dynamic but static per user (blog)
- dynamic and dynamic per user (ecommerce, social media)

Static ones don't render anything on the server.
Dynamic but static are rendered on the server and cached (now static).
Dynamic and dynamic per user should saves a lot more bandwidth being served as a static template and then having dynamic data transmitted via REST.

>>105614577
jQuery was necessary to sanely use JS, JS since then incorporated all the features jQuery utility features.
Replies: >>105614677
Anonymous
6/16/2025, 10:58:13 PM No.105614677
>>105614598
For sure. document.querySelectorAll(selctors) would not exist had it not been for jQuery setting an example.
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
Anonymous
6/17/2025, 12:29:15 AM No.105615327
>>105614284
>That absolutely does not require a SPA
Okay yeah I guess you're right because you could still have a lot of separate pages and just have JS on each page
>A pure website (no mobile app/desktop app/anything else) doesn't really ever benefit from being an SPA
It benefits if you want your site to feel more like an app, while running in a browser. Think of Spotify's web interface for example. Or Facebook in the browser of course. With today's browsers you can make pretty good SPA web apps.
Replies: >>105615377
Anonymous
6/17/2025, 12:36:50 AM No.105615377
>>105615327
>It benefits if you want your site to feel more like an app, while running in a browser.
That's a really good point I didn't think about. There is something about it that feels different. Thank you for this post.
Replies: >>105615608 >>105615700
Anonymous
6/17/2025, 1:10:09 AM No.105615608
>>105615377
nta, spas, purely interactionwise are clearly superior, it is just that they have some drawbacks like seo indexing, and browser history. but imo those should be covered by the fw/native js/browser native capabilities and finally search engines, long story short they should be the default and natively supported
Anonymous
6/17/2025, 1:23:24 AM No.105615700
>>105615377
There's quite obviously a difference between a site where you navigate between different pages, and an SPA where you can use animations when loading up new views. Use your fucking brain lad.
Anonymous
6/17/2025, 2:02:55 AM No.105615983
gg
gg
md5: cc5472cccb8a1230eac2734e2a7fca89๐Ÿ”
sirs I have one step left in my webdev automation

if the pc im working from, has all major AIs website blocked, cannot install deepseek locally too, how do i avoid retyping my codebase to another machine? My idea:

>use cellphone to screenshot pc1 showing code, class by class
>move pics to pc2
>use some AI to try to OCR all classes from pics
>rebuild the project in pc2
>use claude to refactor

Any tips? This would feel like living in year 3000.
Replies: >>105616017 >>105619121 >>105619159
Anonymous
6/17/2025, 2:07:53 AM No.105616017
file
file
md5: f706a4d8d4e3ca76ac20276a23e2cf92๐Ÿ”
>>105615983
You don't need AI to program.
Anonymous
6/17/2025, 2:31:23 AM No.105616178
>There's no way to check if a click happens on the resize handle when using {resize:both; overflow: auto;}
Working with javascript has made me suicidal. Holy moly is this shit convoluted and hacky.
Anonymous
6/17/2025, 3:30:35 AM No.105616578
>>105580749
This is asking for a DNS name. Can I use a free DNS with this (afraid for example)?
Anonymous
6/17/2025, 6:58:43 AM No.105617926
I want to do backend but only frontend has jr jobs in my listings
Anonymous
6/17/2025, 10:16:44 AM No.105619082
Is the world tired of webdev now?
Anonymous
6/17/2025, 10:25:32 AM No.105619121
>>105615983
I think there needs to be a license to use computers.
Anonymous
6/17/2025, 10:33:30 AM No.105619159
>>105615983
your work doesn't trust AI and that is because it can steal their secret sauce, I find it reasonable
Anonymous
6/17/2025, 10:38:07 AM No.105619176
1742585737502557
1742585737502557
md5: 96373a22eaee80a61c3e7f7826a7fce0๐Ÿ”
>>105547059 (OP)
sirs, i am getting back into react development after about a year. i use vite and am wondering if i need to change the default eslint rules and if prettier is still the go to. the airbnb eslint rules seem to be 3 years old on npm. are they still the best, or is there something else? i hate how fast things change in the web dev sphere
Replies: >>105619216 >>105622008
Anonymous
6/17/2025, 10:43:41 AM No.105619216
>>105619176
Just follow the official docs to get started with React. Don't touch the defaults unless you know what you're doing.
Replies: >>105619236
Anonymous
6/17/2025, 10:46:40 AM No.105619236
>>105619216
i was able to set up vite, prettier, and eslint with airbnb about a year ago. is this no longer worth doing? i'm not an incredibly experienced react developer but i've used it before.
Replies: >>105619410
Anonymous
6/17/2025, 11:16:39 AM No.105619410
>>105619236
When setting up a React app following the official docs, it installs eslint for you with sensible defaults.

ESLint docs provide install instructions to get it in your project, including a section about hooking it up with ESLint.

Honestly, RTFM desu.
Replies: >>105619420
Anonymous
6/17/2025, 11:17:40 AM No.105619420
>>105619410
s/ESLint docs/Prettier docs/
Anonymous
6/17/2025, 2:24:07 PM No.105620531
page 8
Replies: >>105622059
Anonymous
6/17/2025, 2:39:51 PM No.105620613
most-mentally-stable-web-developer-v0-3119j731zg3a1_png
Been working as frontend dev for a bit over 5 years and I absolutely hate this.
I thought about studying something on my free time and move away from this shit but as soon as the clock strikes 5 I don't want to see a line of code again.
Replies: >>105621169
Anonymous
6/17/2025, 3:58:36 PM No.105621169
>>105620613
Are you a template.content.cloneNode(true) kind of guy, or a document.createElement("div").append(document.createElement("b").append("(you)")) monkey?
Replies: >>105621218
Anonymous
6/17/2025, 4:06:21 PM No.105621218
>>105621169
>template.content.cloneNode(true)
but actually
const e = template.content.cloneNode(true); e.getElementById("msg").textContent = "(you); e.removeAttribute("id"); // template use will create duplicate ids
Anonymous
6/17/2025, 4:12:54 PM No.105621270
>>105547059 (OP)
Just leaving it here - live with JetBrains for 30 years of PHP

https://www.youtube.com/live/3b0ty1iZ8QM

https://lp.jetbrains.com/phpverse-2025/
Replies: >>105621984
Anonymous
6/17/2025, 5:39:46 PM No.105621984
>>105621270
PHP is alien to me
Replies: >>105625377 >>105628917
Anonymous
6/17/2025, 5:43:32 PM No.105622008
>>105619176
it's built into everything now you don't need to set it up explicitly
Anonymous
6/17/2025, 5:51:03 PM No.105622059
>>105620531
Just let the thread die already. Holy shit it's been a week now.
Replies: >>105622497
Anonymous
6/17/2025, 6:11:34 PM No.105622238
How does one do actual typesafe, deserialization of nested lists/objects from json to an actual typed object of a specific class in python? I feel like this must be possible. I have got pylance installed in vscode and it is setup to be a strict as possible and this feels WAY more complicated than what it should be. Robots are not helping either, because all they do is bullshit and thankfully they have fucked up google so freaking much that I cannot find the thing. I'm drowning in bullshit advice.

All I want is to specifiy
>json looks like this shape
>but if it deviates in any way (e.g. more or less keys, unknown tuples, whatever) it is not valid
Replies: >>105622497 >>105622803
Anonymous
6/17/2025, 6:39:55 PM No.105622497
>>105622059
No. Web dev will survive. We will overcome the AI doomers and naysayers. We shall prosper.

>>105622238
I don't use Python but if I was doing this with JS/TS then I would just check manually for every required property. I guess that's how you enforce type safety.
Replies: >>105623909
Anonymous
6/17/2025, 7:16:20 PM No.105622803
>>105622238
Look into schema validation.
Replies: >>105623927
Anonymous
6/17/2025, 9:27:32 PM No.105623909
>>105622497
>I don't use Python but if I was doing this with JS/TS then I would just check manually for every required property. I guess that's how you enforce type safety.
That's exactly my approach, because I know JS/TS... but python is retarded. You cannot do "isinstance(data, list[YOUR FUCKING TYPES HERE])" but that seems to be the canonical way to do this. JS/TS unironically is not that bad compared to other interpreted languages, because you can actually do meaningful type narrowing if you want to - and the IDE understands it.
Replies: >>105623926
Anonymous
6/17/2025, 9:29:41 PM No.105623926
>>105623909
???
JSON isn't serialized. No other language automatically assumes the strings of JSON are a custom type. And you're in luck anon, because you still have to validate the data because you'd be retarded to just trust a JSON blob without validating the data.
Replies: >>105624050
Anonymous
6/17/2025, 9:29:46 PM No.105623927
>>105622803
>Look into schema validation.
Will do, but at first look this seems over the top. I don't know if I can integrate it into the env that this stuff is running. I did not choose to use python after all...
Replies: >>105627689
Anonymous
6/17/2025, 9:47:12 PM No.105624050
>>105623926
No, that is not the point of my rant. The problem is that in python (at least with pylance) - thanks to the COMPLETELY retarded typing system - Any/Unknown/None is ALWAYS an error. So you cannot narrow this down without either going into a less strict mode, having warnings all over the place or adding "ignore" everywhere.

In JS of course JSON.parse returns something that is "any", too. But this "any" is *correct" in the sense that it is not an error - you really have to narrow it down and the IDE allows just that with ease.

Maybe I have gotten brainrot over the years (thanks JS/TS...) but python really seems fucked with regards to this type of stuff.
Replies: >>105624161
Anonymous
6/17/2025, 10:03:20 PM No.105624161
>>105624050
You still have to validate the JSON data integrity. So the process of transforming the JSON to your object(s) also serves as a sanity check, bounds checking and validation, during this process you do the proper object instantiations. I think you're just looking for a shortcut. The best you can do is have a data validation manifest that does this for you. Python is actually making you be a better programmer.

[ "thing" => "isThis" ]

The nice thing about this system is your system doesn't blow up if and when the JSON blob changes.
Replies: >>105624273
Anonymous
6/17/2025, 10:17:41 PM No.105624273
>>105624161
Of course I have to do that. But it's easy in JS:// @ts-check

const data = '[[[0,1],{"b":[[0,1],[2,3]]}],[[0,1],{"b":[[0,1],[2,3]]}]]'
const parsed = JSON.parse(data)

if (!(parsed instanceof Array)) {
console.error('Not an array')
process.exit(1)
}

for (const item of parsed) {
if (!(item instanceof Array)) {
console.error('Expected an array, cannot continue', item)
continue
}

for (const subItem of item) {
if (subItem instanceof Array) {
console.log('Array', subItem)
} else if (typeof subItem == 'object') {
const b = subItem['b']
if (!(b instanceof Array)) {
console.error('Could not handle b:', b)
continue
}
console.log('b', b)
} else {
console.error('Could not handle subItem', subItem)
}
}
}


That's a very simplified example, but the same thing in python import json
import sys

DATA = '[[[0,1],{"b":[[0,1],[2,3]]}],[[0,1],{"b":[[0,1],[2,3]]}]]'
parsed = json.loads(DATA)

if not isinstance(parsed, list):
print('Not an array', file=sys.stderr)
exit(1)


for item in parsed:
^^^^ fails here

Because parsed is list[Unknown] and item is therefore Unknown.

This code is not meant to represent anything at all, I am merely trying to give a (dumb) example. Maybe I am completely off here... is there a simple solution for this problem?
Replies: >>105624324
Anonymous
6/17/2025, 10:24:17 PM No.105624324
>>105624273
DATA = '''
{
"id": 123,
"score": 98.6,
"tags": ["foo", "bar"],
"metadata": {
"source": "sensor",
"active": true
},
"nested": {
"x": 10,
"y": 20
}
}
'''

# Our custom class
class SomeClass:
def __init__(self, x: int, y: int):
if not isinstance(x, int) or not isinstance(y, int):
raise ValueError(f"Invalid types for SomeClass: x={x}, y={y}")
self.x = x
self.y = y

def __repr__(self):
return f"SomeClass(x={self.x}, y={self.y})"

# Parse the JSON
try:
parsed = json.loads(DATA)
except json.JSONDecodeError as e:
print(f"Invalid JSON: {e}", file=sys.stderr)
sys.exit(1)

# Validate top-level dict
if not isinstance(parsed, dict):
print(f"Expected top-level dict, got {type(parsed)}", file=sys.stderr)
sys.exit(1)

# Validate fields
id_val = parsed.get("id")
if not isinstance(id_val, int):
print(f"id is not an int: {id_val}", file=sys.stderr)

score_val = parsed.get("score")
if not isinstance(score_val, (int, float)):
print(f"score is not a number: {score_val}", file=sys.stderr)



Basically this. You have to do this anyways when you're ingesting the blob to fit it into your code, database or system.

Pydandic is a library to do this but as you can see it's not difficult in vanilla Python.
Replies: >>105628097
Anonymous
6/18/2025, 12:24:44 AM No.105625377
>>105621984
it's basically javascript with different syntax
Anonymous
6/18/2025, 6:19:17 AM No.105627599
page 10 Sirs
Anonymous
6/18/2025, 6:33:32 AM No.105627689
>>105623927
> seems over the top
It might be. You end up having to do a special schema definition file and feed it to a library after all. If you think about it though, it's a standard way to specify json shapes between languages, and the libraries usually ensure the typing for you. After a certain point it's less work to do a schema than do manual "homebrew" runtime checking even in TS.
Anonymous
6/18/2025, 7:43:27 AM No.105628097
>>105624324
That does not solve the issue. Any chance you are an LLM, too? Type of "get" is partially unknown
Type of "get" is "Overload[(key: Unknown, default: None = None, /) -> (Unknown | None), (key: Unknown, default: Unknown, /) -> Unknown, (key: Unknown, default: _T@get, /) -> (Unknown | _T@get)]"
Replies: >>105630554
Anonymous
6/18/2025, 10:09:12 AM No.105628917
>>105621984
There's no reason for PHP anymore now that Astro exists. It's pretty much the perfect build with just html, js, css ssr ssg framework. No need for PHP anymore.

Fuck next.js.
Anonymous
6/18/2025, 12:01:19 PM No.105629517
have been doing medium js challenges lately, by chatgpt, damn, so that is indeed my level after all, I struggle
Anonymous
6/18/2025, 12:24:44 PM No.105629625
>projectmate hogs all the backend work
>I'm now stuck figuring out how to make this crap look good
I am trash man.
410,757,864,530 DEAD FRONTENDISTS.
Replies: >>105629748 >>105630569
Anonymous
6/18/2025, 12:47:22 PM No.105629748
>>105629625
Pick my cotton nigger
Anonymous
6/18/2025, 1:59:57 PM No.105630147
scr
scr
md5: ecf40540044b436f575b1c7469cc40a7๐Ÿ”
i suck at programming, but this is still useful in a variety of cases.
https://archive.is/E91gB
https://archive.is/8ciji

HTML /cgi-bin/memweb
"JSON" /cgi-bin/mem

(target url was goiing to be https://www.angelfire.com/ct/Jp/ap/ but that isn't working)
Replies: >>105635208
Anonymous
6/18/2025, 2:59:39 PM No.105630554
>>105628097
or you're just a fucking retard and you don't understand you're a fucking retard
you have to ingest your data you fucking retard
json isn't code
your js isn't good, you created an attack vector
no longer helping, you're just a fuck up and you're not going to improve
Replies: >>105631928
Anonymous
6/18/2025, 3:01:01 PM No.105630569
>>105629625
ChatGPT makes mockups
Anonymous
6/18/2025, 5:46:46 PM No.105631811
Page 8
Anonymous
6/18/2025, 5:59:35 PM No.105631928
>>105630554
>no longer helping
You cannot stop something you have never started to do.
>your js isn't good, you created an attack vector
Bro, that is a really dumb take on example code that was merely written to demonstrate an error in the IDE.
Anonymous
6/18/2025, 5:59:36 PM No.105631929
Chatgpt Challenges
Easy
/*
Write a function letterFrequency(str) that takes a string and returns an object with the frequency of each alphabet letter (ignore spaces, numbers, punctuation, and case).
*/

letterFrequency("Hello World!");
// Output: { h: 1, e: 1, l: 3, o: 2, w: 1, r: 1, d: 1 }


Medium
/*
Medium Challenge: Group Words by Anagram

Write a function groupAnagrams(words) that groups words that are anagrams of each other.

Example:
*/
groupAnagrams(["listen", "silent", "enlist", "hello", "ohlle", "world"]);
// Output: [
// ["listen", "silent", "enlist"],
// ["hello", "ohlle"],
// ["world"]
// ]


Let me know if you want the hints that come with it. I've been grinding mediums lately, shit's cash.
Replies: >>105632501
Anonymous
6/18/2025, 6:46:52 PM No.105632341
ai
ai
md5: 5858ba98d1d2664d7e2341d734b0972e๐Ÿ”
Are we all fucked lads?
Replies: >>105632693
Anonymous
6/18/2025, 7:08:13 PM No.105632501
>>105631929
>["listen", "silent", "enlist"],
why did he meant by this?
Anonymous
6/18/2025, 7:33:00 PM No.105632668
>when the guybro novice developer talks his way into leadership and is now code reviewing and making suggestions to make your code shittier but will refuse to strict type or change any of his own awful code.

every developer is immediately looking for a new role.
Replies: >>105632700
Anonymous
6/18/2025, 7:37:56 PM No.105632693
this general is dead.
We should really change this general to be about the stuff we build and less about learning.
>>105632341
yes, but not for that reason. You know how we build gpt-wrappers now? in a few years "gpt" is going to wrap the internet and every service will be offered through MCP.
and yeah, we will only need about 20% of the workforce.
Replies: >>105632786 >>105632786
Anonymous
6/18/2025, 7:39:05 PM No.105632700
>>105632668
>guybro novice developer talks his way into leadership
lmfao, how in the world does that happen?
Replies: >>105632839
Anonymous
6/18/2025, 7:49:39 PM No.105632786
>>105632693
>We should really change this general to be about the stuff we build and less about learning.
Surely it can be about both, because both are relevant to web dev. Also we could make this general /wadg/ (web and app dev general) or even /sdg/ (software dev general) but then maybe it would be too similar to /dpt/.

>>105632693
>yes, but not for that reason. You know how we build gpt-wrappers now? in a few years "gpt" is going to wrap the internet and every service will be offered through MCP.
>and yeah, we will only need about 20% of the workforce.
I reckon jobs will still surely exist in the future, even if they're different ones.

If millions of people are made jobless then what will they do? If you don't give them welfare/benefits then they'll start looting and shit. If you DO give them welfare/benefits then that will basically amount to rich people giving free money to ordinary folk, just for ordinary folk to sit around doing nothing productive.

Rich people will probably be willing to give some money away as welfare/benefits (just like they do now) but they will want something in return: labour. They will want ordinary folk to be doing something useful which benefits the rich. It could be picking crops, it could be making weapons, it could be many things.
Anonymous
6/18/2025, 7:55:19 PM No.105632839
>>105632700
Glazes the CEO and mirrors what he likes. Continually engages him in conversation and is as agreeable as possible, which is an advanced level office politics move, but a common op for a snake.
Continually secretly trashes the code of his fellow developers to the CEO, but not in an obvious way "See this code here, it's...ok, but to make it a lot better I'd do this" kind of speech.
Slowly over the course of several months the CEO starts openly calling him the best developer and talks about how the rest of the team aren't strong developers in developer meetings. Other developers secretly finding new jobs. All of them.
Replies: >>105632869 >>105632877
Anonymous
6/18/2025, 7:58:06 PM No.105632869
Screenshot 2025-06-18 125733
Screenshot 2025-06-18 125733
md5: 585fd81d5708078e6749d18bd1368325๐Ÿ”
>>105632839
forgot picture btw
Anonymous
6/18/2025, 7:59:11 PM No.105632877
>>105632839
honestly? based af, but being realistic he'll probably find new cattle devs that will fill the gap, probably for cheaper even
Replies: >>105632946
Anonymous
6/18/2025, 8:06:44 PM No.105632946
>>105632877
we know, but me and 2 more already built an app that's a little over 500 monthly recurring after 3 months with nothing but SEO. increasing 25% month over month so far. What he has been doing has been a kick in the butt for a lot of us.
They only hire developers with "business sense". kind of a mistake to put us all in the same room then treat us like that lol
Replies: >>105633006
Anonymous
6/18/2025, 8:15:35 PM No.105633006
>>105632946
I think what you guys have done is right, at the very least you'll put him under pressure and suffering, which is what he wanted, now he can have it
Anonymous
6/18/2025, 11:48:44 PM No.105635052
Page 10, bump
Anonymous
6/18/2025, 11:49:29 PM No.105635060
we're pretending to be c1rc in a nuclear bunker where we have unlimited food.
Anonymous
6/19/2025, 12:09:04 AM No.105635208
>>105630147
There's also /cgi-bin/findurl to check if a URL has been archived before or not.

Can someone please look over the short crap code and tell me what vulnerabilities actually exist?
https://archive.is/2025.06.18-220509/https://arweave.store/riMNMEdtRiRLi9_LlxTXopQvZ9gsKO94TNhv9pNhtnk

It's interesting that Apache(CGI(Bash(html(textarea(curl webpage))))) escapes the webpage's HTML.