Clown that teabags people in their sleep 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: https://desuarchive.org/g/thread/105639325
If I make a video series on learning c++23 coming from Javascript and webdev, and go into building a webserver with UWS and an ORM in a familiar way for express users, would any one be interested?
Why isnโt there a comprehensive course or book or guide that teaches you how to:
- set up a linux server
- make static website
- deploy that website on said server
- make a webapp from the ground up like that Steve Huffmanโs udacity web dev course
- including login, security, database, search, comments, etc.
- and deploy that website to the server
?
The stuff available are always about this and that frameworks, and expensive deployment on a sass/pass.
>>105713954Youโll get a few hundreds views. Unless you fill it with memes and quick cuts. It also helps if youโre white, handsome, funny and have a pleasant voice.
>>105714010Traversy Media has a bunch of courses like that...
>>105714039I'm all of those things but I don't want to do quick cuts and memes. Can I just be racist?
>>105714010And every time you ask this question youโll just get an ad like
>>105714042 . Iโve seen many threads on social media wanting the same thing, and the responses are usually ads for random courses.
>>105714068>why aren't there any courses that do x>y's course does x>why are people shilling coursesYeah you're a fucking retard.
>>105714010Digital Ocean guides -> MDN -> translate that Udacity course to your preferred web app framework -> google the login and stuff -> more Digital Ocean guides.
Make a youtube video teaching people this. Get 20 cents.
>>105714145Don't ask for courses if you don't want courses suggestions you retarded nigger. If you need a course to set up a linux server and do some static html you're already fucked.
>>105714192Don't shill your course.
>>105714383Travery Media has a URL that's been in the OP for years... he's pretty much the biggest web dev channel on YouTube you retard. Short of fireship maybe but it's more of a summary channel than course channel.
Point being you asked for a course and you're a retard.
>>105713933 (OP)What does a teabagging clown have to do with web dev
>>105714591It's a metaphor for react. It's made by clowns but webdevs still let that clown put their nutsack all over them by using it.
>>105714666What's so bad about React? It works and it's easy to use. I've heard that other frameworks are faster and/or smaller but I can't really be bothered to learn niche frameworks that aren't going to open any new job opportunities.
Guys im using css rule nesting and it feels so cool!
>>105714778Use solid, alpine, svelte, astro, or even htmx a single time and you'll know how shit pre-2020 frameworks are.
>>105714823It's about fucking time. Devs have been asking for this shit for 25 years.
>>105715302I'll just keep using React because:
(a) it just works
(b) it's easy to use
(c) jobs want React skills so I think it makes sense to keep practising with React
>>105715944>20 steps that should be one
What's the work flow for creating a good ssr/ssg in astro for SEO but is also a SPA?
finally got my docker shit sorted after like 10 hours of trial and error + googling + getting help from deepseek. finally get to work on the fun stuff tomorrow
Have you guys used Komodo? I'm looking for impressions online but there aren't that many. It seems to be a great alternative to Portainer though.
>>105713933 (OP)Me on the bottom
Bulma is better than tailwind
>have job
>applying for new ones
>job has my very specific stack php, python, react-native.
>probably less than 1% of devs have all of that
>have 10 years of experience, job requires 8.
>specifically wants to know experience implementing AI.
>Have built more AI implementations than probably anyone in the world. Have literally used every tool and built everything. I have tools where you can build entire videos with just a subject and it generates a script, segments, creates text to speech audio with elevenlabs, measures duration of clip, generate images then animates with image to video such as kling, then uses whisper for timestamping audio and generates captions using ASS. That's just one AI thing. I have over a dozen launched AI products and AI-enhanced products utilizing everything. Tool-calling, mcp, rag, everything.
>submit resume
>"Sorry, we have decided not to move forward with your interview process"
Like what the fuck is going on? Not even an interview?
>got called out for being slower than vibe coders by my manager
Owari Da
>>105721552you're probably overqualified
>>105721552We should get all the anons together that are sick of the tech world and start a free lance agency that uses modern bloat free tech stacks like astro.
>>105721591my team is AI-retarded.
I'm over here using claude code and cursor. One on the team discovered copilot finally and the other pastes code into chatgpt.
>>105721839requires 8 years, have 10. I think it's because I don't have a degree and HR is now probably under orders to not hire people without one as a filtration mechanism for the massive influx of entry-level candidates and potential interview cheaters.
>>105721856What I've been doing is just building apps with the boys. crank out a new app, post it on socials, repeat.
>>105721893>cursoris cursor that good?
>>105721893You wouldn't happen to work in crypto would you?
>>105721552well senpai, help me out, how do I AI max? I'm building an alexa using python, it is in fact built, but I'm using some libraries, and I suspect some are literally google services, specifically the voice to text one. can I ungoogle my shit? is python ok for this job (the job is done) or should I do it in C#, java, node? What's your take pham?
>>105721914The quality of cursor has really degraded in recent months, but if you're coming from a regular IDE then it's still an upgrade.
Claude Code is the new magic. I use it for large edits, then cursor for small edits. Claude Code with opus will one-shot even large infrastructure additions.
>>105721924Not unless you give me a referral. I'm in general B2B SaaS territory.
>>105721962>B2B SaaS territoryah, fukken paradies
>>105721962I was working with two guys in crypto and one guy suggested using Claude with cursor, it was a small app with the boys. I was just copy pasting shit into GPT lmao so thought there was a slim chance you were the Claude and cursor guy. I met one of the guys in a 4chan community so the chances seemed not zero.
>>105721960I think how a thing is built isn't important until it's bringing in enough money to change how it's built.
There's nothing wrong with google services, especially if it makes you develop faster.
I'd use some onboard speech transcription to detect wakewords then immediately activate a connection with the openai realtime api.
>>105722057>I'd use some onboard speech transcription to detect wakewordsthat's already done
>then immediately activate a connection with the openai realtime apihmh, I don't follow, in fact for this part I keep using the speech to text and parsing the fuck out of the text to try to translate nigger user babble into actual orders I can execute, in fact this is giving me headaches. I'll try to keep it simple. But building infinite switches and ifs is depressing. How would you go about this?
>>105721893It's an issue regarding my retarded pride.
I know more about AI than them, but I don't want to use it and end up a lot of time on dumb CSS shit.
>>105714010ngmi just ask claude to do a deep research request
>>105713933 (OP)i think im gonna quit my job to work on ai side projects, my saturn aries 6th house is conjunct neptune and my saturn returnal starts next week so it was meant to be
>>105722360Don't bother the guy is a fucking retard. He specifically mentioned courses in his post then chimped out when he got a reply about courses.
He just wants to stay bad and make excuses of how it's everyone else's fault he can't learn.
>>105714048> Can I just be racist?yes.
>>105722663>racist >in tech>with the trillion jeetshm, I doubt it
>>105722733Jeets are more racist than whites. What do you think the caste system is? Darks are at the bottom.
>>105722733> >with the trillion jeetsName a single GOOD tech service that was CREATED by jeets?
Apple, Microsoft, Linux, Google, Meta? all created by random white dudes
>>105722797>moves goalpost>>105722762they're literally in bed with the horrid HR lady, good fucking luck with that
>>105722797I'll do you one better, name a single of those companies that jeet CEOs made better.
Microsoft's windows 11 task bar crashes now because it uses fucking react native.
>>105722846>>105722797Correction, the start menu. Fuck Indians.
https://winaero.com/windows-11-start-menu-revealed-as-resource-heavy-react-native-app-sparks-performance-concerns/
>>105722850I am both successful and white and in software and racist
And you are not
> implicated
>>105722090just send it all to the llm in chunks and let it figure it out.
I do something similar for a cheating tool I made. It takes system audio and sends it to the openai realtime api to look for interview questions and responds with answers.
In your case I might have it respond with the inferred question then make a separate request to generate an answer, just that way so you can log it more easily.
>>105722797Framework was started by Nirav Patel. He might be American, I dunno, but his heritage seems to be South Asian.
Now stop being racist you silly cunt.
>>105722989>send it all to the llmwhat kind of llm are we talking about here? as of right now I send it to literal ifs and switches that call methods
>>105722953I'm all of those things too, and I doubt you are any of them btw. I'm just not retarded the jeets would finish my career in a heartbeat by the reasons I've already stated
Anyone who works in tech who is also racist, I just assume they're a failure
Is Zuck racist? Bill Gates? Linus Torvalds? I don't think so. They might have some faults but I don't think they're racist.
The first example of a racist programmer who comes to my mind is Curtis Yarvin. Is he successful? Not really. He is known for racism far more than for his tech work.
>>105723077Zuck is a fraud who got called out by his own employees for not knowing basic HTML a few years ago despite making an empire off PHP. Gates copied another guys OS after his wife told IBM to fuck off so they went to Gates instead.
Terry Davis outperforms both of those retards and you're a fucking nigger
>>105723077Brendan Eich. Creator of Javascript for Netscape. Founder of Mozilla and now Brave.
Take a look at why he was ousted from Mozilla. Dude is based and redpilled.
see where that takes you stupid nigger? racism vs anti-racism, all because you're too niggerbrained to adapt to the environment, the jeets got the horrid HR lady kidnapped, be racist then I fucking dare you, all because you're niggerbrained and can't stop screeching about how you're le based racist. so I'm I, but the difference is I'm not a nigger brained retard, see?
>>105723077true racists come from impoverished families and racism is the easiest way to control lower class people since they have nothing to be proud of apart from things they were given by the elite like their national/ethnic identity
>>105723077Any normal white person is racist by simple virtue of being exposed to other races. They just hide it because they have to.
>>105723024I'm beginning to think you work at Google Home lol.
Initial thought would be to use real-time api speech to speech but I'm not sure if it allows tool-calling, if it does then use that, delete all those conditionals and feed the functions in as tools. Would be a near drop-in replacement for the conditional logic.
>>105723131cognitive dissonance. its the rich racist white men.. w-wait no.. it's the poor racist white men.. w-wait ! it's just le bad ok!?
>>105723150its poor people.
>>105723144alright got it, not I'm not a google employee, it's a side project
>>105721893>my team is AI-retarded.i have a junior that's all in on AI tooling. tries all the new tools as they come out
it's incredibly painful reviewing his PRs, seeing everything clearly AI generated and yet he's still 5x slower than i am, and i generally just use cursor's tab complete instead of agent mode
>>105722417Could you elaborate? I don't understand shit of what you said. Are you an astronaut?
>>105722417>my saturn aries 6th house is conjunct neptune and my saturn returnal starts next weektell us morea bout that
>>105723098Was Terry Davis successful? No.
>>105723116Eich isn't that successful though. The most successful people in tech aren't racist.
>>105723134Actually it's the opposite. Normal people aren't racist, because normal people function in society, where you sometimes have to deal with people of different ethnicities. If you're racist then you will lose life opportunities.
>>105724044>>105724007basically your natal chart in your horoscope has different planets in different signs with different significance. Saturn is sort of the "order, structure, restriction, boundaries" one. These planets have relationships to other planets that impact their effect.
For my chart I have a saturn in aries in the 6th house. The 6th house is where they show up as well that impacts in what domain the energy is expressed.
So I have
>Saturn (restirction/structure)>In aries (fiery energy, actually puts saturn "in fall" meaning some planets have signs they are naturally good in and other they are naturally bad in. People with saturn in aries will have difficulty with structure because that fiery energy is contrary to the structure of saturn)>In the 6th house, the house of daily habits, work, that sort of thing.Meaning my saturn is sort of fundamentally weak but manifests with a fiery energy in relation to work/daily habits.
The saturnal return is every 29.5 years or so saturn returns to where it is on your birth chart, which is considered to trigger radical shifts in accord with it (the specifics depends on your other signs/planets/aspects(the relations between planets))
My saturn is returning (i just realized this after thinking about quitting) next week which means that fiery energy will become intense.
Along with that neptune is in the same place which means the dreamy/spiritual aspect is also playing a role with my saturn. Basically destroying what structure I had and requiring I use my fiery energy to build a new structure in line with my ideals/dreams.
(I didn't know any of the specifics of this before but it and other aspects match up with my shit im working through and if fits perfectly)
Lots of other compleixties with other things saturn/neptune relate with.
two parts are basically
>your birth chart and how things are related>where are planets now and how do they relate to your birth chart
>>105724044>>105724007i use ai to analyze it and try to get unbiased third parties, this is a result of me just giving it my birth chart + the current transits and no other context
https://rentry.co/i5e6p6hq
I have to quit my job and it will be good for me... this gives me an excuse at least : )
>>105724784which cultures/peoples came up with these sets of rules?
>>105724905you can see all this in the greeks/hellenic authors but it goes back to the egyptians and probably pre-history. Everyone throughout history did this until like 100 years ago when people started to consider it occult for some reason.
Throughout medieval times saints would use it, popes would consider it for how they'd construct thing. It's only recently people stopped being aware of it.
Even if you don't think it's real it's at least a very interesting psychological model far more complex and subtle than anything else we have. I find when you actually start looking into it and seeing how perfectly it lines up with things is kind of necessary, it's very easy to oversimplify and mis-represent because it's so complex, and when it's simplified it gets very stupid (like people just talking about sun signs).
>>105724942any sources to see this in motion?
Another great /wdg/ thread discussing the most common and advanced issue related to development of web based applications:
> racism
>>105725090tetrabiblos is one of the classics, there is a ton of stuff that just isnt' translated though sadly. Bits of it were also in all the medican books like galen and it was tied in with the humoral stuff
There is no reason to use Rust as a web dev and if you do you should feel bad.
>Muh speed
C++ has better performance than rust and closer syntax to Javascript. As well as a way bigger more mature ecosystem
>Muh Memory Safety
C++23 has that too. https://tomaszs2.medium.com/nobody-expected-c-memory-safety-rust-in-trouble-cefb39166923
>but the government said rust better
That was before C++23 don't be a tranny
>but does C++ have any libraries for webdev even?
Yes, uws or uWebsockets is one of the fastest ones out there. The syntax is based on express.js so you'll feel right at home. There's ORMs as well for C++ if you want to feel real familiar when writing your app
>but I don't want to learn a more performant language
That's fine. You can use uws.js to use the uws C++ server from node.js and it still outperforms Rust, it has slight overhead over uws. It is based on express ans there's even libraries made from it like hyper-express to give near identical syntax to express. It is also a websocket server
Tl;dr fuck Rust use C++
>>105725309sounds dope, I'm saving this information
I NEED audio autoplay and that's non-negotiable, I don't care what google thinks
Any workaround that still works?
Just did some more work on my PWA lads
Give it a couple months and I'll have made the new Facebook haha
Not really but i can dream
>>105725901What stack are you using
>>105725962The GOAT stack (Go And Typescript)
In terms of difficulty:
frontend > *huge power gap* > backend
>>105713933 (OP)I need a new job. Feel like I'm getting fired soon after 4 years. Problem is, my coworkers are on my linkedin, which I have no fucking idea why they would add me. To see if I'm looking for another job??
What do in this case? Block every single person from my company? This is a protip btw. I'd block everyone on Linkedin as SOON as you start a new job.
>>105727035hosting is the most difficult
>domain name>vps/vds/cloud>managing your vps/instance>email server>email security, ddos protection
>>105726252Sounds kind of gay.
>>105727035And who's fault is that? Web devs overcomplicated their shit on purpose.
>>105721893how do i add you up? i need some boyz in tech to chat with.
>>105722008what is a "4chan community". i wanna meet based and redpilled devs
>>105715302>svelte>I made that shit up frameworkShit is all over the place and has no flow. Ass pull after ass pull because they ran into a problem they couldn't solve with fundamentals.
They have to nail the fundamentals first. If they don't their lang is gonna bloat fast.
>>105728924>>105728930cmon bros help a devva out
>>105728930It was synchtube about 14 years ago. Good luck finding a time machine.
>>105730551there used to be a /wdg/ discord, if you find it report, I think it was literally /wdg/
>>105732102When are you getting back on steam? I haven't seen you in like a year.
>>105732177don't really play any gaymes on Steam, I pirate all my shit lmao
>>105732197My github got banned BTW in case you're wondering where the project went. I sent you a message saying I was on bitbucket but hadn't seen you online in months and got another job and put it on hold. I took your advice and started learning astro btw
>>105732219how the fuck do you even get banned off github lmao
Anyways yeah there isn't that much to learn from using Astro. Pretty great framework for building websites, but if it were for a very dynamic app I'd use something else (Next.js, SvelteKit, or raw Vite+React) cause they have routers built in to the framework.
heh, took me 30 mins just to download 30MB. apparently I'm on dialup now
>>105732255I called for the country of India to get banned from the express.js repo and started a flame war under my own name. Apparently banning Russia is fine with Github, but when 400 Indians a day were editing the readme.md that was too far. The express creators called me racist and cried.
This dork wrote an article about me.
https://tomaszs2.medium.com/express-js-got-flooded-with-pull-requests-an-idea-to-ban-india-strongly-rejected-96a9ec554661
>>105732298Oh yeah I remember that. Didn't know you participated in that but I'd fully expect you would kek
>>105732336based department?
I'm really good at animation in packages like houdini, maya, toonboom, etc. I can arrange shapes however I want. I also know enough about code to animate stuff, but I much prefer being able to draw and then interact with stuff, and only *then* add some code if necessary.
I've somehow managed to totally avoid webdev, but now I want to make webpages with animations. I know I could just do a webgl canvas or three.js, but what are my options for SVG animation with just html5, CSS, and JS?
For example, let's say I made a character like this out of SVGs and wanted to animate some loop of her making a gesture or walking or dancing or something. What's the best toolset for this task?
I'm kinda imagining it might be just illustrator to make the SVGs + manually writing a bunch of js for the animations, but I feel like there's gotta be something better.
>>105728357What's wrong with Go and TypeScript? Also how do web devs overcomplicate things?
>>105732336Disgusting
>>105727035I used to laugh at this idea in university until I was forced through frontend hell.
Though, everyone just use AI to add animation nowadays.
Should I even bother manually typing CSS/Bootstrap/Tailwind anymore?
AI can get the job done, and I can just tweak it later.
>>105725897Autoplay works after the user interacts with the page first
Why use nginx on top of my nodejs app
hardmode: not for cloudflare-like challenges
>>105733573I asked myself that a year or so ago after I started using uws.js instead of express + nginx and the answer was pretty much there is no point. Uws.js is pretty much the fastest standard webserver on the net and has it's own SSL built in. Considering practically every server hosting company you use anymore be it server-less or a VM has it's own built in shit for everything else Nginx does, it's kind of pointless in this day and age. Only thing I could think of is if you're on a home server and serving an SSR and want to reverse proxy the served content forward. I'm pretty sure everyone serves static content through CDNs anymore. But a lot of people use things like Railway or Vercel even for SSR.
https://github.com/uNetworking/uWebSockets.js/discussions/72
Lads, today I invited my family to a good and expensive restaurant. I purposefully told them to order what they wanted no matter if it was a bit on the expensive side. The food was alright, except for 3 things that were really good. But it felt really good to pay the bills for my whole family. Celebrating 2 years of employment and career progress in the same job. Life is good.
I studied a 2 years "trade" in web dev. I grinded like a motherfucker in the studies and then some more at the job interviews, and it paid off.
Disclaimer: the market is extremely fucked and you are not guaranteed to get a job and if you do the future of this field still look cloudy. Regardless here is my story. God speed to all you newbies.
>>105734183Congrats on taking your family to Taco Bell retard
flexin mah webapp part 3. I added some custom axis helpers, and some bay creation utility tool. Tomorrow I will optimize the solvers, I love my web app bros :3
>>105735111>:3that's roasty and troon territory pham, I wouldn't do that
>>105735111nigga did you just program a CAD in web? If so I'd suggest completely skipping web dev and going straight to 3d software programming
>>105734922my job uses base64 for product ID in their API, sloppiest shit imo
>>105735172you can do this in like ten minutes using some reactive framework + 3.js. you can find any number of oss projects with basic cad capabilities. it's all just 3.js.
>>105735453it's in my todo list, but "doing nothing at all" is a bigger priority since I have a job, I've done 3D modeling, so it should be fairly simple, if I manage to land a job that pays me to fuck around (those do exist, they give you a day or some hours to do whatever the fuck you want) I might dive in that shit, I made a 2d bouncing ball with simulated physics in canvas, shit was cash
>>105735500awesome. i did the bruno course on 3.js and it was great, had a lot of fun with it. reason i learned it was to make a procedurally-generated enlightenment-era museum that uses 4chan threads as generators so you can walk into a museum (board), and browse threads live by walking around, see other anons post in real-time. i'll get around to it someday.
>>105732143i found it. the link is https://discord.com/invite/0qLTzz5potDFXfdT but its fairly dead :(
>>105713933 (OP)OP why did the discord stop getting linked? I had to find it from a 2017 /wdg/ post https://4archive.org/board/g/thread/60643132/wdg-web-development-general
>>105735587>i found it. the link is https://discord.com/invite/0qLTzz5potDFXfdT but its fairly dead :(sad, I barely used it, we should have shilled it more, but never include it in the OP, you know what I mean
>>105735616>but never include it in the OP, you know what I meani really dont lol
>>105735616Snitchcord isn't trustworthy after what they did to Yuzu. They had no reason to do that.
>>105735849wtf is yuzu, looks like some emulator? let me guess transcord shut them down due to some dmca from nintendo etc?
>>105735954Worse. Snitchcord literally snitched them out to Nintendo because a few users were sharing keys which Yuzu specifically told people not to do. You can make emulators but you can't put a registration key in.
They had zero incentive to snitch there. Snitchcord themselves reported it to Nintendo.
>>105735968ah, very gay indeed. should still put /wdg/ in the OP tho. i saw mention of some steam group? also not even an IRC link in the OP? /wdg/ has fallen
file
md5: a01ca8bea6eaaca54b9880d48c5ff613
๐
>>105735985There's not a Steam group. I happen to know a few users here from an old other community and one of them always recognizes me here, this guy
>>105732102A lot of us used to talk on Steam. But it was a video game related thing.
>>105732322Mb didn't reply, I was looking for the screenshot then realized they gave me a chance to appeal and I went on a gaslighting rant to them about why they discriminate against Russians. Lmao I'm still banned from your country so of course I'm banned from Github kek
>>105736129>old other communitycool which one? also kek at the screenshot
>>105725897The only way autoplay will work(when autoplay policy = disallow) is if the srcObject of an Audio element is a MediaStream, such as one acquired from an RTCPeerConnection. I also learned the hard way that the audio element that you want to autoplay can't be dynamically added to the page, i.e it has to be part of the DOM on initial load.
>>105725897Google pretty much did it to force Youtube app for Youtube premium and get rid of adblock users on mobile. I stand by this theory.
Damn we really sound like that? Wtf does this sentance even mean https://news.ycombinator.com/item?id=44404876#44406976
>>105733573Single thread slop like js ruby and python cant fully saturate a cpu so you pretty much need to spawn multiple process and put a load balancer in front.
Plus nginx can serve static files from your /public folder without invoking slow js, python or ruby code.
Rust, c and the like are fast enough to not need a load balancer at all and serve their own static files with their regular framework.
And modern load balancers like caddy also automagically register ssl cert for you with zero config which is nice
>>105739796>Damn we really sound like that?whats this in reference to?
>>105740180Aaron earned an iron urn
>page 10
Fuck all your frameworks
Embrace the newest framework
>>105741729Euros really let us down huh
honestly is it really that stupid to store images as base64 in your mongo database instead of bothering with aws or some shit like that
>>105742815just be yourself
>>105742815I dunno what people recommend but I would just do whatever is easiest, as long as it's secure.
I was going to store images as binary in my Postgres database but then I thought fuck it, I'll just save the files to disk because it's easier for me.
>>105741872Too busy being free on the weekend
>>105720158I tried it but didn't like it. The way it abstracts things into resources was weird and turned me off. My use case didn't match up either; I wanted to redeploy a local compose stack when pushing to git. Overall a bad fit for me.
What the fuck am I doing wrong?
CI/CD builds works fine, but I'm unable to spin up a developer environment.
>>105742543How hard is it to use WebGPU and VulkanAPI directly in canvas rather than using pre-made render engines like three.js or babylon?
I don't actually know if vulkan is used directly actually or if it's used only through webGPU. I've only ever used three.js and babylon
>>105742815hosting via CDN is better because you faster image to customer through local CDN network AND the browser can cache the file AND the browser doesn't have to calculate 69420 base64 images in your website. but if page speed doesn't matter then the answer is yeah go for it
>>105742815Yes. Incredibly stupid. Why clutter your already dogshit database instead of just using a CDN? It's not that hard to write an uploading and downloading function to a server, and it's not that hard to convert it to use fetch to upload and down to your CDN which would be way cheaper, cache, and more efficient.
Just rip the bandage off and stop using Mongo while you're at it. You can learn prisma off any youtube video in like an hour, ask any decent AI to convert your models to PRISMA schematic, then ask it to convert the API controllers themselves to use prisma format, then use any database you want pretty much with similar ORM to mongoose but with way better performance. Mongo is the best for raw data/JSON but just fucking use SQL. Prisma even comes with built in sanitation and does everything for you.
>>105743987join the disc i'll help you out, posted the link somewhere above
>>105744279>writing sqli'd rather kill myself. ive been using instantdb and its a blast.
>>105744906You don't write SQL with Prisma. It's an ORM.
Basically you have one set API similar to Mongoose that works for tons of different databases like SQL, Mongo, Postgres, you name it. You write a prisma schema kind of like a Mongoose model. Then you just use the same API calls regardless of the database. You don't need to know SQL for it, nor sanitation. Prisma handles everything.
I suggest you learn what an ORM is, don't be a boomer.
https://youtu.be/rLRIB6AF2Dg
>>105744994nigger ive gone around the sun 20 times and back. ive used every orm there is. i just hate writing sql if im doing personal projects. rather use firebase or instantdb. whatever helps me launch faster.
>>105745040that said ill check it out, sounds cool.
>>105745040Then why use MongoDB (assuming you're the guy I initially replied to)
>>105744982id kill for a fkn job rn
>>105745055im not the guy you originally replied to. hes probably indian. you'll open an indian resume and see a guy building something with mongodb and backbone.js or some shit in >current year.
>>105745066Ah, the prisma explanation was because I thought you were the Mongo guy. I used to be that guy when MEAN stack was a thing because I didn't want to write raw SQL either until I finally realized other ORMs that aren't shit exist.
>>105745084I just hate writing migrations, and doing row level security, as well as designing an rdbms and then having to go through hell to modify the schema and data. Appreciate the prisma explanation tho, it does sound cool. I got turned off from ORM's way way back using knex/bookshelf and ended up just rapping everything in raw().
>t. frontend shitter
>>105745097ORMs have gotten a lot better since Knex. It's the one I tried to switch to from Mongoose then instantly noped and stuck with Mongoose/MongoDB.
Prisma is pretty simple because you can GPT most of that setup shit since it's so basic and you use terminal commands for setup and migrations. Really APIs are so easy in this day and age with ORMs and HTTP servers like express you can GPT like 99% of your APIs after you get your initial server all setup. APIs are probably the best usecase for LLMs in my opinion. It's really hard to fuck an API up.
>>105743987pin your versions, you fucking retard.
>>105744898Solved, thanks anyway.
>>105745438They are all on the latest version except for leaflet which I pinned.
The issue was sharp. Version 0.34.* will segfault, rolling back to 0.33.5 solved this.
My house got struck by lightning yesterday and blew my internet out soI can't do my C++ stuff :(
I was finally getting into using the real uWebsockets in C++ instead of the uws.js package. I think this is a sign god doesn't want me leaving the javascript ecosystem.
Hey fellers
I have an idea and I need a very static and simple website to advertise it
I have little knowledge about how to administer webpages but I want to do it myself
Where should I even fucking begin
>>105749712join the disc link is in this thread and ill help you out
Claude Code and Cursor are making me so lazy desu
>>105751367i hate it. takes all the fun out of it, for a risk at some perceived speed gain. building shit in natural language is so fucking gay. but then at the same time you start going half-manual and you feel like an asshole, and start taking the risk again for the perceived gain, ad infinitum. im transitioning to mechanical engineering or something
>>105748975>>105749712You're not really giving us enough details. You'd have to tell us slightly more so we could know if it needs a backend or is just an html page.
>>105751367What's the point of cursor over just getting an extension in VS Code that does the same thing?
Thank you microfrontend niggers
I discovered ssi includes and now i'm putting json blobs in html
i dont need no god damn server components
>>105751798nta but cursor's tab autocomplete is the best on the market
What open source bot protections are there? I know Anubis, anything else?
>>105735661that can attract too much shit attention, better to only share it with whoever has legit interest and putting in work, what sense does it make to have a discord full of newbies and nobody to actually help? just care for the ratios
>>105751798Because of its first class AI support. It's able to browse my repo, do tool calls like CLI commands, provide a git merge style accept/decline changes for everything it did
my work also pays for it so I'm not complaining at all.
I feel like a retard trying to figure out Perl web frameworks. There's mainly the official documentation and not many real world examples.
>>105752610Just settle on Mojolicious and maybe ask here https://github.com/mojolicious/mojo/discussions.
>>105751795Just an html page
Something like really basic
>>105753997Literally just get a hosting service that has Cpanel then if you don't need a backend. No need for any fancy servers.
>>105748975github pages is free, there are shorthand domains as well, otherwise namecheap and digitalocean will do the trick, paying
Does anyone know if Astro has any good virtual routing integration support? I want something like next.js but next is kind of dog shit.
i want to scrape specific kinds of html pages for work. an example page is here: https://www.sec.gov/Archives/edgar/data/320193/000130817925000008/aapl4359751-def14a.htm
i have a program that goes through every SEC EDGAR def14a submitted by the company of my choice and attempts to parse each one with beautifulsoup, using different parsers until one works. i search for particular info in each 14a, collect it, and then i'm out.
with the case of apple, their most recent 14-a use a different kind of html, seemingly 'xmlns', which seems related to the SEC's inline XBRL format. i'm finding that recent 14-a forms of this format are really resistant to beautifulsoup parsing much to my chagrin. kind of a shot in the dark i know, but does anyone have previous experience scraping/parsing from relatively recent SEC edgar filings like this?
>>105756839I've been doing webdev for over a decade and haven't heard of most of the technologies you mentioned. Truly the web ocean is larger than I thought.
>>105756970i mean, i hadn't heard of them either before a few weeks ago. my boss gave me a task and i needed to learn how to scrape shit. i don't spend much time trying to seek shit out myself, because i know work will give me something to learn regardless.
>>105756998Unfortunately I'm bound to Windows right now. But I ran this in browser, which should work in node.js as well and it scraped the page 1:1 as seemingly XML just fine.
let res = await fetch('https://www.sec.gov/Archives/edgar/data/320193/000130817925000008/aapl4359751-def14a.htm');
let page = res.text();
Without access to my Linux ecosystem I can't help too much lmao. That said if it's fetching as XML does that help any? There's probably dozens of XML parsers out there for you as opposed to whatever the fuck xmlns is.
>>105757041i'll give this kind of solution a shot, thank you.
>>105757147Ye let us know if it works or not.
>>105752519yeah thats fair. wish more ppl were active
>>105758255I noticed a distinct pattern of multiple generals that people asked questions in dying around the same time GPT came out. Specifically a lot less questions being asked about fixing code and more general discussions of the trade.
I'm literally the only person who's used a code tag the entire thread here
>>105757041 but the threads used to have them all over a few years ago.
AI kind of killed several threads.
>>105758283yeah very depressing. i only just came back to these threads after like a decade. twitter is so gay it makes me wanna die so i came back here.
>>105758376I like Twitter. I've called so many people niggers and retards now that Elon has taken over and get banned less than I do on 4chan for calling people niggers and retards.
>>105758395i hate that i have to pay for it to get anything out of it. i've been on it long enough to know that every single anime avatar edgy coder profile is literally an indian.
>>105758406I went viral several times on Twitter before getting banned with thousands of followers and big accounts retweeting me. Every time I got banned I'd be able to go viral again one way or another. My last one I had a single tweet get retweeted by Project Veritas, it's founder, Robert Malone, Alex Stein, and several news stations, and some Infowars people.
Ever since Elon took over though I get no engagement despite not getting banned anymore and getting retweeted by semi-big accounts like three.js and babylon. I think it's rigged for blue checkmarks now. Basically only good for trolling if you're not going to pay (I refuse)
>>105758485nice i never invested much into it cuz i used it for coding so i had my real life shit in my profile. was going alright when i paid for it way back, made it to 100 followers then gave up lol.
Alright, completely new to web dev here, but I've got low level C experience. Say I want to make a website where my friends and I can play yhatzee or card games together, what should I use?
That's such a broad question, I know, but the sea of shit out there is just too fucking vast for me to even narrow down.
>>105713933 (OP)Are there any vps providers that don't require ID these days?
>>105757041>let page = res.text();Oh boy. Don't forget to await this, too.
>>105758729Don't have to get too bogged down on what technologies to use. But fwiw, the simplest options to get up and running asap are:
- using websockets for the multiplayer
- node.js on the backend that uses Socket.io - you'd keep in-memory the game state in some object that you'd broadcast to players in the room, as well as broadcast moves
- don't worry about databases
- separate the backend and front end in to it's own folders with it's own package.json
- for the front end you may want to use Vite to be able to use npm packages (e.g. socket.io-client) and to bundle your web app
- don't worry about using front end frameworks like react, vue, svelte, whatever unless you're proficient in it.
>>105758618lmao fuck that shit
>>105758773Oh yeah I forgot, my bad. I looked in console and saw the text and was like "yeah it works that's the xml right there", forgot I had to await promises to make it use-able.
>>105758729Make a game how you normally would but make it online. Then rig it to websockets and do a room system. It's pretty easy. I changed a Dance Dance Revolution clone I found online to use.
I'd suggest just learning to make a chatroom with socket.io like
>>105758868 said. It's easy as fuck. Then if you understand storing user data and sending it to the frontend users, then you'll have no problems sending scores and card games stuff too. Socket.io is slow in this day and age compared to things that aren't Javascript or Uwebsockets.js, but it's easy to use and has tons of examples so it's perfect for a small cardgame with friends.
>>105758868I don't think you need vite for socket.io, I never used it when I wrote in vanilla.
>>105758729>Alright, completely new to web dev hereturn back now while you still can.
got the 57" samsung ultrawide 7680x2560. shits cash.
>>105759118Congrats, now you can easily shitpost in multiple threads at the same time
>>105758868>>105759016Thanks for the suggestions, lads. I'll take a look. The chatroom/socket.io idea sounds like the best place to start for me. Keep it simple and work on from there.
>>105759072Also, kek. When I started researching stuff, I was getting this kind of impression from all the things people had to say online.
>>105759281Just use firebase realtime db. Rolling your own everything especially sockets is going to make you want to kill yourself.
>>105759118Imagine watching porn with that
>>105759281Don't listen to this retard here
>>105759403 he's why everyone makes fun of web devs for having unnecessary SaaS and dependency bullshit everywhere. Websockets are a good skill to have and you can carry it to C later.
I'll tell you what. If you want to learn websockets and are already experienced in C there's a package called uws.js that is both a websocket server and https server in one. It's pretty much the fastest standard thing you can use. I normally tell new comers just use socket.io BUT uws.js is an abstraction layer on a C++ library called uwebsockets, that's why it's so fast. I'd actually say just use uws.js and if you like it, since you're a C guy you'll know how to use the C++ version later if you ever want to write in something familiar. The uNetworking team based a lot of their syntax for their http around express.js, and a lot of the socket stuff around socket.io
>>105758395>calling the regard and negev word on twooterYou got deboosted nigga
>>105713933 (OP)>On July 10, 2018, GitHub founder and former CEO Tom Preston-Werner predicted that "within 5 years, you'll build your next large scale, fully featured web app with JAMstack and deploy on Netlify."How accurate is that?
i dont care about your job im still top chicken.
plus im doing work for money which is a job so i get to dab on you even harder. das right.
>>105763862I like tailwind but how do would you guys manage multiple themes on the same website?
Before tailwind I used 1 css file for each theme and swap them using js.
How do I do this with tailwind?
>>105764146You still can do that. Just use colors assigned to css variables with the variables assigned different values in each theme (class).
@import "tailwindcss";
@theme {
--color-accent-100: oklch(40.1% 0.123 21.57);
--color-primary: oklch(100% 0.3 31.57);
}
@layer theme {
.rainbow {
--color-accent-100: red;
--color-primary: pink;
}
.shit {
--color-accent-100: blue;
--color-primary: maroon;
}
}
something like this, and just assign any element the .rainbow class and anything underneath it will have those colors.
<div>
<h1 class="text-accent-100">Default</h4>
<div class="rainbow">
<h1 class="text-accent-100">rainbow accent</h4>
</div>
<div class="shit">
<h1 class="text-accent-100">shit accent</h4>
</div>
</div>
I've been using vite with sveltekit just because it has the "live-reload" on server-side code. Is there a way I can get that same live-reload effect with something like hono/uwebsockets/express so I can ditch the bloat? It's just way better for devving than restarting the process with nodemon
>gemini tells me to run this and open + port forward
import socket
import psutil
from flask import Flask
app = Flask(__name__)
@app.route('/status')
def status_page():
ip = socket.gethostbyname(socket.gethostname())
open_ports = [conn.laddr.port for conn in psutil.net_connections(kind='inet') if conn.status == 'LISTEN']
uptime = datetime.datetime.fromtimestamp(psutil.boot_time()).strftime("%Y-%m-%d %H:%M:%S")
return f"<h1>Server Status</h1><p>IP: {ip}</p><p>Open Ports: {open_ports}</p><p>Uptime: {uptime}</p>"
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5001)
bros i think my gemini hates me wtf
file
md5: 507204fa32911b0e5dfe56a6b03d5e4c
๐
>>105765141What's wrong with nodemon? That said if you're thinking of hono/uwebsockets/express I recommend this other library called hyper-express. In production it's like 1% slower than uWebsockets but the API calls are near identical to express. It's built on top of uws.js just like every other fast framework anymore (and Bun's entire ecosystem lmao). Don't fall for the benchmarks from bun-tards, they run their benchmarks locally instead of over a network like the hyper-express creator does. uws runs faster on Node. The creators of uwebsockets called out Bun on github for it a while back stating uwebsockets is 80% faster on node.
>>105765332>using gemini for literally anything other than long context planning
>>105765600Nvm thought you said you wanted it on express my bad
>>105765555Restarting the process is annoying when testing certain things like live sessions and downloads, I can alter the backend code and have the in-memory sessions be preserved while I dev which is way better. As for hyper-express it seems good, one of the things I didn't like with uwebsockets was that I had to add the github repo as dependency and it wasn't on npm
>>105714010this is elementary tier, if you can figure it out with the free and available materials online, you're ngmi
is the data prop a reserved prop name in sveltekit. why is it so loosely defined for ssr
>>105765630Can't help with that unfortunately. I've always used nodemon.
>>105765730See
>>105714068>>105714102>>105714042The guy is a fucking retard who just wants to make excuses.
>>105765141>>105765555>uwebsocketsDo you guys really need this level of performance? How many users do you think you'll have for whatever you're building?
>>105766373Life is too short to not shit on gotards every chance
>>105766467I dunno why you're mentioning Go, but Go is a great language. Simple to use. Fast. Cross-compiles extremely easily (unlike C/C++ which is a real hassle to cross-compile).
>>105766373Why would I not want high performance if the code is similar and actually less effort? I'd rather write for high performance and not need it, than need it later and have to rewrite all my shit.
>>105766485Because its slower than js ahahaha
>>105766564Kek. Javascript niggers have gotten uppity since uws.js started blowing everything else out of the water. Love to see it.
anyone here using flutter with neovim?
In Laravel, should I try to mostly have Gates or Policies for my authorization? They seem to do the same thing.
>>105766564Do you need that extra performance? I think there's a 99% chance you don't
>>105767283WHY NOT ALL JUST GO BACK TO PHP THEN YOU RETARD
>>105767290Because I don't like PHP you moron
>>105767517sounds like a skill issue.
>>105759118would, but what I don't like about it is that it doesn't seem to be high enough
Question lads. Let's say you want to make a React SPA. Would you use some existing package for routing, like React Router, or would you implement routing yourself? I've done it myself and I think the code is okay.
>>105768260I wouldn't use react at all. But if I were going to I'd use their router.
>>105768574React is usually mentioned in job ads though so I thought I'd stick with it. Also React Router isn't made by the React team, it's a third-party thing. I think the lightweight routing I've made is okay though. I just wondered how others here might approach it.
>>105768814wut. When I used react it asked if I wanted to use the router in the CLI. Though that was with next.js which was nigger ass
do any of you have a referral code for orangewebsite? or another registrar
i wanna give someone a bit of money
>>105768827I see. I've never used Next, but yeah maybe it asks you if you want client-side routing.
Is Flutter used at all nowadays?
>>105770841Yeah I think there are companies using it. I've never used it myself.
>Type 'string | null' is not assignable to type 'string | undefined'
>>105770841Nah lmao. Microsoft used React Native over fucking Flutter for their retarded start menu
>>105722846>>105722871
Used ED25519 for registration so the only user data I have to store is a public key.
>get mockup from designer
>ask copilot to implement it
>probably gets the design half correct
>makes its own decisions resulting in a better design
>designer is stingy about customizations
Guess we can address the elephant in the room in that this thing has replaced us both.
file
md5: 15063ea476888833c0f02c652b14bbc7
๐
stress testing a selection box on 1k divs
770 get selected => 200ms time delay before this snippet finishes. any way to improve this or am i hitting fundamenal JS limits here?
>>105772023for what purpose?
>>105768260tanstack router
>>105772023are all the divs in the viewport at once? if not then you could try virtualization or content-visibility: auto
Is the scrimba fullstack course worth paying for?
>>105772023use offsetTop/Left, offsetHeight/Width instead of getBoundClientRect() if you can
What's a free alternative to MailTrap?
They used to let you send emails there for free, but now I have to upgrade my free account to use that functionality.
>>105772001Replaced, or gave you less work to do? Embrace it, the average retard won't know how to fix it or it's fuckups. Artists may be replaced but our jobs got easier.
>>105772001>designer is stingy about customizationsrealest shit ever
i havent touch my project site in two months and set the server to display a static landing page cause im sick of computers
shit is so over
I'm kind of a beginner fronted dev, I got a question and I need a library recommendation.
First of all, when asking for a library, do you ask a library for the langage (JS) or the framework you use (Vue.JS).
And then, anyone knows a library that'll allow me to make a slider on top of a time code bar to select a time range/frame of the video playing? Much like what IOS has in most of their devices when you want to re-arrange your videos. Pic related.
I'm using the Fiber framework for Go and it's weird because it can end up sending random Go error messages to the client. A route handler could return an arbitrary error with the message "smelly poo" and that message would get sent to the client. So I added my own error handler so that arbitrary errors will instead result in a status 500 and the text "Internal Server Error" being sent to the client.
>>105776659fe libs are generally gonna be in either ts, js, or something else and transpiled to wasm for the runtime (which opens up languages like c/cpp/rust/etc.). god forbid theyre built on something like pyscript.
you would generally want to look for libraries that have documented integrations with whatever component/state frameworks youre using, but most are probably usable from them without much fuss. you can manually integrate, say, threejs with react without using react three fiber, but using the latter would be a massive improvement in your experience and performance.
no, i havent fucked with video players/scrubbers in years. there is potential for a lot of network overhead with streams in that situation so itd be wise to look for a library thats already out there.
How do I update a url with search parameters as they are being typed?
Working on this site using the Nasa image and video api. When clicking the link to the search page you have to set the params to undefined which shows in the url but how do I update the url when a search is being typed in the input?
https://space-and-wonders.netlify.app/space-images/search/undefined
>>105776801If you want to update your URL use history.pushState. Here's the docs for it.
https://developer.mozilla.org/en-US/docs/Web/API/History/hello-world.html
>>105776801>>105777212To elaborate a little further, I used their code directly for your usecase. Using this code:
const state = {};
const url = "test";
history.pushState(state, "", url);
will set your URL to https://space-and-wonders.netlify.app/space-images/search/tdsfdsf
So what you'd want to do obviously would be on page load make it something other than undefined. Then when the search event you have runs, run the function to match whatever is in the input. Pretty straight forward. I tried making it use a blank space but that didn't work unfortunately.
>>105776801well you listen for keydown/keyup event and set the url accordingly
>>105777266He should already have the key up and down event as the search updates in real time. If he strictly wants the URL then
>>105777212 >>105777253 is what he wants.
>>105777212>>105777253>>105777266Thanks, will take a look. Not had to do anything with the url before but I don't like it being set to undefined all the time.
>>105777276>as they are being typed
>>105776659Video.js has a plugin for that I believe. They have plugins for everything.
>>105777314Yeah. It seems he already has that. You wouldn't want it to be instant though, you'd want a timeout for it if you're making API calls to NASA. You don't want to do an API call for every single character, there should be a timeout for if they stop typing THEN search and update URL.
Let's say someone is typing "Moon landing", do you want to do api.call('M') api.call('Mo') api.call('Moo') api.call('Moon') etc and get the user rate limited?
>>105777350I agree, something like while keydown wait 1 second
>>105777350>>105777369in fact, I think most sites give you like 4 chars minimum and after that they start the auto-complete
>>105777212>>105777253>>105777266>>105777276This worked, updates the url as search is being typed.
https://space-and-wonders.netlify.app/space-images/search/latest
const navigate = useNavigate()
const handleSearch = (e) => {
setPageParam(1)
setValue(e.target.value)
navigate({
to: '/space-images/search/$search',
params: { search: e.target.value },
})
}
>>105777752does it keep this in account, does it wait for text to stop being typed to push the update?
should i drop php, and waste a year of my life changing my qualifications towards something else?
>>105777781Try it out, it updates as you type. I'm using debounce on the search input.
>>105777908you might want to give it a small delay just to avoid multiple url sets
>>105776801Based space enthusiast
Give it to me straight lads, is AI going to eliminate all the junior web dev jobs?
>>105777908Yeah what
>>105777920 said. If you press the back key in browser to go back to your last result it goes one character at a time. So from rocket to rocke to rock, and so on. Delays are pretty easy, just make the keystrokes set a setTimeout then on new keystroke cancel the latest setTimeout with a new one to overwrite it. That way you can do like a 3 second timeout so if they stop typing for 3 seconds THEN it does the search and update URL.
>>105779767That's what I want it to do though, just want it to update with the search as it is being typed so it isn't set to undefined all the time.
file
md5: 15580a72664cf3f33d1a3f70bb8272ba
๐
>>105779837I understand that. But what I'm saying is every keystroke updating makes it so you have a big history (what the user sees in back button) so if they want to go back, they have to press the back key for every single character.
file
md5: 6acf08fc4cf982dd5c070921940a4728
๐
>>105775367Thanks. Yup, replacing that worked out in the best way!
>>105773555I'm writing a flow/node editor and currently doing premature optimization.
I'm attempting to get into game dev. I had fun with Babylon.js and Three.js but it's time to stop being a web baby and apply what I've learned with multiplayer backend that I've learned from web to game dev. I'm torn between Godot and Unreal right now as C++ is my Low Level Language of choice.
Wish me luck frens.
>>105780857good luck, game dev looks hard as fuck but very rewarding
>>105780887I've done some stuff with Babylon.js and three.js and it's not that hard, from what I understand it's easier outside of the web ecosystem because in actual advanced game engines that aren't web toys you do way less coding stuff and way more playing with GUIs. Supposedly you can make games in Unity without even knowing coding.
>>105779869See what you mean, first time I've done anything with the url side of things. Will look more into it tomorrow.
Don't forget everyone, always craft your website so that it works GREAT for screen readers. Be an ally :^)