← Home ← Back to /g/

Thread 106910741

318 posts 64 images /g/
Anonymous No.106910741 [Report] >>106910797 >>106910838 >>106910853 >>106910907 >>106911529 >>106942991 >>106954157 >>106960477 >>106966666 >>106971829
/wdg/ - Web Development General
Death of Rails edition.

>Free beginner resources to get started with HTML, CSS and JS
https://developer.mozilla.org/en-US/docs/Learn - MDN is your best friend for 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

>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
https://quii.gitbook.io/learn-go-with-tests - Learn Go with Tests

>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: >>106827664
Anonymous No.106910797 [Report] >>106910825
>>106910741 (OP)
I think Laravel is good enough to run basic but solid front end projects, you can manage Js too without having to add anything else. I hope it stays relevant without getting too hyped, afterall PhP is still fundamental for the web.
Anonymous No.106910825 [Report]
>>106910797
my php noscoper frens do hex architecture with php, sounds dope
Anonymous No.106910838 [Report] >>106911027 >>106911246 >>106911369 >>106911503 >>106913035 >>106916095 >>106919971 >>106925667 >>106927392 >>106939895 >>106957621 >>106964669 >>106986503 >>106986751
>>106910741 (OP)
>Rails
What went wrong?
Anonymous No.106910853 [Report]
>>106910741 (OP)
I really like Ruby and for some reason every time I use unless and every time I use an if function that ends with ? I feel extremely comfy, it just feels right.
But Ruby is terribly slow or so I heard.
Anonymous No.106910907 [Report]
>>106910741 (OP)
TLV
TRD
Anonymous No.106911027 [Report] >>106911525 >>106928307
>>106910838
Nothing, it's great, people just want shiny new toys
Anonymous No.106911246 [Report] >>106911402
>>106910838
>other frameworks copy Rails
>prospect of not having to deal with Ruby
Anonymous No.106911369 [Report]
>>106910838
nothing.
that's a normal trendline. rails got their fifteen minutes of fame.
Anonymous No.106911402 [Report] >>106913031
>>106911246
rails scored 100 once.
rails + other frameworks add up to like 70.
so that explanation is lacking.
Anonymous No.106911503 [Report] >>106945336 >>106965127
>>106910838
DHH
Anonymous No.106911525 [Report]
>>106911027
nothing says shiny than a 14 year old framework taking over
Anonymous No.106911529 [Report]
>>106910741 (OP)
based. fuck ruby, fuck rails.
Anonymous No.106911574 [Report] >>106914638 >>106919971
Every time I see Ruby on Rails I am reminded that this disgusting freak exists.
Anonymous No.106911629 [Report] >>106912723
What the fuck is a framework?
Just write your website in notepad like God intended.
Anonymous No.106912234 [Report] >>106912276 >>106965136 >>106974543
I'm so fucking bad when it comes to making a UI/themes, i spent hours looking at my pages and ended up not doing anything. I started reading UI styling guides and looking at other pages, I don't usually care about their designs but when I do I get so nit-picky that I end up realizing i just don't like any page on the world wide web
Is this how it ends? Few months of making a back-end, few weeks of creating front just to fail at styling the way my data will be displayed? Its so over
Anonymous No.106912276 [Report]
>>106912234
just give it a simple enough style, copy it from somewhere, that doesn't look horrendous and looks complete and finished, after that you can iterate, but you'll have something "done"
Anonymous No.106912723 [Report] >>106916672
>>106911629
>What the fuck is a framework?
Something which improves web dev
Anonymous No.106913010 [Report] >>106916417
I will answer your AWS and SQL questions until my cold brew is done spinning.
>what should i read to learn more?
Don’t. Build.
>sell me on using AWS instead of a VPS
I’m not a salesman and you didn’t give me a use case.
Anonymous No.106913031 [Report]
>>106911402
>first thing more popular than better things that had to compete
Anonymous No.106913035 [Report]
>>106910838
It is slow
Anonymous No.106913572 [Report]
Is vite still the way to go for react shit
Anonymous No.106914638 [Report]
>>106911574
typhoid coraline did irreparable damage to the ruby community
Anonymous No.106916065 [Report]
Larachads rise up
Anonymous No.106916095 [Report] >>106965117
>>106910838
It went off the rails
Anonymous No.106916208 [Report] >>106916333 >>106916381 >>106916562 >>106916623 >>106916686 >>106917775 >>106918294 >>106918732 >>106919796 >>106940982 >>106941486 >>106942831 >>106945363
God I want to get out of the 9-5 hellscape and bringing money for my CEO and Board overlords BUT I JUST DONT HAVE ANY FUCKING IDEA WHAT TO BUILD.

Its like everything is already done be it web, mobile or whatever the fuck.
At this point i'd even do a GPT wrapper for "easy money" but those also are in the millions right now.
The worst part is I could build whatever the fuck I want but I just don't know what.

>Inb4 just make a better version of xyz
Ye I am sure as a one man army I will do a better job than 100 pajeets working daily for 10 hours on Instagram or Youtube
Anonymous No.106916333 [Report] >>106916381
>>106916208
Stop thinking, start building. Just build something. Anything. If it doesn't work out, build something else.

Thinking about the perfect idea gets you nowhere.
Anonymous No.106916381 [Report] >>106916405 >>106916623
>>106916333
You're saying "go gamble," but that's terrible advice.

>>106916208
There's some room for an app that let's people share claude code/w.e agent sessions with multiple people. So that the intern can take over shepherding the codegen after senior dev makes up the specification.
Flipside is that OpenAI/Google already tried (codex/jules), and it failed.
Anonymous No.106916405 [Report]
>>106916381
>"go gamble"
It's called "take risks". Analysis paralysis isn't going to make you rich
Anonymous No.106916417 [Report]
>>106913010
>AWS
It's very expensive.
Anonymous No.106916562 [Report]
>>106916208
Build a porn filter moderator
Anonymous No.106916576 [Report]
I'm against React because every project at some point runs into complicated hydration issues that never ever get fixed because "not worth the time".
Anonymous No.106916623 [Report]
>>106916208
>>106916381
Another idea: a chatgpt wrapper that tells people what to do to shill their project. Lots of projects die because the dev doesn't do the marketing part. E.g. SEO/socials are not something the average hobby dev takes advantage of.
The nice part is that you'll know if the thing works, since you can dogfood it.
Anonymous No.106916653 [Report]
>got the idea
>got the protorype
>got no time
welp, maybe later, as for now I rather focus on increasing my paycheck
Anonymous No.106916672 [Report] >>106916817 >>106917156 >>106917998
>>106912723
HTMX proved this wrong
Anonymous No.106916686 [Report]
>>106916208
Stop thinking about useful or valuable things and start considering fun, enjoyable, but ultimately useless ideas.
Anonymous No.106916817 [Report]
>>106916672
htmx is dogshit, everybody knows this
Anonymous No.106917156 [Report] >>106917606 >>106917998
>>106916672
HTMX is a stupid fucking meme (in my humble opinion). Real web devs write JS/TS.
Anonymous No.106917174 [Report] >>106920802
just used ts generic types the other day, cool shit, but the docs could be way clearer 2bh
Anonymous No.106917606 [Report]
>>106917156
TSX is the way
Anonymous No.106917775 [Report]
>>106916208
And yet these hands will never build anything
Anonymous No.106917998 [Report]
>>106916672
>>106917156
HTMX is good but fixi.js is better.
https://github.com/bigskysoftware/fixi

React is too complicated and slow. It's a lot faster to send and render HTML directly than sending JSON that is then rendered to HTML using JS in the browser. And you always run into issues using React but it's the industry standard so people will still use it.
Anonymous No.106918202 [Report] >>106918219 >>106918228
How do I place a button in the same place regardless of screen dimensions? Chat GPT failed me.
Anonymous No.106918219 [Report]
>>106918202
Display: fixed to bind it to the viewport. Or display absolute with a parent on display relative to bind it to the parent coords. Then use top/bottom/left/right
Anonymous No.106918228 [Report]
>>106918202
define "same place regardless of screen dimension", in the meantime % values might be just what you want
Anonymous No.106918294 [Report]
>>106916208
this was a banger of a blogpost if you want some build fuel
https://www.geoffreylitt.com/2025/07/27/enough-ai-copilots-we-need-ai-huds
Anonymous No.106918732 [Report] >>106920071
>>106916208
Alternative to Autodesk BIM bullshit. Just managing to do "Electrical" or "Hydraulic" projects without going trhough autodesk, and being compatible with their bullshit will earn you a medal.
Anonymous No.106919665 [Report]
just told codex to refactor my whole project and make it better
*dabs*
Anonymous No.106919796 [Report] >>106919905
>>106916208
wagies have no imagination
they don't daydream about abstract ideas
they just dream about owning a house or something idk
they are cynical and constantly stressed
first step is to realize that this is not a state that is conducive to what you want to achieve
>inb4 but muh chicken or the egg
not my problem
Anonymous No.106919905 [Report]
>>106919796
It's not just wagies with this issue.
I'm a neet, and in social scenarios my mind goes absolute blank. It's disturbing, like being locked out of my ability to think.
Anonymous No.106919971 [Report]
>>106910838
Ruby syntax just sucks.

>>106911574
Isn't this the guy who threw a tantrum and forced multiple projects to adopt a CoC?
Anonymous No.106920071 [Report] >>106942943
>>106918732
isn't that what solidworks is for?
Anonymous No.106920516 [Report] >>106920560 >>106922254 >>106922430 >>106925635
I discovered that you can get pixel-crisp font rendering if you just use Japanese fonts. this is 'MS PGothic'
Anonymous No.106920560 [Report]
>>106920516
japanese svgs optimized for small screens folded a thousand times
Anonymous No.106920802 [Report]
>>106917174
>the docs could be way clearer 2bh
I swear this could be said about 90% of the web related shit
Anonymous No.106920933 [Report] >>106921076 >>106924359
SOLID is for retards who can't think for themselves.
Thank you for your attention to this matter!
Anonymous No.106921076 [Report]
>>106920933
one dude told me about it, he was top tier programmer, way ahead of me
Anonymous No.106922254 [Report]
>>106920516
I like anti-aliasing though
Anonymous No.106922359 [Report] >>106923169 >>106924342 >>106941424
for those of you who are on the more professionally experience side, what's your take on abstractions/libraries/prebuilt vs creating your own?
I know rolling your own security if you're not battle hardened is advised against, anything else?
Anonymous No.106922430 [Report] >>106925635
>>106920516
Ok I did some more research: browsers ignore bitmap information in fonts if that font is not installed natively on the system. So if you serve a ttf file from your server, no crisp fonts. However, if the font IS installed locally, it will pass through bitmap info and display crisp. Japanese fonts have a lot of bitmap info I guess
Anonymous No.106923042 [Report] >>106923062 >>106923111 >>106923158 >>106924381 >>106930936
You DO use the king of editors, right /wdg/?
>Very lightweight, unlike Electron garbage
>Cross-platform
>Tons of extensions including language servers
Anonymous No.106923062 [Report]
>>106923042
After all these years, it's still the best
Anonymous No.106923111 [Report]
>>106923042
copilot though?
Anonymous No.106923158 [Report] >>106924548
>>106923042
i do
Anonymous No.106923169 [Report] >>106923191
>>106922359
With your own libraries you're just wasting time on creating and maintaining them in addition to doing actual work. With 3rd party libraries you can focus on your actual work.
If you want to reinvent the wheel you need to have a very, very good reason for it. Or you need to be working on a very minimalist product where maintenance will never be a huge issue.
Anonymous No.106923191 [Report] >>106924026 >>106924342
>>106923169
makes perfect sense, I guess that's what makes node not so trustworthy and C# and spring more trustworthy, does it make sense? I mean "dangerous" libraries
Anonymous No.106923841 [Report] >>106923893 >>106930936
Is it in poor taste to host your website on GitHub for free? Is this looked down upon in the professional sphere? Is there a better option?
Anonymous No.106923893 [Report] >>106924814
>>106923841
Almost nobody cares. But you can also just buy a domain name for $5-$15/year and just make it direct to your github page.
Anonymous No.106924026 [Report]
>>106923191
NPM is a cesspool because of its popularity.
In a certain way it acts like Jupiter by using its gravitational pull to protect the rest of the ecosystem from the retards and bad faith actors
Regardless, if you're using few and popular packages, and you're not trying to run a nuclear power plant, or financial services, i don't think it makes any difference, the biggest security risk is still you committing the keys by mistake
Anonymous No.106924342 [Report]
>>106922359
use the standard library of your language.

>>106923191
csharp is a language, node is a language runtime, spring is a framework. there's nothing to compare to.
Anonymous No.106924359 [Report]
>>106920933
solid's signals are a revolution that enable real reactivity.
vue and svelte already picked up signals.
Anonymous No.106924381 [Report] >>106927832
>>106923042
electron blasphemy in /wdg/ makes no sense.
electron enables webdevs to write desktop apps.
Anonymous No.106924548 [Report]
>>106923158
Do you use emac for frontend? care to share?
Anonymous No.106924814 [Report]
>>106923893
Okay, cool, that's what I've been doing. It's so much cheaper.
Anonymous No.106925635 [Report] >>106931321
>>106920516
Oh I use that and MS Gothic a lot
>>106922430
>browsers ignore bitmap information in fonts if that font is not installed natively on the system
Damn what a shame, I didn't know that. I guess your best bet is to use MS (P) Gothic in that case because that's installed on all Windows machines with some kind of dot font as a fallback.
Anonymous No.106925667 [Report]
>>106910838
It’s still very good but Django and Laravel more or less have feature parity with it by now, and everybody already knows Python so newbies see no reason to learn Ruby. I prefer all three to backend TS though. Phoenix is king
Anonymous No.106927392 [Report]
>>106910838
The web lives and breathes JavaScript from 2015 onwards. I dunno how much more there is to it. Maybe a lot
Anonymous No.106927832 [Report] >>106929380
>>106924381
There's another thing called Tauri which is meant to be much more lightweight because it renders your app using a web engine already built into the operating system. Their docs say that the front-end of your app would be written in HTML/CSS/JS while you can write a back-end using Rust, but maybe it's possible to only write JS code if you want, I dunno.

https://github.com/tauri-apps/tauri
Anonymous No.106927844 [Report] >>106928016 >>106928024 >>106928365 >>106930936
I am going to make a web framework. Should I make it in golang or some other lang? LLMs are pretty gucchi at golang
Anonymous No.106928016 [Report] >>106928050 >>106928068
>>106927844
Why do you want to make ANOTHER framework when you're not even sure which language to use?
Anonymous No.106928024 [Report] >>106928365
>>106927844
go is not expressive enough for frameworks (primitive type system) and go's community hates frameworks anyways
Anonymous No.106928050 [Report] >>106928217
>>106928016
Name one movie
Anonymous No.106928068 [Report] >>106928074 >>106928217 >>106928295
>>106928016
Yeah, I only have an idea of how it should work. I'm thinking a little like htmx, but rather than retarded "hx-target" garbage that inevitably turns into spaghetti.

func (x model) MyPage(...) {
return body(
div(x.content)
button({OnClick: x.increment})
)
}
[/body]

That'd be the TEA model, I just need to figure out how to autowire the server/client endpoints (like react server components or tRPC does).

Thanks for coming to by ted talk
Anonymous No.106928074 [Report]
>>106928068
fml had brain death with the ending code tag
Anonymous No.106928217 [Report]
>>106928050
Problem Child 2 (1991)

>>106928068
I see
Anonymous No.106928295 [Report] >>106928365
>>106928068
so like a worse version of rail's hotwire?
Anonymous No.106928307 [Report] >>106928325 >>106928350 >>106930936
>>106911027
ruby syntax is pure crap
Anonymous No.106928325 [Report]
>>106928307
>getting filtered by trivial syntax
Anonymous No.106928350 [Report]
>>106928307
t. Guido van Rossum
Anonymous No.106928365 [Report] >>106928419
>>106927844
>>106928024
I think I'll use rust instead, because I think it'll work better with cloudflare workers. Never written a line of rust before, though.

>>106928295
I've not used hotwire, but I don't see how my thing is even close to hotwire. That's more like the spaghetti that I'm trying to avoid. And my shit's definitely not doing websocket updates, I live for serverless.
Anonymous No.106928419 [Report] >>106928443
>>106928365
>I think I'll use rust instead, because I think it'll work better with cloudflare workers. Never written a line of rust before, though.
so like a worse version of hono?

>I've not used hotwire, but I don't see how my thing is even close to hotwire. That's more like the spaghetti that I'm trying to avoid. And my shit's definitely not doing websocket updates, I live for serverless.
there's no spaghetti. all the logic is in one place and rails has strong conventions where that place is. nor is websockets mandatory.
Anonymous No.106928443 [Report] >>106928463
>>106928419
The examples literally put the dom in a different file, like it's year 2000. That's the most spaghetti move you can make
Anonymous No.106928463 [Report] >>106928476
>>106928443
mvc frameworks having a separated view is not spaghetti but a well established architecture
Anonymous No.106928476 [Report] >>106928519
>>106928463
Obsoleted architecture, and obsoleted because it turned spaghetti.
Anonymous No.106928519 [Report] >>106928532
>>106928476
you know exactly where something is. it's the opposite of spaghetti.
Anonymous No.106928532 [Report] >>106928564
>>106928519
You want to modify a feature and have to touch 15 different files. The industry rejected this strategy years ago.
Anonymous No.106928564 [Report] >>106928573
>>106928532
let's hear your architecture.
where's the data fetching?
Anonymous No.106928573 [Report] >>106928658 >>106928731
>>106928564
It'll follow the elm architecture for components, the difficult part is how I wire everything up so it works like magic (i.e. no hx-target shit. Components are self-contained like in react).
I'm chatting it up with gpt right now, I don't know yet
Anonymous No.106928658 [Report] >>106928668
>>106928573
if react components are self-contained what are hooks for?
Anonymous No.106928668 [Report]
>>106928658
Putting hooks elsewhere is optional, for sharing code.
Anonymous No.106928731 [Report] >>106928743
>>106928573
>the difficult part is how I wire everything up so it works like magic
why's that needed? do everything server-side or do everything client-side.
Anonymous No.106928743 [Report] >>106928809
>>106928731
Well I don't want to return a whole new page each time. Like htmx let's you update just a fragment of the page.
I want to abstract away the targeting of the updates.
Anonymous No.106928809 [Report] >>106928841
>>106928743
why are you switching between react and htmx? react is spa. htmx is mpa. htmx cannot do client-side routing.
so what's it going to be? spa or mpa?
Anonymous No.106928841 [Report] >>106928878 >>106929203
>>106928809
Those are examples. It's MPA.
For the increment button example I showed before, the app will make a fetch request to a backend endpoint that I need to manage (think tRPC), the result will be updated to the dom by some JS glue.
I don't see how I could do that all server side without refreshing the page.
Anonymous No.106928878 [Report] >>106928899
>>106928841
>I don't see how I could do that all server side without refreshing the page.
https://developer.mozilla.org/en-US/docs/Web/API/View_Transition_API
Anonymous No.106928899 [Report]
>>106928878
Yeah but it's not supported on ff and can go take a shit. And sending back the whole dom tree on every update is no good.
Anonymous No.106929203 [Report] >>106929526
>>106928841
the current best serverless mpa framework is deno's fresh.
https://fresh.deno.dev/
which features are you missing?
Anonymous No.106929380 [Report] >>106930608
>>106927832
>which is meant to be much more lightweight because it renders your app using a web engine already built into the operating system
So let me rephrase that. Which is meant to be much more lightweight because it offers zero compatibility guarantees by trying to run your code on whatever the fuck the OS has installed in ${currentYear}.
>but maybe it's possible to only write JS code if you want, I dunno
I checked it out before, and it really didn't seem like that was the case. The entire fucking premise of forcing Rust for this is retarded. I should be able to write the backend using JS and use a JS frontend framework like with Electron.
It's mind boggling to me how nobody cares to solve this problem.
Anonymous No.106929520 [Report] >>106929526
the joys of designing the perfect fucking form.
I feel like I just blankly stare at a screen for hours and nothing materializes. I honestly wish there were good WYSIWYG editors.
Anonymous No.106929526 [Report] >>106929529
>>106929203
What kinda question is that

>>106929520
True that. Although gpt5 will oneshot em these days so it ain't such a big dealio.
Anonymous No.106929529 [Report]
>>106929526
the only saving grace in modern css is grid exists. makes a lot of shit I use to tweak autistically a lot easier.
Anonymous No.106930608 [Report] >>106930817
>>106929380
>Which is meant to be much more lightweight because it offers zero compatibility guarantees by trying to run your code on whatever the fuck the OS has installed in ${currentYear}.
If someone keeps their operating system up to date then they should have a pretty modern browser engine as part of their OS. Edge's Chromium-based engine on Windows, Safari's engine on MacOS, and WebKitGTK on Linux, which should be similar to Safari I guess.
>I checked it out before, and it really didn't seem like that was the case. The entire fucking premise of forcing Rust for this is retarded. I should be able to write the backend using JS and use a JS frontend framework like with Electron.
What kind of code did you want to write that you couldn't use JS for? Anyway. I guess Electron does allow people to write desktop apps just using JS, but Electron apps are so fucking bloated and take noticeably longer to launch than regular apps.
Anonymous No.106930817 [Report] >>106930988
>>106930608
>If someone keeps their operating system up to date then
the browser engine I developed the software for and tested the software on will eventually change, introducing compatibility issues. All the user will see is how "this piece of shit program stopped working." Meanwhile, I can literally double click on the icon of the first version of VS Code (released 10 years ago) right now, and it will literally just work on my Windows machine.
>What kind of code did you want to write that you couldn't use JS for?
Literally anything that requires something more than rendering stuff in a webview I suppose. Like, I'm not touching Rust, I want to write the backend in JS and utilize Node libraries
>Electron apps are so fucking bloated and take noticeably longer to launch than regular apps.
And nobody other than autistic neckbeards (who aren't your primary audience anyway) gives a damn because it just work, as mentioned above. It is a tradeoff, of course, but I think it's well worth it. You can even take very well written and responsive Electron apps like VSCode, and autists will still seethe about it. Normal people are happy they get cross-platform apps that just work, and devs are happy they avoid the native development humiliation ritual.
Anonymous No.106930936 [Report] >>106930988 >>106931003
>>106923042
Thing should've died years ago now that we have vscode and fleet.

>>106923841
Nobody really cares. As long as you have a website. It's actually smart to use free tools which are available to you, saving you costs.

>>106927844
Make it in C#. Aspnet sucks and we need more C# web frameworks which aren't total garbage.

>>106928307
tryth nyke
Anonymous No.106930988 [Report] >>106931003 >>106931016
>>106930817
>the browser engine I developed the software for and tested the software on will eventually change, introducing compatibility issues. All the user will see is how "this piece of shit program stopped working."
Why do you think that? Old web pages still work in new browsers.
>Literally anything that requires something more than rendering stuff in a webview I suppose. Like, I'm not touching Rust, I want to write the backend in JS and utilize Node libraries
Some NPM packages will run in a browser context right?
>And nobody other than autistic neckbeards (who aren't your primary audience anyway) gives a damn because it just work, as mentioned above. It is a tradeoff, of course, but I think it's well worth it. You can even take very well written and responsive Electron apps like VSCode, and autists will still seethe about it. Normal people are happy they get cross-platform apps that just work, and devs are happy they avoid the native development humiliation ritual.
Normies will probably think "why is this app so fucking slow" even if they have no idea what an Electron app is.

>>106930936
>Thing should've died years ago now that we have vscode and fleet.
VS Code is bloat. I haven't tried Fleet to be honest.
Anonymous No.106931003 [Report]
>>106930936
>>106930988
Fleet's already deprecated, it got rebranded to AIR (AI something).
Anonymous No.106931016 [Report]
>>106930988
Normies are even fine with fucking discord and twitter doe
Anonymous No.106931321 [Report] >>106931493
>>106925635
I did some scripting, and these are the fonts I found natively on Windows which have bitmaps encoded in them, and their respective bitmap sizes

Courier New (TrueType)
2, 2, 3, 4, 4, 6, 6, 8, 7, 8, 9, 7, 8, 10, 10, 8, 10, 11,
MS Gothic & MS UI Gothic & MS PGothic (TrueType)
7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
SimSun & NSimSun (TrueType)
8, 10, 10, 12, 12, 13,
SimSun-ExtB (TrueType)
12, 12, 14, 14,


Some others have bitmaps encoded at 0 height so I didn't include them. I've not found bitmaps to work on courier new at all, at any size. SimSun-ExtB also doesn't appear to work. MS Gothic, MS UI Gothic, and MS PGothic appear to be slight variants on the same sans-serif font, each with a different width. These seem to all be Japanese fonts. SimSun seems to be a serif font.

Here's a jsfiddle - you can check how the fonts look on your system

https://jsfiddle.net/yzpqov46/7/
Anonymous No.106931493 [Report] >>106931629
>>106931321
>Courier New
I didn't know wit had embedded bitmaps, because they sure as hell don't show up anywhere. The original Courier font had bitmaps only, but Microsoft removed it from Windows.

MS Gothic is a monospaced Japanese font, and the P version means proportional. There is also MS Mincho (MS 明朝) and MS PMincho, which are a serif version, and those also has bitmaps and are available on Windows by default regardless of locale. But I think if you only put the Japanese name in the CSS, it might not recognize it on non-JP locale.
SinSun and SimHei are Chinese fonts, but the latter doesn't seem to render bitmaps.
Anonymous No.106931629 [Report] >>106932090
>>106931493
Didn't find Mincho installed on my system
Anonymous No.106932090 [Report]
>>106931629
Oh shit, you're right. I always assumed it would be the same as MS Gothic, but I just checked on my work PC and sure enough it's not there.
Anonymous No.106933854 [Report] >>106934437
You know when you're trying to build something and you get bogged down on some tiny fucking feature that you want to implement but it's basically impossible?

I need to learn to give up on features which don't matter that much so I can use my time to build an MVP
Anonymous No.106934437 [Report]
>>106933854
yeah i do this a lot with typescript types. trying to design the perfect reusable api for something instead of just getting the feature done
Anonymous No.106936181 [Report] >>106936400 >>106937369 >>106937953 >>106939262
How do I use a javascript library if I don't have node?
I found a library I want to use but the read me just tells me to install it from npm or yarn and I'm just a guy with a necoties page, how do I use it from the javascript document that I'm going to upload to neocities? Also the library is in typescript and I bet that makes my situation worse.
Anonymous No.106936400 [Report] >>106936759
>>106936181
Which library? Some libraries have 3rd party dependencies so it might be annoying to do all this without a package manager.
>the library is in typescript
You will probably have to pull it and run the typescript compiler to get js.
Anonymous No.106936759 [Report] >>106966628 >>106969364
>>106936400
>Which library?
https://github.com/image-js/image-js
>Some libraries have 3rd party dependencies so it might be annoying to do all this without a package manager.
on NPM it says this one has 21 dependencies so yeah, this may not work by hand.
>You will probably have to pull it and run the typescript compiler to get js.
So just linking this on my project will not be possible?
Ah fuck now i really need to learn back end stuff.
Anonymous No.106937278 [Report]
b
Anonymous No.106937369 [Report] >>106943543
>>106936181
You'd need a bundler like esbuild for example. Basically what they do is generate a big blob of js out of libraries you use, which you can then embed with <script> tags. I'm not sure how permissive neocities is with shit like that.
Anonymous No.106937953 [Report] >>106943543
>>106936181
Easy
https://unpkg.com/

>Add a <script> tag with the unpkg cdn
>Add a <script> tag with type=importmap
<script type="importmap">
{
"imports": {
"preact": "https://unpkg.com/preact@10.25.4/dist/preact.module.js",
"preact/hooks": "https://unpkg.com/preact@10.25.4/hooks/dist/hooks.module.js",
"htm": "https://unpkg.com/htm@3.1.1/dist/htm.module.js"
}
}
</script>

>Add a script tag with type=module
<script type="module">
import { h, render } from "preact";
import { useState } from "preact/hooks";
import htm from "htm";

const html = htm.bind(h);

//... etc
Anonymous No.106939262 [Report] >>106943543
>>106936181
you need to use a CDN (jsdelivr, unpkg, cdnjs) and a script tag
also if a library is in TypeScript, it doesn't matter, because TypeScript libraries already have transpiled JavaScript files. So it will work
Anonymous No.106939334 [Report] >>106939786
I'm going to launch a company that sells access to an API. The users will only have to login maybe twice a year to rotate keys if they want to. I'm thinking about implementing "magic link" passwordless login with email only. Opinions about "magic link" auth? I don't love it myself but I think it makes sense for my usecase. I use a password manager but I know that most don't.
Anonymous No.106939786 [Report] >>106973587
>>106939334
There should be a backup plan in case the use loses access to his email.
Anonymous No.106939895 [Report] >>106940683
>>106910838
JavaScript is king.
Anonymous No.106940683 [Report]
>>106939895
Based and correctpilled
Anonymous No.106940845 [Report]
Writing a docs site for my library in plain HTML/CSS
Anonymous No.106940982 [Report] >>106967489
>>106916208
Build minimum viable products, try to get first buyers and if you don't have any move on to the next idea. Building a business or product that lots of people will use is like reverse russian roulette, you only have to win once.
Anonymous No.106941424 [Report]
>>106922359
Libraries are machines in factory, they have a cost associated with them so they better be worth it. pyjwt isn't worth it almost ever, you can just write a hmac/sha256 implementation in <100 loc. Stockfish as a dependency of lichess is totally worth it, the value add of writing your own stockfish for a chess website is completely offset by the effort required. Perhaps chess.com finds one day they could reduce operating cost by 30% writing a stockfish alternative that makes better use of a distributed database or something, perhaps then it would be worth it. But back to pyjwt, yes if you're speed running going from a clean python install to printing a jwt token in the repl then obviously pip install pyjwt will be the fastest. But now pyjwt is a permanent depedency on your project, ensuring the version your project works and is stable with is always availble during the build process will be a permanent overhead for the infrastructure team. By importing a library you as a developer become better at importing libraries, instead of becoming better at writing code. And finally projects that make use of dozens of libraries are usually brittle, you lost the dependencies.asshole file and now you can't even build the thing anymore. Imagine all your projects was like curl-san, just werks everywhere using nothing but a ansi c compiler. You could actually move on to other projects, go outside every once in a while. Make your code a asset not a liability.
Anonymous No.106941486 [Report] >>106942507
>>106916208
I'm the other way
I have a lot of ideas, but I don't know how to monetize it, and deal with beaurocracy and how to make a company and pay taxes and shit like that
Anonymous No.106942354 [Report]
I'm supposed to build a project for a hypothetical business, anyone know what I should build? I'm in my 2nd year so it can't be anything basic, it has to be more advanced. Something that would take 3 months.
Anonymous No.106942507 [Report]
>>106941486
You have ideas, but have you built something?
Anonymous No.106942530 [Report] >>106942602 >>106942638
Question /wdg/. I could make another project using PHP because there are lots of PHP jobs. I already have a basic PHP project though. If I make another project I'd rather use Go because (a) I like Go and (b) Go is fast so you would probably never need to rewrite your app in the future. Should I just make a project with Go? Even though there are essentially zero junior jobs that want Go experience?
Anonymous No.106942602 [Report] >>106942684
>>106942530
It's not like you'll ever have to rewrite it if you use PHP anyway.
Anonymous No.106942638 [Report] >>106942684
>>106942530
Have tried having sex with your sister?
Anonymous No.106942684 [Report]
>>106942602
I might do. It's a billion dollar idea, just you wait...

>>106942638
No.
Anonymous No.106942831 [Report]
>>106916208
>Its like everything is already done
This doesn't matter.

In any space, there is always going to be a large group of users pissed at one to all of the current solutions. You are 1 person. You need like 1 or 2k paying users to be comfy as fuck - and that's assuming subscription models, it could be significantly less if you do a buy once model.

You are severely overestimating the scale you need to get to and severely overestimating how hard it would be to get there. If there isn't a single tech thing you use that doesn't have something that bugs the shit out of you then you don't have brain.
Anonymous No.106942943 [Report]
>>106920071
no, I mean for building/construction/architecture.

Autodesk has been buying/killing the competition for the last 3 decades, now that they are all dead they are moving into the enshittification phase, with mega hitler cloud licenses.
Anonymous No.106942991 [Report] >>106943003 >>106943052 >>106943174 >>106943853
>>106910741 (OP)
Does anyone even use anything besides Node.js or Python backends anymore?
Even Java got put out pasture like ColdFusion. There is no server side in 2025 because all that matters is client side mobile first browsers and enough API to make a mobile app work.
Anonymous No.106943003 [Report] >>106943161
>>106942991
I use Rails, Turbo and Stimulus. It's 100% server side logic and behaves like a SPA for the user.
Anonymous No.106943052 [Report] >>106943206
>>106942991
Job uses A LOT of springboot. I'm don't like java and had no experience with spring so they put me into some bullshit legacy python project.
Anonymous No.106943161 [Report] >>106943538
>>106943003
I'm trying to get a business off the ground, and I'm also using rails.
Anonymous No.106943174 [Report]
>>106942991
I use Rust for everything nowadays, sans the obvious frontend stuff.
Anonymous No.106943206 [Report]
>>106943052
Springboot is dogshit hell. No one really understands it or how it works. I sort of understand it but my knowledge is literally a decade old and I try and avoid it like the plague. Thankfully in the "microservice" world you can do whatever you want usually. I'm mostly doing ASP.NET Core and it definitely heems Spring shit.
Anonymous No.106943499 [Report] >>106946848 >>106964624
smol progress update post on my web game
Anonymous No.106943538 [Report]
>>106943161
I'm you about a year ago. You made the right choice.
Anonymous No.106943543 [Report]
>>106937369
That's kind above my level.
>>106937953
>>106939262
I'll look into this stuff, thank you
Anonymous No.106943853 [Report] >>106943874 >>106943946
>>106942991
Go is a much better option. More performant, simpler, great standard library, more secure (partly because of the great standard library), easier to deploy in prod...
Anonymous No.106943874 [Report] >>106943884
>>106943853
did go fags get a decent orm yet?
Anonymous No.106943884 [Report]
>>106943874
Don't use an ORM. It just complicates things. Learn SQL instead and use something like SQLC.
Anonymous No.106943946 [Report] >>106944596
>>106943853
how's it simpler?
go hates frameworks. python fags can just use fastapi whereas go fags have to glue together libraries.
Anonymous No.106944596 [Report] >>106944790 >>106947773
>>106943946
You clearly never written a line of code in Go so there's no use talking to you about it. The standard library already does a lot for you, the libraries you "glue" together are no different from extensions/plugins in Python django/flask/fastapi. You need a CSRF token middleware? Great, just use something like `nosurf` and because of the standard library http.Handler interface it plugs in like any other middleware. It's actually no different from how you would do it in any other language/framework the only difference is it's simple to do so and a painless experience.
Anonymous No.106944790 [Report]
>>106944596
What a lot of people don't realize is that Go's stdlib is essentially a framework.
Anonymous No.106945244 [Report]
>config map specifies database as a jdbc string
>want to push more C# because it's better
>C# SqlClient driver has its own shitty special snowflake connection string format
>Doesn't support converting JDBC
>Rust driver for sql server supports both ADO and JDBC strings
>few hundred loc for a mediocre parser code
I hate this shit so much. I really have to write my own jdbc to ado.net conn string converter because M$ can't be bothered to add support for it in their drivers?
Anonymous No.106945336 [Report] >>106946905
>>106911503
DHH is based and speaks alot of common sense. But limp wristed faggots on reddit have started calling him a racist nazi for centre/centre right views lmao.
Anonymous No.106945363 [Report]
>>106916208
Just got a product idea. See you later losers.
And don't (you) me with your filthy -6 MRR peasant hands.
Anonymous No.106946751 [Report]
>page 9
sirs please do the needful
Anonymous No.106946848 [Report] >>106946911 >>106946922 >>106947488
>>106943499
I didn't know you can have subdomains of localhost, interesting
Anonymous No.106946905 [Report] >>106947112 >>106947283 >>106947545
>>106945336
He seems like an obnoxious wanker, and he complained that London is "no longer full of native Brits", by which he seems to mean white Brits. So I guess he is racist. Rails should be forked so it's no longer associated with him.
Anonymous No.106946911 [Report] >>106947488
>>106946848
/etc/hosts file is very neat for that
Anonymous No.106946922 [Report]
>>106946848
Default dns resolver on at least linux and macos does this automatically for you. Anything *.localhost still resolves to 127.0.0.1.

I use it mainly to segregate my (auth) cookies and password manager logins across different projects I'm working on.
Anonymous No.106947112 [Report] >>106947452
>>106946905
You're a faggot, Harry.
Anonymous No.106947283 [Report]
>>106946905
Imagine throwing yourself under the bus for fucking britons lmao he could have chosen any of the other endangered white countries that could be conserved but he chose an invasive species. It's like being a tree hugger for eucalyptus.
Anonymous No.106947452 [Report] >>106947543
>>106947112
No I'm not. I just don't want to kneel down for arrogant multi-millionaires and their fantasies of ethnic purity.
Anonymous No.106947488 [Report]
>>106946848
>>106946911
You can use Caddy to get https and .localhost domains in local development.
Anonymous No.106947543 [Report] >>106947627
>>106947452
I apologize, I must issue a correction:
>You're a kike, Harry.
Anonymous No.106947545 [Report] >>106947627
>>106946905
DHH isn't a racist because he doesn't hate people because of race. He's just against replacement migration. I'm sure he would say the same about Tokyo if Japanese people became the minority in their own capital city etc.
Anonymous No.106947627 [Report] >>106985995
>>106947543
I don't think it's relevant whether I'm Jewish or not
>>106947545
He expressed his unhappiness about London because London now has a lower percentage of "native Brits", and when he says that, it seems he means white Brits specifically (he mentions these "native Brits" being about a third of London, and indeed about a third of London is white British). So he's unhappy that London now has more non-white people
Anonymous No.106947773 [Report]
>>106944596
>It's actually no different
you confuse me.
you needed to prove that it's simpler. instead you told that you can use the middleware pattern in go which is a staple everywhere else.
looking the middleware pattern up in go, it's badly implemented: go forgot about contexts.
Anonymous No.106947786 [Report] >>106947876 >>106947918
Switching to Supabase from Firebase after finding out Firebase literally has 0 safeguards to malicious actors spamming your service and causing you to rack up $100k bills in under a day
Anonymous No.106947876 [Report]
>>106947786
Not exactly surprising that Big Tech employs whatever scummy tactics they can to maximise profits
Anonymous No.106947918 [Report]
>>106947786
>BOSS!! THE Q4 EARNINGS REPORT WONT MEET THE MARKETS EXPECTATIONS!!
>Damn.....I really need my stock options to go up.......hmmmm I think we have to ddos some of our customers again.....
I want to sell you my used car if you don't think this happens.
Anonymous No.106948159 [Report] >>106957254
Is there a possibility of true P2P inside of a browser? Libs like https://github.com/subins2000/p2pt use intermediate servers.
Anonymous No.106949980 [Report] >>106950028 >>106950571
Go or C#, which is better for a back-end?
Anonymous No.106950028 [Report] >>106951934 >>106952359 >>106953488 >>106964624
>>106949980
Go. It's the best modern backend language. I would say Go > Kotlin > Java > C#.
Anonymous No.106950528 [Report]
I was thinking. Is there any open source algorithms? For things like finding related or relevant posts for someone on a social media site would like. Or relevant videos for a video site based on what the watcher likes, or shows? Or finding relevant ads based on their interests? Something plug and play to add to your database, probably SQL since that's what everyone uses.

I feel like an open source algorithm software that you can use for your database probably exists.
Anonymous No.106950571 [Report] >>106953488
>>106949980
What are you building?
Anonymous No.106951934 [Report]
>>106950028
>Go. It's the best modern backend language.
why does go make me choose between net/http and grpc? go without net/http sounds retarded, but so is no grpc.
Anonymous No.106952359 [Report] >>106954137
>>106950028
Where do js, ruby and pythin go on that ranking?
Anonymous No.106953488 [Report]
>>106950028
I see
>>106950571
A chat thing with WebSockets
Anonymous No.106954137 [Report]
>>106952359
>ruby and pythin
not webscale

>js
you run that on the client, not a backend language
Anonymous No.106954157 [Report] >>106955589
>>106910741 (OP)
unironically is rails + solidus the best thing for a small e-business if i like to fuck around with different parts of it?
Anonymous No.106954258 [Report]
How the hell dont we still have a <textarea> that grows with the content natively, without any js hoops?
Anonymous No.106955589 [Report]
>>106954157
I've been building my app with rails, and I wish I'd known about solidus, it looks great. I can't answer your question, though.
Anonymous No.106957006 [Report] >>106957024 >>106957695
It's ogre for frontend developers. I started learning HTML, CSS, and a little JavaScript about a year ago and apparently these skills are about to become completely useless. I was hoping to freelance as a frontend web developer once I mastered JavaScript, and then learn React, but now I feel like an idiot.

AI is already building professional, customizable websites for as little as $132/year. Who wants to pay a freelancer $1000 for a website? Probably not anybody in a few years.
Anonymous No.106957024 [Report]
>>106957006
GoDaddy is doing this. It's retarded and I don't know what to do.
Anonymous No.106957254 [Report]
>>106948159
WebRTC is built in to the browser for establishing p2p connections.

https://developer.mozilla.org/en-US/docs/Glossary/WebRTC

But using pure p2p often won't work because computers are behind NAT, so you need:

- A STUN server that each client connects to so that it can figure out your IP address via NAT traversal. Think of it like a DNS server.
- A signalling server that is the message broker/relay between the peers to set up the p2p connection

The signalling server is somewhat optional and can be bypassed if you're able to manually send the user the offer through other means (https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)
Anonymous No.106957621 [Report]
>>106910838
Japanese Mormonism
Anonymous No.106957695 [Report] >>106957822 >>106957868
>>106957006
>AI is already building professional, customizable websites for as little as $132/year
Building static landing pages was dead 10 years ago, nothing has changed.
Anonymous No.106957822 [Report]
>>106957695
Do you have to learn React and Node.js to have anything to offer? Even for small businesses and artist portfolio sites?
Anonymous No.106957868 [Report]
>>106957695
>Even for small businesses and artist portfolio sites
Dude, those are already all done by website builders. All of my friends who are artists use strawpage, and even when one asked if I could do him a favor I did it using strawpage. The only websites that need developers are web apps with any sort of backend.
Anonymous No.106957902 [Report] >>106960086
>not one mention of sveltekit

Pathetic

t. Senior full stack developer that started with PHP
Anonymous No.106959275 [Report] >>106960449
How hard are they trolling us?
Anonymous No.106960086 [Report] >>106964654
>>106957902
>completely change the framework with runes
>keep the name
>everyone leaves
no surprise
Anonymous No.106960449 [Report]
>>106959275
>using the actual youtube website instead of an alternative front-end
Come on lad
Anonymous No.106960477 [Report] >>106960668 >>106960802 >>106961421
>>106910741 (OP)
If any of you guys have not yet tried integrating AI development tools then just don't, like I'm seriously don't go and install Claude Code on your VS Code because it's over, you're not working anymore, you're opening a door that is very hard to close. I'm a vibecoder now, a drug addict, an incremental feature product manager, I'm doing things that I never thought I would be able to, I'm developing features in two days for things that would have taken me weeks, I'm developing programming logic and features way above my league. DO NOT open this door of temptation, keep it closed... for all of us... foru r saf e444t4444
Anonymous No.106960668 [Report]
>>106960477
>I'm developing programming logic and features way above my league.
like what?
Anonymous No.106960802 [Report] >>106960932 >>106961421
>>106960477
It's fine as long as you're using TDD.
Anonymous No.106960820 [Report] >>106963094 >>106963294
If you aren't writing your websites in Assembly CGI what are you doing with your life?
Anonymous No.106960932 [Report] >>106961421
>>106960802
I know.
Git + Testing (full coverage) and you're just a product management at that point. Web development is solved. What the fuck
Anonymous No.106961421 [Report]
>>106960477
I have not yet seen an AI do a single thing that in a meaningful way. At best it was pre-prototyping level what they spit out. Like you have to change *every* line just to make sure it does not shit itself. Yes, I do >>106960802, but that has not gotten me anywhere with AI, yet.

>>106960932
Seems to me like the kind of web dev that you do is "solved" and in that case I'd argue: You have not been doing anything that was not "solved" before. Remember web page templates from like 20 years ago? Even then I wondered why *anyone* would ever pay a coder to create a webpage for them when you've got ready to use stuff for free around. A solved problem, yet designers did not go out of business and they "brought" us all the glory of the mega large whitespace/padding big font no border flat design that we have all grown to love just so much.
Anonymous No.106962017 [Report] >>106962580
>Google good examples of ASP.NET Core using Azure SQL
>none of the things I can find make sense
I'm starting to think Java might be better again. At least the Quarkus examples are penetrable by my, clearly retarded, mind or M$ is just really shit.
Even the Rust Actix and Axum examples using deadpool-tiberius seem more readable than this shit.

Am I supposed to use GitHub copilot or something? It's banned at my company. AAAAAAA save me Salty Nutella!
Anonymous No.106962580 [Report]
>>106962017
can you show us those examples for asp.net and quarkus?
Anonymous No.106963094 [Report] >>106965023
>>106960820
At least write C. Modern compilers will create better assembly in this case than calling all the OS primitives by hand.

That being said: All we are doing these days is just glorified CGI with a different syntax and I unironically think (given the advent of stuff like htmx and "fullstack" react/js on the server) that CGI was not that bad after all...
Anonymous No.106963294 [Report]
>>106960820
If you don't write your front-end in WASM by hand then you're not a real web dev
Anonymous No.106964624 [Report] >>106965080
>>106943499
Pretty cool UI. So, Aurora porn when?

>>106950028
>best modern
So what? Nothing beats C# simplicity.
Anonymous No.106964654 [Report] >>106964949
>>106960086
>completely change the framework with runes
So you got filtered by a high-level framework using a newer higher-level design?

Pathetic
Anonymous No.106964669 [Report] >>106972761 >>106972796
>>106910838
it was always garbage and 50x slower than PHP
Anonymous No.106964949 [Report] >>106969154
>>106964654
Runes completely nuked the vanilla feel of Svelte, so I determined I may as well just use React. I know other people did the same (just look at the evolution of dev tools for Anthropic's research post-runes, or popular news rooms that once used Svelte but now don't.
Anonymous No.106965023 [Report] >>106965307
>>106963094
>All we are doing these days is just glorified CGI with a different syntax
no, an app server is very different than cgi
Anonymous No.106965080 [Report]
>>106964624
>So what? Nothing beats C# simplicity.
if you want to use csharp, you will have to use asp.net core. asp.net core is not simple but full of magic.
Anonymous No.106965117 [Report]
>>106916095
Lol underappreciated.
Anonymous No.106965127 [Report] >>106970841
>>106911503
He's the only good thing about it. Ruby is kind of terrible otherwise.
Anonymous No.106965136 [Report]
>>106912234
Oh man I remember that one from back in the aughts. Good times.
Anonymous No.106965307 [Report] >>106965502
>>106965023
How is it different?
Anonymous No.106965502 [Report] >>106965526
>>106965307
server vs eval
Anonymous No.106965526 [Report]
>>106965502
You do not have to "eval" anything with CGI.
Anonymous No.106965928 [Report] >>106966067 >>106968179 >>106975185
didn't i hear a while back that React was going to consolidate their ridiculous hook system and provide a simple "use(..)" hook? did I just dream that? like wtf is this shit?
Anonymous No.106966067 [Report] >>106966171 >>106966199 >>106966212
>>106965928
I do react for a living. I use "useEffect" in very rare cases only and frankly I do not have a fucking a clue what that stuff in your image means.
>u a brainlet
Like I said, I do react for a living.
Anonymous No.106966171 [Report] >>106966371
>>106966067
>I use "useEffect" in very rare cases only
How do you fetch data? With custom hooks?
Anonymous No.106966199 [Report] >>106966371
>>106966067
How do you like it? What is your job like? Is React the only way to survive as a frontend web developer? Advice for someone just getting into the field? Is it possible to freelance with React?
Anonymous No.106966212 [Report] >>106966371
>>106966067
Doesn't sound that crazy now that server components are a thing, otherwise how?
Anonymous No.106966371 [Report] >>106966579
>>106966171
Of course.
>>106966199
I do not like react. I do not like the concept. I do not like the execution. I miss the web before the JS SPA hell. That being said...
>Is React the only way to survive as a frontend web developer?
Yes, basically, because you are out to support the last 10 to 15 years of web apps that have been done with this paradigm. And that is the job. Soulless BS it is. Before it was perl for me. From time to time I try to write a script in perl but I have totally lost it.
>Is it possible to freelance with React?
Probably.
>Advice for someone just getting into the field?
The customer does not care if you are doing SPA, hybrid, server rendered. Nobody cares except for nerds and management and *bad* coders in teams that are stuck not learning new shit who are bragging about that kind of shit:
>look how this new tool $x absolutely solves this problem...
...which you would not have had if you had not used this other tool $a before.
You can create actual value that people pay for with simple shit and tech stacks that are 20 years old. Nobody gives a fuck (as long as the UI is ok)
>>106966212
Just because it is react that does not mean that you cannot do DRY. And having shit in small functions (call them custom hooks if you wish...) helps. Also just do not fucking use useEffect. In 99% of cases you do not need to and people do not seem to realize it. Sometimes that requires searching just a little bit further for the origin of the thought and a nice little refactor will help you get rid off that shit. And that will then lead to a better "react experience" because that to me is what it about (if anything): User click, UI go do stuff and not UI do stuff depending on other stuff that "effects" third party stuff.
Anonymous No.106966579 [Report] >>106966645
>>106966371
are you saying you moved from cgi.pm directly to react? no rails or similar inbetween?
Anonymous No.106966628 [Report] >>106967363
>>106936759
you could try going to https://www.npmjs.com/package/image-js?activeTab=code in the dist folder and download image-js.esm.js and place it next to your index.html and apparently you can then use it on your page like

[body]
<script type="module">
import { fetchURL } from 'image-js.esm.js';

let image = await fetchURL('https://example.com/image.jpg');
image = image.grey();
</script>
[/body]

you can also use those .min and .map files to make it smaller and/or nicer, but i didn't care enough to read https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
Anonymous No.106966645 [Report]
>>106966579
CGI was around for way longer than you'd think, so yeah I have never been into rails and only touched php on the most surface level imaginable. I did jQuery of course. HTML5 was actually exciting back then. We really believed everything was going to be better. I cannot even say where it all got so wrong, I mean even JS has become a _very_ respectable language. Just compare it to the clusterfuck that is python...
Anonymous No.106966666 [Report] >>106967393 >>106968128 >>106968968
>>106910741 (OP)
I like RoR
Anonymous No.106967363 [Report]
>>106966628
>you could try going to https://www.npmjs.com/package/image-js?activeTab=code in the dist folder and download image-js.esm.js and place it next to your index.html
you picked the non-minified version.
`npm install image-js` and `vite build` is almost easier at this point.
Anonymous No.106967393 [Report] >>106968128 >>106968968
>>106966666
Me too lol. It worked for me a decade ago, it works for me now.
Anonymous No.106967489 [Report]
>>106940982
>Build minimum viable products, try to get first buyers and if you don't have any move on to the next idea. Building a business or product that lots of people will use is like reverse russian roulette, you only have to win once.
In the age of GDPR, trademarks, retarded and one-sided laws (OpenAI, Meta etc may torrent and process every book ever, but you may not even scrape a simple website unless you are a search engine) etc the legal bar for a minimum viable product is insanely high.

In all honesty, you are wasting your time and are better off working for a big company with a steady paycheck and spend your free time on your family. I did contract work for successful startups myself, but those were mainly business people, the technical guys mostly got tagged along, but the actual product ownership came from others. And not surprising, I have never seen a successful startup that started with a single person without help.
Anonymous No.106968128 [Report] >>106968968
>>106966666
Based, also fucking checked

>>106967393
Rails is for the long game
Anonymous No.106968179 [Report]
>>106965928
use() is for consuming promises or context, it doesn't replace all hooks, that doesn't even make sense
Anonymous No.106968247 [Report] >>106968441 >>106971559
>be me
>ask the herd for the correct opinion
What do you guys think of self-hosted PaaS? I have been using ansible and docker compose, but the idea of using my own "one click it just works" solution sounds nice. Self hosting also means if I ever need too I can also drop down a level if I want. Having backups and a centralized log/events pane is another bonus. IDK I'm only seeing positives, and I don't even want something as elaborate like Coolify because Disco is just enough to save me manual setup I'd do anyways.

HN article about it: https://news.ycombinator.com/item?id=45661253
Anonymous No.106968441 [Report]
>>106968247
>Having backups and a centralized log/events pane is another bonus
disco doesn't have this
Anonymous No.106968968 [Report] >>106969069 >>106969329 >>106976790
>>106966666
>>106967393
>>106968128
I've never used Rails but I worked on 2 Django projects. How does Rails compare to Django?
Anonymous No.106969069 [Report]
>>106968968
Both feel like you're programming in COBOL compared to sveltekit
Anonymous No.106969154 [Report] >>106969189
>>106964949
>hates runes but uses react router/nextjs (which are the only ways react is a full-stack framework)

Kek
Anonymous No.106969181 [Report]
So, I'm coding my own PHP image board from scratch. Very original, I know.
However, I want people who will use it to also have the ability to modify the code while still being able to update it easily.
I figured a plugin-based approach would be a good idea, but I haven't figured out a good method to managing plugins, and I'm honestly not sure I even want to deal with plugins. Are there any obvious options I'm missing?
Anonymous No.106969189 [Report] >>106969329
>>106969154
Just use sveltekit

https://www.reddit.com/r/sveltejs/comments/1e4w2tm/people_who_switched_from_remixreact_to/?sort=top
Anonymous No.106969329 [Report] >>106975004
>>106968968
>>106969189
Svelteshit is not fullstack. you can use your worthless JS slop on the frontend and Django on the backend.
Anonymous No.106969364 [Report]
>>106936759
https://unpkg.com/
You're welcome.
Anonymous No.106969381 [Report] >>106969402 >>106971559 >>106972716
will flask get deprecated in the near future? what will replace it? sanic? fastapi?
Anonymous No.106969391 [Report] >>106971635
What's the deal with all these frameworks? What's wrong with HTML/CSS/JS?
Anonymous No.106969402 [Report] >>106971635
>>106969381
>flask
Meme garbage.
https://bottlepy.org/docs/dev/
You're welcome.
Anonymous No.106969439 [Report] >>106970845
I'm trying to make an extension that fixes some of the enshittification of youtube. The first feature I made is a button that when you click it it opens in a new tab all the playlists a video is in (by that channel) so you don't have to navigate back to their channel tab and search for what playlist it might be in. It's working well.

The second feature I'm trying to add is a way to open a tab with a playlist of all of a creators videos sorted by oldest, so you can watch from the beginning in chronological order. It's insane this isn't a feature on the website already.

Anyway I'm struggling a lot with how to do this, any advice?
Anonymous No.106970841 [Report] >>106971273
>>106965127
He's wealthy, racist, and obnoxious, and expects everybody to kiss his boots
Anonymous No.106970845 [Report] >>106971273
>>106969439
You would have to add a bunch of JS that runs on the client and interacts with all the code that youtube runs on the client but that's very hard for a complex website like youtube. So I would say that there's no point, youtube is lost. Best thing you can do is stop using it.
Anonymous No.106971273 [Report]
>>106970841 >>106970845
You could /probably/ just use the API to grab all of the videos, though I'm not positive.
>It's insane this isn't a feature on the website already
I bet you ten to one that there is actually a playlist still lurking that can be grabbed by the API that does exactly that. Youtube USED to have this feature, and I used it extensively on massive channels that featured niche topics like viruses(Danoct my beloved.)
Anonymous No.106971559 [Report] >>106971635
>>106968247
>coolify
Get serious son https://uncloud.run/

>>106969381
Nodejs is the future of web servers
Anonymous No.106971635 [Report] >>106972772
>>106969391
common vocabulary for the same thing, but webdevs are retarded so they can't agree on how to do things.
>>106969402
>use this hyper specific meme instead of the second most used python web framework
yeah sure
>>106971559
>js on the backend
why do you like pain
Anonymous No.106971829 [Report] >>106972910
>>106910741 (OP)
>All the hipsters in 2013 building rails projects that other people now have to maintain.
>Couple years later AngularJS orbital-nukes Rails, then Acks itself.
>Unemployed Redditers and youtubers adopt Le React
>annoying ML script kiddies make python popular for no apparent reason, bleeds over to django
>php blindly truckin', oblivious to everything else, laravel + vue is a trend in obscure wizard circles
Anonymous No.106972716 [Report]
>>106969381
FastAPI has already replaced it.
Anonymous No.106972761 [Report] >>106972796
>>106964669
this, PHP won
Anonymous No.106972772 [Report]
>>106971635
Bottle was first, tardo. Flask was always a meme by people who didn't know the truth.
Anonymous No.106972796 [Report] >>106972910
>>106964669
>>106972761
PHP is very fast but people Laravel is slow as fuck, even slower than Rails. Symfony is somewhat faster, but not by a huge margin. And that's exactly the list of all the modern PHP frameworks in use in 2k25.
Anonymous No.106972910 [Report] >>106972966 >>106973572
>>106971829
Rails, Laravel and Django are all good and reliable and get the work done. Angular, React and the rest of JS ecosystem on the other hand are brittle sloppy garbage that become maintenance hell after a few years. Meanwhile there are PHP and Django websites running for over a decade with little to no mainteinance and they just work.

>>106972796
Laravel is only slow because of its server's bootstraping. If you use Octane(which you should) it becomes significantly faster than Rails and Django.
Anonymous No.106972966 [Report]
>>106972910
>tool $x, $y and $z will just keep working while tool $a does not
The reason for that is that it is actually a people problem, not a tool problem. You can absolutely have working shit in the JS ecosystem after years. It's quite easy actually.
Anonymous No.106973572 [Report]
>>106972910
>Octane
This sounds dangerous and kinda niggerlicious to me. It looks like you're baiting memory leaks and db connection timeouts while complicating your architecture.
Anonymous No.106973587 [Report]
>>106939786
Besides manual verification via billing/PII, no there shouldn't. And unless they sign a contract you shouldn't be keeping that information anyways, so tough luck.
Anonymous No.106974347 [Report] >>106974693
for me it's rails with react inertia frontend
Anonymous No.106974543 [Report]
>>106912234
DOCTOR OCTOGONAPUS BLLEEEEUUURRRGHGHGHGH
Anonymous No.106974628 [Report]
qa, learned some web stuff, can navigate in the server world and thinking of setting up a practice env home
can pull stuff up on localhost but i have no idea how to set up something more professional
i have a little fujitsu shitbox that can run the stuff 24/7, and i assume if i just wanna reach the made sites on local network, its enough if i spin up a dns server and config that, but how do remote deployments work?
we had our own in house deployment system where the package was just selected and target servers marked, and with a press of a button it slowly but seamlessly rolled out the new sites there. what would be the home fuckery solution for that?
Anonymous No.106974675 [Report]
Many people are saying that Go won the backend web server war. Are they correct?
Anonymous No.106974693 [Report] >>106974792
>>106974347
>react inertia frontend
Use Vue or Alpinejs. React is niggerlicious.
Anonymous No.106974792 [Report] >>106974876 >>106975044
>>106974693
How is vue less niggerlicious than react
Anonymous No.106974876 [Report] >>106974970
>>106974792
Syntax is cleaner and better organized, you have clear separation between your JS(scripts) and html(templates), which makes Vue code a lot closer to traditional vanilla JS.
Anonymous No.106974970 [Report] >>106975206
>>106974876
For vue you have to learn a special snowflake syntax. React is just pure JS

>separation
meme
Anonymous No.106975004 [Report] >>106975238
>>106969329
>Svelteshit is not fullstack
Ah, so this is the IQ of the modern Django dev
Anonymous No.106975044 [Report]
>>106974792
They're similar. Moving forward to Sveltekit is the only correct answer.
Anonymous No.106975185 [Report]
>>106965928
Yeah the era of React is coming to an end. The best part about react is "just learn useState and useEffect," now there's 900 other APIs to go with it and you just know every incompetent dev will fuck it all up.
Anonymous No.106975206 [Report]
>>106974970
>React is just pure JS
>look at react
>it's literally a niggerlicious mix of JS an HTML like legacy PHP style
Anonymous No.106975238 [Report] >>106975644
>>106975004
You're a nigger. By "fullstack" I meant "batteries-included" such as ORM, authentication framework, testing framework, admin panel, etc. Svelteshit does not provide everything you need out of the box to build a web app.

Reiterating: You're a nigger.
Anonymous No.106975644 [Report]
>>106975238
>Svelteshit does not provide everything you need out of the box to build a web app.
Doesn't it?

>ORM
Drizzle?

>auth framework
Takes like 3 seconds to write your own

>testing framework
I think it offers at least Playwright, maybe more, don't remember

It literally prompts you which of these you want in your app when you spin up a new app.
Anonymous No.106975743 [Report] >>106975756 >>106978959 >>106980270 >>106980405 >>106981811 >>106982047
>spend months making ruby app
>time to deploy!
>need database
>need email
>need file storage
>need to configure websockets
>need deploy automation
>need error monitoring
>can either try to configure the fuck out of a VPS or use third party services to manage all your shit
>at the mercy of like seven different services

I just want to focus on writing code and building systems. There was a point in time where I deployed my Rails app by uploading it to Dreamhost via FTP
Anonymous No.106975756 [Report] >>106976154
>>106975743
Tell us how you managed database, email, file storage, websockets, deploy automation and error monitoring via FTP, anon
Anonymous No.106976154 [Report]
>>106975756
Don't remember, I'm going to extrapolate that Dreamhost provided all of those things as part of the shared hosting plan. Except for websockets, which I didn't use. I would just swap out the config values for the database and smtp, upload my app code, and it would work. The deploys weren't automated at all.
Anonymous No.106976790 [Report]
>>106968968
>How does Rails compare to Django?
Django is the Rails clone for Python
Rails is somewhat more straightforward than Django, as an example no sub-apps
Rails/Ruby also has had the bundler package manager for a long time, whereas in Python you have like a dozen different choices
But Ruby doesn't have some Python focused libraries like numpy, pandas/arrow, tensorflow, and the other popular ML/AI libs.
Anonymous No.106978959 [Report]
>>106975743
how is that different from literally any other framework?
either you self host or you pay for hosting? or are you insisting that you store everything on BLOCKCHAIN BLOCKCHAIN BLOCKCHAIN?
Anonymous No.106980270 [Report]
>>106975743
useless
Anonymous No.106980405 [Report]
>>106975743
>I just want to focus on writing code and building systems.
then use Supabase or Firebase (don't use Firebase) + some JS frontend
Anonymous No.106981811 [Report] >>106984596
>>106975743
Stop using Rails

https://www.youtube.com/watch?v=qIaQxJ55yps
Anonymous No.106982047 [Report]
>>106975743
>building systems.
that is literally what you are doing. The difference of "code" and "system" is all the other bullshit.
Anonymous No.106982407 [Report]
I just noticed that http://example.com/ has been updated!!!
Holy shit guys!
Anonymous No.106982782 [Report] >>106984600
Holy shit, wtf happened with https://jsonviewer.stack.hu/
This site was so simple and useful.

I guess it's time to create a FOSS clone.
Anonymous No.106984183 [Report] >>106984370
I keep changing stacks looking for something better but I can't get anything done

I'm going to buy some html templates or something to get me going
blessbrah No.106984267 [Report] >>106984370 >>106985823 >>106986510
does this look retarded?
Anonymous No.106984370 [Report]
>>106984267
yes. If you want a tree, just make it a damn tree so people can clearly see what goes where.
>>106984183
Fix your shit. Tech is not the problem. The lack of abstraction, code organization and discipline is.
Anonymous No.106984596 [Report]
>>106981811
no, i don't think i will
Anonymous No.106984600 [Report] >>106986047
>>106982782
Support him instead.
Anonymous No.106985823 [Report] >>106985840
>>106984267
better than not having those things

i hate that style of displaying threads, becomes impossible to keep track of what the post is responding to. so having links to the parent helps.
Anonymous No.106985840 [Report] >>106986457
>>106985823
wait, that's not what it does when i look again. it collapses the parents?
Anonymous No.106985995 [Report] >>106986486
>>106947627
>I don't think it's relevant whether I'm Jewish or not
Kek, everytime
Anonymous No.106986047 [Report]
>>106984600
I support projects I like by fixing issues and making pull requests.
Anonymous No.106986457 [Report] >>106986599
>>106985840
yup. I thought including the option to collapse parents would make it easier to focus on specific reply chains. Also, to reduce cluttering on mobile views
Anonymous No.106986486 [Report]
>>106985995
this can't be real
Anonymous No.106986503 [Report]
>>106910838
zio-http arrived.
Anonymous No.106986510 [Report]
>>106984267
As long as its not the retarded shit reddit uses
I literally just want to see the parent of a comment chain
Nope, back to the page with 1 billion comments
Anonymous No.106986599 [Report]
>>106986457
maybe an icon change would make it feel better?

i don't like that kind of reddit-style threads though so maybe i'm not the right one to say anything. at least i think it's like that on reddit? i know it's also used somewhere else but can't remember where.
Anonymous No.106986639 [Report] >>106986660 >>106986799
Has it become redpilled or is it just a yes-man?
Anonymous No.106986660 [Report] >>106986674
>>106986639
Anonymous No.106986674 [Report]
>>106986660
Anonymous No.106986751 [Report]
>>106910838
rails = snails
Anonymous No.106986799 [Report]
>>106986639
>post statement (opinion) that needs no answer
Use your single digit iq to make a wild guess.
Anonymous No.106986944 [Report] >>106987440 >>106987701
I've seen Go shilled for back-ends in /wdg/. So my question is, if you're using Go for your back-end, should you use an ORM like GORM, or just rawdog the SQL?

I don't mind learning more SQL to write raw queries but it is a bit more time consuming than using an ORM. And an ORM gives you type safety. There's SQLC for Go which looks interesting but it still looks more time consuming than an ORM.
Anonymous No.106987440 [Report]
>>106986944
orm exists for a reason, just don't try to reinvent the wheel and use an ORM.
>b-but I wanna prove myself I'm smart
nobody gives a shit
Anonymous No.106987701 [Report] >>106988237
>>106986944
The problem with ORMs is that they abstract away too much. I remember using sqlalchemy and really struggling when trying to do more complex stuff and having to do a lot of debugging with google (this was pre-llm times). It's not really clear what's going on when you're using an ORM. Not great when it comes to indexes or when you're doing more complex queries. It's also not very evergreen knowledge. Really learning SQL well is evergreen knowledge on the other hand.

>There's SQLC for Go which looks interesting but it still looks more time consuming than an ORM.
I use SQLC with Go and it works really well. You just make a file with all the queries and a file with the schema and run "sqlc generate" in the terminal and then you have type-safe code. It's really simple.
Anonymous No.106988215 [Report]
How do I combine Go with Vue? So far I have only done SSR with html templates and I only know vanilla JS that I served using Go's embed package. Where do I even begin? I want to learn SPA/Vue, but there seems to be so many tools involved like node.js, npm, etc. How do I keep it simple in development and when I want to deploy?

Should I make a separate backend and frontend repo or keep it all under web/?
Anonymous No.106988237 [Report] >>106988283
>>106987701
Go has Bun orm which is like SQLC but handles relations and filters easily. It's not even fair to call an orm, it's like a more powerful and flexible sqlc but at a price of type safety (which sqlc doesn't guarantee anyways)
Anonymous No.106988283 [Report] >>106988332
>>106988237
I have never used it. Never even heard of it. Honestly I just don't want to learn another ORM. I already know SQL and SQLC is basically SQL except it saves some time.
Anonymous No.106988332 [Report]
>>106988283
Bun is literally SQL but a smarter parser than sqlc. It can map joins easily, which are a fucking bitch to do manually. If your app is a CRUD then sqlc works great