[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


"Why do you lazy people refuse to make a new thread" 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

>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: >>106366201
>>
i am so sick of computers
>>
>>106399377
we chose to live through a computer
>>
>>106399377
What kind of job would you rather be doing?
>>
>>106399782
i work in a restaurant. i would love to work with computers but i cant get a job with them because i work in a restaurant.
>>
>>106399853
>i would love to work with computers
>i am so sick of computers
???
>>
For a MPA web app: Should you have one category where you have all the "HTML fragments", i.e. HTML elements that are returned with some AJAX requests but that are not full pages.

So something like this:

/fragment/hpv/london/2025/jan/cases?id=...

/fragment/hospital/london/current

etc.

So these would all return HTML fragments. This would make sense right?
>>
File: file.webm (588 KB, 640x640)
588 KB
588 KB WEBM
>>106399861
i spend all of my free time learning about them and writing code, i went to school for CS, ive spent so much fucking money on hardware. and simultaneously every government and every company is engineering a world in which your computer isnt yours, and you cant use the internet without tying your legal identity to it, and youre not allowed to do anything cool or fun, and there are no fucking jobs, and everything ever is supposed to be horrible and evil and bad. im so sick of it. i am so sick of it all. computers are cool, and everyone everywhere is ruining them because they want to make everyone miserable and poor.
>>
>>106399912
If you hate government/company control over computers, use FOSS software. Linux, FreeBSD, whatever you want.
>>
is convex a meme or is it good?
>>
File: 1726701873112753.png (17 KB, 404x214)
17 KB
17 KB PNG
Do you need any of those?
>>
>>106400788
I test my sites in a browser profile with no extensions. I don't want extensions messing with my work of art.
>>
>>106400788
Is that just another name for F12?
>>
>>106401050
https://addons.mozilla.org/en-US/firefox/collections/4757633/webdeveloper/
>>
>>106401079
Fontanello sounds pretty handy
>>
>>106400740
Looks like a meme to me
>>
what db do you use guys? ive been using mongo & atlas and its simple enough for the things i am currently building but my friend said i need to use postges if i want to be attractive to employers. is he memeing me?
>>
>>106402352
Doesn't really need to be postgres specifically (MSSQL is just as if not more popular), but basically everyone is using SQL in some capacity.
>>
>>106402352
>is he memeing me?
probably not, it is better if you're familiar with SQL, not necessarily postgres, mariadb, or Mysql for example. But if you wanna bulletproof yourself then check which DBs are job offers asking for in your area
mongo was super popular some time ago but apparently it wore off, nosql is good as well, but you have to use it properly or it stops being good
>>
CSS is criminal. I'd rather write a graphics library from scratch. Getting things to work as expected is so fraught with niche rule conflicts and illogical behavior (lol margin collapsing) that you can only know by reading the docs front-to-back. programming a pbr renderer is easier.

I can inherit legacy code in python, javascript, C, whatever and figure out how it behaves, but CSS feels like I'd be better off wiping the styling and starting from scratch so I know WTF is going on. But even then, I run into 'why tf isn't the rule I added working as expected" over and over because inconsistent behavior was apparently a design ethos.
>>
it's been 1 week without going out for the weekend because I'm sick, and I'm almost at suicidal levels, this irl being a grown up + mental health shit is tough, and it's only going to get worse from here
>>
Firefox dev tools >>>>>>>>>> Chrome dev tools
>>
>>106403587
ff sent me a poll, it was for devs that use ff, guess they noticed that I F12'd a trillion times. the change I suggested was that they add autocomplete to the styles tab, and they did
>>
>>106403228
i personally love css. you just have to read the spec to understand why it works the way it works. i come from native app dev and css is unironically the superior form of styling components in my opinion. you do need to enforce strong rules and i don't just mean linting and formatting, whoever is in charge of documenting the css and generating the backbone of your library should be an expert on it and understand how the box model, icb and how it relates to viewport units, inheriting and specificity works.
>>
Just went down a rabbit hole trying to implement something which is more difficult than I thought it would be. Fuck my life.
>>
>>106403685
If I'm popping components in/out of a container element based on state (e.g. forward/back buttons) and I want the size of my containing element to resize smoothly, how tf do I get that to work? I've got easing and transitions set, but it just 'pops' up or down to size in an instant.

This seems like a simple, solved problem, but I can't find any good info and chatgpt can't figure it out.
>>
>>106399912
>don't have a server, be a server

based take
>>
>>106405035
Height?
CSS is autistic about transition to unspecified heights. It can be done though.
https://theosoti.com/blog/height-transition/
Has a few hacky ways worth trying, depends on your layout.
We'll get calc-size(auto) cross-browser eventually which solves this problem, if you're only targeting recent chromium you can use it now
>>
>>106405035
Oh, you could also just say fuck it and grab the height of the incoming component and specify it explicitly on the container with JS, should work.
>>
>>106402352
postgres. every time i try to use mysql i end up wishing i had features like returning and on conflict do update.
just completed a migration from turso/libsql/sqlite to planetscale postgres at work
>>
>>106405165
I've got a box with some content and a button. Press the button and the state changes and new content of a different size loads. The box should change size smoothly to accommodate new content, hight and width.

But it just 'pops' up to size.
>>
>>106405165
Yeah, this is basically related to my problem. And I see it just happens to be an open issue I guess. "Sorry, we don't have that simple feature yet." Awful.

>targeting recent chromium

Nope, gotta be safari & other majors. Corporate site for public, think mcdinalds.
>>
>>106405680
>>106405744
In that context you're probably best off just measuring and setting them explicitly with JS. No worries about hacky stuff or compatibility.
https://jsfiddle.net/j2yu3g08/3/
>>
What are you guys going to do, now that our profession is dead?
>>
I'm launching a new site. It has a lot of good content but zero backlinks because it's a new site. However the niche is not very competitive. I will work on adding high quality backlinks but it will take at least half a year.

What can I expect from an SEO perspective in the first couple of months?
>>
>>106405035
you could acutally give an exit height animation to the child components, the container will refresh its height on every frame as the children get collapsed out of view. or you can create an event after those child components are out of the view/dom and animate the before and after height of the container. if you're working with modern css and browsers you can actually animate height auto now
>>
>>106405744
while you can't transition height unless its from fixed size to fixed sized, you can fake it by transitioning grid using min-content
>>
>>106402352
I use Postgres on AWS RDS. I don't know what the difference between a database engine, a database instance, and the database itself is.

I just use PostgreSQL on AWS RDS. That's all I know.
>>
>>106405422
Not him and I also use Postgres. But I tried MySQL/MariaDB a while ago because if I remember right, if you try to insert invalid data, it tells you which column is invalid. I don't think you can get Postgres to tell you which column is invalid. So I thought "maybe I can get rid of back-end data validation and just have MariaDB validate the data". If MariaDB tells you which column is invalid then you can say to the user "this field must be such and such".

When I write back-end validation code I'm sometimes duplicating my validation logic, if I end up adding constraints at the database level. Why not just rely only on the database constraints. Remove the duplication.

Maybe I should try this idea with MariaDB again.
>>
>>106399363
goddam i fucking hate working with docker
>>
Since Deno and Oracle are in a lawsuit to release Javascript as a trademarked name, we should petition to change the name of Javascript to JoblessScript since most people who use Javascript can't find work.
>>
>>106400916
I don't test/profile my websites. If it feels fast, it is good enough to publish.
>>
File: languages.png (48 KB, 810x528)
48 KB
48 KB PNG
>>106409784
Why? Works on my machine

>>106409826
JS is the most commonly used programming language by professional software devs

Pic related

https://survey.stackoverflow.co/2025/technology#1-programming-scripting-and-markup-languages
>>
>>106409747
why not just use a orm?
>>
>>106410403
Sometimes I do, sometimes I don't. But either way, I've been thinking: why program validation logic if you can just enforce constraints at the database level? This will make it impossible to enter invalid data into the database. Whereas if the logic is in your backend, rather than your database, then someone could connect directly to the database and insert invalid data (nobody should be doing this of course, but devs make mistakes sometimes).
>>
>>106410446
an orm might let you setup validation logic in code. what if you need to have cross-table validation? that would be cumbersome in db level validation
>>
>>106410585
>what if you need to have cross-table validation?
Like foreign key constraints? Anyway I just think it's weird how we're supposed to do validation at the application level which technically means that invalid data could be directly inserted into the database. Then your application could shit itself.
>>
why are images bigger in base64
why can't you deliver any file in base64
aren't files zeros and ones in the end
>>
>>106399912
>you cant use the internet without tying your legal identity to it,
you can but not from home.
>>
>>106410999
nta, let's talk about the tor paradox, tor allowing chans would givw you true anonimity, but at the cost of CP, illegal shit, gore and extremely edgy shit you probably wouldn't want to witness
no matter what, shit sucks
>>
Does Kotlin have some advantage over Go when it comes to web dev?
>>
>>106410403
>use a orm
It's too complicated and you're not really sure about what's happening when you're using an ORM. I prefer to just raw dogg SQL or use SQLC.
>>
>>106411464
This. Fucking hate ORMs. Not that I necessarily like writing SQL, but it's better than having to learn some shit ORM you might never use again after you're done with a project/company.
>>
>>106402352
MongoDB is fine and the experience is much better than Postgres, MySQL and any of these shits, but the world has more or less standardized on SQL, a language that was originally invented so normies could query databases without knowing how to code, so we're stuck with it.
>>
>>106411464
>>106411496
what are these shit orms? the grown up programming languages usually have bretty good ones
>>
>>106410972
I think that's because a regular file uses any of the characters from 0-FF to represent the data, but a base64 has only the url safe subset to use. So it takes a little more space to represent the information. Each character in base64 only transmits 6 bits instead of 8
>>
Supposed to build a web app for college and track the project using github. The web app has to be of moderate complexity it can't be something simple anymore. Don't even know how tf to start this shit or what to even create. I have to come up with an idea for the web app. Hate this pile of shit so much, why can't they just tell me what to do and let me follow the instruction. I have to come up with something myself and somehow hope its right. Fucking hate college so much, just give me a fucking job and let me learn there.
>>
>>106412064
Naruhodo....
>>
I wanna see canvas and opengl shit, pls
>>
>>106412094
What sort of instructions have they given you? Can it be in any language or a specific language?
>>
File: bacedi.png (37 KB, 550x388)
37 KB
37 KB PNG
Can someone please write the php code for a page that just displays the following database and does nothing else?
>>
Anyone else use a "/fragments/..." category where you have all the HTML fragments? So...

>/fragments/category-a/......
>>/fragments/category-a/sub-category-1/......
etc.
and all the different subcategories etc. are mirrored to the actual sitemap of the web app. So "/fragments/category-a/sub-category-1/......" serves HTML fragments that are used by pages in "/category-a/sub-category-1/......".

and then of course we also have....
>/fragments/category-b/......
>/fragments/category-c/......
etc.

I find it to be very neat since its very clear what is an HTML fragment and what isn't an HTML fragments.

Anyone else does this?

>>106412094
Make a todo app where different users can collab on todos. So a social media CRUD todo app. That should be "moderate complexity".
>>
>>106413724
>what's an ai?

<?php
// db: bacedi, table: foguha (columns: jekilo, munape, qirosu)

$dsn = 'mysql:host=127.0.0.1;dbname=bacedi;charset=utf8mb4';
$user = 'YOUR_DB_USER';
$pass = 'YOUR_DB_PASS';

try {
$pdo = new PDO($dsn, $user, $pass, [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
]);
$rows = $pdo->query('SELECT jekilo, munape, qirosu FROM foguha')->fetchAll();
} catch (Throwable $e) {
http_response_code(500);
echo 'Database error.';
exit;
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>bacedi.foguha</title>
<style>
body{font-family:system-ui,Arial,sans-serif;margin:24px}
table{border-collapse:collapse}
th,td{border:1px solid #333;padding:8px 12px;text-align:left}
</style>
</head>
<body>
<h2>database "bacedi" · table "foguha"</h2>
<table>
<thead><tr><th>jekilo</th><th>munape</th><th>qirosu</th></tr></thead>
<tbody>
<?php foreach ($rows as $r): ?>
<tr>
<td><?= htmlspecialchars($r['jekilo']) ?></td>
<td><?= htmlspecialchars($r['munape']) ?></td>
<td><?= htmlspecialchars($r['qirosu']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</body>
</html>
>>
>>106414224
thanks dud
>>
>>106413732
I'm intrigued by that structure. I've seen older applications where the API outputs straight HTML and they insert it into the page. But I haven't designed one myself.
Usually, I serve JSON and build the HTML client side.
>>
>>106414388
that's how PHP used to operate, SSR by default, you can still make it into an api, natively can do both with ease, and without external libs as far as I know
>>
>>106414431
It sounds nice I could keep a template file, which can get used SSR on the page and also used to generate API output, there's some nice boilerplate reduction and I don't have to have as much JS.
I'm gonna go tinker with this
>>
File: 2025-08-28_21-27-26.webm (3.22 MB, 460x638)
3.22 MB
3.22 MB WEBM
>>106413665
I had to write a PNG decoder because web Images don't support 16bit grayscale for heightmap usage.
fuckin' Huffman codes, zlib compression, deflate algorithms is a pain to read the specs for.
...and then I discovered that deflate, gzip, and deflare-raw are now a native function since 2023: https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream
>>
>>106415353
damn, that's some serious CSI shit
>>
>>106411174
>but at the cost of CP, illegal shit, gore and extremely edgy shit you probably wouldn't want to witness
In practice that stuff isn't significantly more predominant on Tor boards outside of places which allow it. The much bigger problem is SPAM. Users being truly anonymous makes it hard to stop dedicated spammers.
>>
File: fucked up.png (570 KB, 1088x718)
570 KB
570 KB PNG
>>106415440
Did you know PNG uses a different byte filtering function per scanline? I did not. It was a mere happy accident that I discovered it because I had shifted every pixel by 50% and an image suddenly showed up out of the static.
>>
>>106415661
what terrifies me is people that could kill you or ruin your life, getting your dox in a weird way, like imagine, for example you say something that offends a certain person or group of people, and that they actually get you killed or fucked up somehow, that's what terrifies me of torchans
>>
>>106415717
I wish I knew what you're talking about pham, all I know is that gif is cool because of its limited amount of colors, that creates cool looking compressions some times
>>
File: bit depth.png (948 KB, 1648x712)
948 KB
948 KB PNG
>>106415779
8 bit | 16 bit
>>
>>106415854
16 bits has more levels for the displacement?
>>
>>106415885
Yes.
But the browser has to flatten that extra detail from a range of 0-65535 to 0-255 to display it on your screen.
I'm doing lighting in a webgl shader that eventually also flattens it to 0-255, but I can get more correct terrain angles with the extra detail
>>
>>106415353
Very cool project
>>
>>106415854
Feck. Just remembered that I had to turn off mipmaps to render it.
Gonna have to split the 16-bit image into two 8-bit images to get rid of the pixelation unless I can find an internalformat-format-type combination webgl will accept.
>>
>NO FRAMEWORKS: Implement a Go web server using Standard Library
Good video if you're into Go.
https://www.youtube.com/watch?v=tzqVAuqMarQ
>>
>14kB on first request
>inline CSS
>fixi.js
what else am I missing, what do I use to create a reactive frontend? There's https://github.com/jon49/html-traits but it's not finished yet (or, very bare-bones)
>>
File: 1662623176859722.jpg (122 KB, 495x745)
122 KB
122 KB JPG
Every time I have something to post in these threads the thread is dead and now that i find a live one I can't recall what did I want to post about.
>>
File: corruption.png (301 KB, 904x579)
301 KB
301 KB PNG
I think got the byte filtering reversal working, but now I'm getting still getting weird results on the other test images.
Suspecting that the browser deflate decompressor isn't exactly the same as PNG uses.
>>
>>106391809
That was a pretty good line of thought. I've been screwing around and landed on reducing it to 32 indexed colours, taking 2000 random pixel samples, then the most frequent of them is the "dominant" colour. Which I mix with the mean colour in a 1:2 ratio. Surprisingly this isn't all that slow (3-4x faster than asking sharp to calculate the dominant)
After than and some further work I reduced scanning time by about 7x.
>>
>>106415771
This is the sort of fantasy redditors used to have about 4chan. There's a greater chance of that happening on the clearnet, where there are more potential murderers and they can find out more about you. On Facebook this sort of thing has actually happened.
>>
>>106418136
>what do I use to create a reactive frontend?
You can use Datastar if you want reactivity. It's similar to HTMX but with reactivity. It's also lightweight - about 11kB.
https://github.com/starfederation/datastar
>>
>>106416580
thanks gor posting it, it's refreshing to see some graphics in here
>>
>>106419502
you might use .gif color compression in ure favor, it has limited amount of colors by default
>>
>>106419557
you haven't heard the stories about le dip wip, I want nowhere close to ir
>>
Let's say I rent a VPS to run some projects. What distro should I use for the VPS? For me it would either be Debian or Ubuntu because I'm familiar with them. Maybe I should just use Debian, it should be good enough.
>>
>>106420581
those two were the top most used with ubuntu taking the lead when I looked it up a few years ago
>>
I just hope I test negative for covid, I'm very depressive since my social.life on the weekends is 0
>>
>>106420581
I always go with Ubuntu LTS because it's the 'default' and I'm used to it but it doesn't really matter that much.
>>
>>106420609
>>106420709
I see. I might just go with Debian because Ubuntu keeps some security updates behind their Pro subscription and I can't be bothered with that (you get it free on 5 computers but I don't want to use up one of those slots unnecessarily)
>>
>>106421279
>Ubuntu keeps some security updates behind their Pro subscription
I didn't know about that. Do you have a source? I'll stop using Ubuntu if that's the case.
>>
wait, should CSS be documented? i'd assume this might be necessary for larger projects and not the bullshit projects im working on at the moment, but maybe i should start
>>
File: terry_davis.png (120 KB, 526x388)
120 KB
120 KB PNG
>>106420581
Arch user here. I used to bootstrap my servers with Arch for the heck of it, but it's really a double edged sword, as the system is rolling release and breaks if not updated often.

For a server, I recommend Debian, as it's going to be stable for long periods of time and it's also more light weight (I think of Ubuntu as obese Debian); almost everything works just the same as Ubuntu, obviously (in the practical sense).
>>
should I learn go or java with spring?
>>
>>106421754
Learn Java, but don't learn Spring. Learn Quarkus instead.
>>
>>106421754
Whichever is more likely to give you a job (framework included). You can learn anything you desire later.
>>
>>106421429
Search engine might help you with that. Pro sub is free for non commercial use anyway.
>>
>>106421429
I think it is a good idea to go for the lts if it's an option
>>
>>106421429
Well to put it another way, Ubuntu never used to give full security coverage for the "universe" repo, because there's so much stuff in it. They just committed to security updates for the "main" repo I think. Then they came out with Ubuntu Pro which does have full security coverage for "universe" apparently, and you can have it for free on 5 computers, or else you have to pay for it

So you could just add Pro for free to Ubuntu, or just don't install anything from the universe repo.
>>
that jQuery mood, that one guy will seethe though
https://www.youtube.com/watch?v=R4GLAKEjU4w&start_radio=1
>>
File: Symptoms-vomiting.jpg (124 KB, 960x1242)
124 KB
124 KB JPG
>>106422882
>jQuery
>>
>>106420052
What if I don't want to use SSE?
>>
>>106423498
silence, nu-fag, js designed the good parts of js, without jQuery there's no new js
>>
>>106424711
the jQuery dementia kicked in
>>
Finally, a decent front end framework is being created https://github.com/trueadm/ripple
>>
>>106425018
Don't make me post the XKCD comic about competing standards
>>
>>106425018
I don't believe it, statistically speaking
>>
>>106425157
Frameworks aren't standards, retard
>>106425195
I'm also having a hard time believing. I spearheaded the Vue and then Svelte memes and they both became shit.
>>
>>106418136
I also want to know
>>
File: 1746076784639813.png (54 KB, 724x448)
54 KB
54 KB PNG
letting women and trannies work on this shit was one of the greatest mistakes of mankind
>>
>>106425749
Make the web great again
Less white space
strong contrasts
no scrolling
>>
File: mdn.png (128 KB, 1443x550)
128 KB
128 KB PNG
...and
font-size: 16px
? Fucking ridiculous in a desktop environment
>>
>>106426026
Yeah, I use 150% zoom on almost every website (that isn't a blog) I visit because I hate having to squint to read.
>>
>>106425833
Got any guides for that?
>>
>>106426212
Find a physical newspaper
>>
>>106425833
its been so long not many even remember how much info could fit on a single page... back when the resolution was like 800x600 instead of the crazy high ones today
>>
>>106414471
if you go down that route and need some interactivity, one of the recent hypes was htmx / fixie
>>
>>106423498
i'm using jquery to extract confluence tables as csv and you can't stop me
>>
File: 1603226440459.png (184 KB, 481x481)
184 KB
184 KB PNG
What else is there besides Tailwind and Bootstrap?
>>
them dress up in a jacket and them dress up in a tie
>>
>>106426244
>back when the resolution was like 800x600
I rember, jQuery was bleeding edge
>>
>>106426309
chances are you don't need it, but truth be told, many old problems were solved
>>
>>106426436
bulma, skeleton css, material, and I bet a new meem or two
>>
do you guys like my website?
>>
>>106427435
Render it to a webgl texture and add some fancy shader animation
>>
>>106427435
skipped html altogether and saved plenty of bytes, looking good
>>
>>106427462
we need to have gfx tuesdays or something of the sort
>>
>>106419502
Decided to see what Go is all about and rewrote the scanning script with it, added some concurrency, and now it handles 20gb of manga in 5 seconds instead of 2 minutes. My code is probably shit too. I fucking kneel go chads.
>>
>>106427435
better than all the other sites anons in this general made combined
>>
>>106425018
So someone finally copied jetpack compose which is good
But i'm not using anything with php aaa syntax
Thank you for your attention to this matter
>>
very agressive mp5 sky walk shake coffee oneahot
>>
So how do you know what technologies to use when building a full stack application before getting started as a beginniner-intermediate? I built an app this month and as I got deeper into it, I realized my architecture was not good and got myself into a corner where I can now not easily make it into the vision I had. I don't know what is fucking available and if what I chose sucks, what else is good but also cheap/free, etc.
>>
Thoughts on using result pattern instead of exceptions?
>>
>>106429622
You just have to learn from experience and copy what others do for similar applications. Systems design is the endgame for most developers
>>
>>106429658
More clear, less nesting, and typesafe imo.

JS/TS doesn't really have any features to allow you to specify what functions throw, so you have very limited IDE feedback to warn you to handle thrown errors
>>
>>106429622
If it's something I'm not sure how to approach I go look at FOSS projects that have some similarities and see how they did it, usually gets the gears moving.
Problems like what you describe are just part of the learning curve, salvage what you can and start fresh. Never takes as long the second time round
>>
>>106429622
Sounds like you're getting stronger.
>>
ReadableStreamBYOBReader.read(view, options)

>min
>
> The minimum number of elements to read before the promise will fulfill while the stream is active. If not given, the promise will resolve with at least one element, up to the maximum size of the view. This number must not be bigger than the view that is being read into.

Firefox win
>>
File: 1671288534279470.jpg (25 KB, 268x458)
25 KB
25 KB JPG
how do themes on websites work?
Like here on 4chan, when I go to the lower right and change the style or in twitter when i change the color of the accent is it a script or is there something in pure css and html doing it?
>>
>>106430083
primarily CSS variables

all you need to do is switch a class name really


.lightmode {
--bg-background: #fff;
}
.darkmode {
--bg-background: #000;
}


.comment {
background: var(--bg-background);
}


<div class="lightmode">
...
<div class="comment">
comment here with a themed bg
</div>
</div>


and basically just switch the lightmode class to darkmode and you have yourself a themed website.
>>
File: 2025-08-30 09-09-11.webm (3.76 MB, 1046x708)
3.76 MB
3.76 MB WEBM
>>106430083
Let's find out
>>
>>106430154
based
>>
>>106425018
>changing the way variables work just so your syntax looks prettier

niggerlicious
>>
>>106425299
It's painful how stupid you are
>>
>>106429658
i use effect for error accumulation and it's nice
https://effect.website/
>>
File: 1425416752222.jpg.png (100 KB, 452x330)
100 KB
100 KB PNG
>>106430120
>>106430154
Thank you, didn't expect to get such clear answers.
Also twitter seems to use a similar script for it's themes.
>>
Lads give me some quick advice: should I apply for PHP jobs? Mainly I've been learning JS/TS but I'm seeing a few PHP jobs. I have done some PHP in the past but I'd have to familiarise myself with it again.
>>
Page 9, but web dev shall continue and live on
>>
>>106432032
I think it'd be pretty comfy personally. If you're not bad at web dev in general PHP won't take you long to pick up
>>
>>106433304
Yeah I should probably apply. I don't mind PHP I guess.
>>
>>106427435
based and redpilled
>>
>>106430078
sounds like a nice function i would totally avoid using in any serious project
>>
>>106430168
You mean the billionth JS framework is just a meme? Say it ain't so



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.