[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 / qa] [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]


File: microframeworks.png (24 KB, 1024x514)
24 KB
24 KB PNG
Java/Kotlin framework 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 (go to the "See also" section for other Mozilla approved tutorials, like The Odin Project)
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://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex and grid in CSS

>Resources for backend languages
https://www.phptutorial.net - A PHP tutorial
https://dev.java/learn/ - A Java tutorial
https://rentry.org/htbby - Links for Python and Go

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

>Staying up to date
https://cooperpress.com/publications/ - Several weekly newsletters for different subjects you can subscribe to

>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

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: >>100069664
>>
>cgi/perl/bsd
>>
>Property 'value' does not exist on type 'PromiseSettledResult<MyType>'.
I already filtered the promise results, why is the value property still not found?
const id = some-id;

Promise.allSettled([array of fetch responses])
.then(responses => {
const parsedRequests = responses.filter(res => res.status === "fulfilled");
return [ id, parsedRequests.map(res => res.value) ]
})
>>
For me, it's Spark or Javalin.
>>
>>100130946
You're not allowed to ask questions because that is enslavement of others and that's a federal crime and international human rights violation.
>>
>>100130946
the first google search result:
https://stackoverflow.com/questions/63783735/type-error-on-response-of-promise-allsettled
>>
File: glMatrix.png (88 KB, 822x664)
88 KB
88 KB PNG
Jesus fucking Christ how retarded can you be to fail to import this
>>
Who pushed the tailwind meme?
>>
>>100131013
Imagine crying this much because you demand that people help you do every little thing for free
>>
>>100131588
I didn't do that anywhere and I'm amused you got triggered again, retard
>>
>>100131642
You're the biggest retard that ever posted in this thread. Enjoy being so fucking stupid that you have to ask everyone else how to do things.
>>
>>100131123
Me unironically
>>
>>100131712
Yeah, I didn't ask web dev questions before and I didn't ask in this thread either. I can go abusing you as long as I want lol
>>
>>100130829
What's the opinion on various orms for kotlin? I reckon that hibernate sucks, but what about ktorm, exposed, jooq, sqldelight?
>>
>>100131763
I don't see how you think it's abusing anybody to prove to the whole thread how stupid you are. The only person you're abusing is yourself.
>>
Learning javascript to make a browser rpg where you navigate with button only, what is the way to go ? Should I go with canvas ? I read that AJAX/JSON is what I should use to have dynamic page and not open new html page eveytime. It's hard but I don't know where to start because every game tutoriel is about trad rpg.
>>
>>100130829
imagine picking JVM tools for the OP and choosing the worst ones...
kill yourself OP
>>
File: 1438116754045.jpg (24 KB, 512x384)
24 KB
24 KB JPG
>>100131839
As soon as you explain
1) how it's not stupid to have such a victimhood complex you think you're being enslaved by someone asking a web dev question OR
2) how it's not stupid to defend a person thinking like this, for hours on end

with such manner that literally everyone is convinced, and without arguing as if I'm someone I'm not, then I'll say it was me that I abused. Otherwise I suggest you get new prescription meds and go back to doing whatever retarded shit you were doing before.
>>
>>100131869
>browser rpg
>AJAX
Read it 2 more times.
>>
File: 1697114173283492.jpg (44 KB, 802x840)
44 KB
44 KB JPG
>>100131982
He's still demanding stuff explained to him.
>>
>>100132077
explain to me I'm a noob that try to navigate it's way in this jungle, the type og game I like is Ogame and this kind of shit
>>
>>100132099
Thanks for playing, you lose
>>
>>100132103
>Ogame
You're not making an MMO as a noob.
>>
>>100132077
https://youtu.be/suhSXYQwFNg
>>
>>100132113
I don't say this, I say that's the kind of interface I like, juste picture and mouse click, no movement. I want to make something very simple. Step by step, like having hp, doing 2 quests by beating 2 mobs.
>>
>>100131869
Just start with it, if you don't know a specific thing, Google it, keep going until you know basically everything you need to know for what you want to do, then start over. The first project you make is going to be an absolute clusterfuck, but that's fine, because you'll learn how to do things. Try to use as few dependencies as possible and do most things yourself (unless you want to go 3d, which I don't recommend at your level). You might get away with only using images/divs with backgrounds instead of canvas but do what sounds best to you.
>>
>>100132160
You won't need anything more than a static server and standard html elements. Forget canvas and ajax.
>>
>>100130829
ktor + htmx + tailwind feels so good. I'm a back end developer and they make making UI feel easy for the first time in my life
>>
>>100132180
>>100132188

thanks for the tips, I spend my time using google, and honestly I like it it's fun not knowing everything and building step by step
>>
>>100131982
You're thicker than pig shit. Get rope and kill yourself.
>>
>>100131982
>invokes manners
>as the shitter who introduces herself by calling everyone he wants help from faggots
>>
>>100132303
I guess you'd know because you eat pig shit. All you're capable of doing is just talk shit for no good reason
>>
>>100132322
I thought you lost already, you wanna start all over again dipshit?
>>100132111
>>
File: file.png (158 KB, 2922x436)
158 KB
158 KB PNG
>>100130946
I am pleased to announce to you that this does in fact work on my machine.
>>
Can someone explain this?
>>100132372
How can you use godot for that?
>>
>>100132452
transpiling
>>
>>100132334
You're not even making sense. Get fucked.
>>
>>100132520
>reeeEEEEEEEEE!!!
lol, stupid pig
>>
>>100132349
I'm having entrécote and coleslaw, I'd say I'm winning.
>>
imagine hateposting for hours
>>
>>100132573
You're a fucking idiot. Genuinely thick.
>>
>>100132580
Do you substitute veggies with that coleslaw for every meal
baka
>>
File: IMG_1125.jpg (56 KB, 600x564)
56 KB
56 KB JPG
>>100131013
>>100131588
are u two faggots from the previous thread still going jfc get a room already
>>
>>100132785
Go fuck yourself
>>
File: Capture.jpg (11 KB, 365x313)
11 KB
11 KB JPG
>assigned to project with lots of manual work in stupid GUIs
>find the apis
>write 10+ bash scripts
>wake up
>run scripts
>check everything is ok
>turn on mouse jiggler

sirs this is literally free money
>>
>>100133409
'shiko on the 'log
>>
Here's one that's been troubling me for a while:
In vscode, how can I declare that a string constant should match the relative path of a file in the project, so that I may get string autocompletion like with import statements?
>>
(...and highlighted as an error if the file does not exist)
>>
>>100130829
there are no more nodejs jobs available, what should I pick next? java or .net?
>>
>>100135570
java if you are a masochist who takes the big corporate d.
.net if you are a masochist who happens to like taking the biggest corporate d.
>>
>>100130946
typescript doesn't narrow types when using .filter, you need to do that yourself
>>
>>100132785
>u
>faggots
>jfc
see global rule 2 and then leave
>>
have you ever downloaded and built the mdn web docs repo to use it locally? i use it all the time, but im wondering how feasible it would be to keep a copy downloaded on my laptop with a cron job set or build script tied into the run script to pull an update every once in a while.
>>
>>100139388
https://devdocs.io/offline
>>
>>100139445
oh snap! thats cool as fuck.
>>
File: 1584345052953.jpg (135 KB, 1080x1063)
135 KB
135 KB JPG
>writing post on website
>hit ctrl+s before hitting enter
>>
>>100132217
The full memestack?
>>
>>100132217
what felt difficult about the frontend for you? what were you using previously in the frontend?
>>
>>100130829
I'm thinking OCaml or Gleam for my game's website ( forum, blog, and distribution ).
>>
>>100133409
The need for mouse-jiggler obviates any sympathies I would have had for the company. If their metric for productivity is your mouse activity then they deserve whatever shit's coming to them.
>>
Which psychoactive drugs will make you a more productive programmer?

I thought Prozac made me more productive but I'm taking it again now and it's not helping

Maybe I should try mirtazapine and see if that helps
>>
>>100141319
Don't sacrifice your health to line the gigajew's pockets.
>>
>>100141330
At the moment I need more productivity, obviously I would rather not have to take drugs, but I think I do have to, basically.
>>
>>100141319
>prozac
>productive
lol
>>
>>100141433
Prozac is known for being quite a stimulating drug compared to other antidepressants. It can make people more active than other antidepressants do.
>>
>>100141466
desu the last time i took prozac was when i was 11, but i dont remember it helping me at all. ive never heard of ssris ever being "useful" for someone trying to be productive if theyre not already majorly dysfunctional. its nothing like adderall other adhd stims or or amphetamine analogues.
>>
>need to make a simple website
>have never made something like that, only complex web apps
what's the common template that everyone uses?
>>
>>100141506
http://index.html
>>
System.out.println("Good morning sirs!");
>>
>>100141522
i wanted it to be a real
>>
>>100141548
Add it to your hostfile and you can
>>
>>100141505
I think it made me more productive when I've had it in the past. Maybe I just need to wait longer this time for it to make a difference since they say it can take at least a couple of weeks.
>>
File: example.webm (2.6 MB, 1280x854)
2.6 MB
2.6 MB WEBM
slow progress on a personal project. im trying to spoof a very dumb unix-ish desktop frontend as a portfolio site. so far it includes a very very dumb "window manager" that allows for instantiating new windows of different types, moving them, minimising and maximizing, etc., which is going to extended to support things like images, text, markdown files, videos, etc., and hopefully generic "applications". id love to get snake working on this where its presented as an executable and you can call it by its relative pathname.

ive never read anything about windowing systems, so this is purely made from my intuition about what i need to create such a thing, so its very likely to change significantly. im not happy with a majority of things, but those are either css issues or "ipc" issues between the frontend and backend, e.g. the object returned to the terminal on invocation that describes how the terminal window should proceed. the most obvious example is how the window location changes; i dont think thats sustainable if i want multiple terminals, as currently they each depend on the window location for their functionality.
>>
>>100141686
Nice job anon! In my experience dragging, z-indexes and resizing are pretty challenging to get right on the browser.
>>
File: 171358397309115362.jpg (150 KB, 1074x655)
150 KB
150 KB JPG
I claimed on my resume that I know ASP.Net and got hired, and for two years I never had to do anything with it

But now we are developing a local server to aid development for our testers, and I am the only one who knows ASP.Net on the team so I was asked to do it. The problem is I don’t know jack about ASP, or servers or networks in general.

Thankfully it’s very simple, I just need an xml file on a local network that our main software can download when it changes. Does anyone know a tutorial on how to make something like this? The ASP.Net tutorials I found online focus more on the actual backend server side of things
>>
>>100141846
just ask Copilot?
>>
>>100141846
This will teach you not to lie
>>
>>100141826
this is all in vanilla js/html/css, and so far ive noticed that ive needed to implement callbacks on each "window" that the window manager can call on windows it controls, and that windows need to be able to override and inherit from in order to work together via the WM. the WM currently handles window focus and x-indexing via event listeners placed on each window and running their callbacks, which tell the WM what to do. each window is a custom element that derives from a base class custom element which implements resizing, focus, and a few other callbacks or bits of functionality.

both the z-index and resizing are handled with css via `z-index` and -resize: both;`. windows are also movable by dragging their window headers, which i stole from a W3 example and havent had a reason to change. im running into issues where i need to implement some functionality in the window manager api to handle resize events. eventually id like resizing to be comparable to most native os resizing where you can drag on the edges and corners of windows to resize in the appropriate direction.

im also not very satisfied with how the terminal works and interacts with thw window manager, so im probably going to read up on twindow managers and desktop environments a bit to figure out what i ought to do, need to do, and how i can do what i want to do.
>>
Test
>>
>>100130985
Which is better? I'm trying out Javalin, all I've got to is "hello world" so far after wrestling with Gradle for a bit
>>
>>100143352
Spark was super comfy, but Javalin is its successor. It started as a Spark fork after the og maintainer abandoned it, now Javalin far surpassed Spark in features and performance, so use that if you're building something new.
>>
>>100141846
you should be able to learn on the fly.
Seriously, ask chatgpt the right questions and learn this.
>>
I hate CSS so much it's unreal
>>
>>100141856
>>100142134
>>100144078
Okay fine, I’ll ask an au
>>
>wordpress
>have a plugin that has a main class
>this class instantiates other "subclasses" to do stuff
>put an add_action in the main class, it works
>put an add_action in the subclass, it works
>put an add_action for an ajax call, referencing the subclass, it works
>put it directly in the subclass, referencing itself through $this, it doesn't work
WHY. it's been 3 hours, i don't get it. EVERY other action call works, but registering an ajax call doesn't.
>>
File: o0u6ur0xgc2c1.jpg (40 KB, 640x518)
40 KB
40 KB JPG
Whats the next big thing in the web, and what's the next meme tech?

Next big thing:
>Further adoption of gRPC/QUIC/HTTP 3, to the point that knowing HTTP2/3 will be as important as knowing the basics of HTTP 1.1
>Better debugging tools for WASM in the browser, giving rise to better, statically typed languages that aren't javascript
>Functional Designs become more popular, Inversion of Control becomes less popular

Meme tech:
>LLMs generating websites
>Whatever the flavor of the month javacript framework is
>Web3 (but that's long dead by now)
>>
>>100141846
What would the frontend component of this be? It sounds like you just need to serve a single static file? Or do you need to generate the XML file for each page load?

To create a new asp.net web server, you'll probably want a WebAPI template server (a backend server with no frontend templates). To do that, run

dotnet new webapi
in your terminal. (make sure you have the dotnet cli tool installed: https://learn.microsoft.com/en-us/dotnet/core/tools/ )

With the latest .Net, the default webapi template creates a single file that serves all your requests: Program.cs, and it now looks a bit closer to python (no more
public static void main


open up Program.cs in your preferred editor (VSCode is good for C#), add
app.UseStaticFiles("wwwroot");
somewhere after
var app = builder.Build();
but before
app.Run()


now put your XML file under "wwwroot/file_name_here.xml" (create wwwroot folder if it doesn't exist). run the server with
dotnet run
and the file will be at http://localhost:[port]/wwwroot/file_name_here.xm; where [port] is whatever port # the server runs on
>>
>>100144415
Thanks, this is exactly what I was looking for
>>
File: 1694582387975093.png (310 KB, 391x586)
310 KB
310 KB PNG
>>100130829
I am going absolutely bananas.
>Have node based API serving JSON
>Have react a app serving my frontend
>Works great together
>Want to put it in production behind a ngingx reverse proxy to use SSL
>BLOCKED MIXED CONTENT

Both applications are reversed proxied and individually use HTTPS. One uses api.domain.com subdomain. But when I use it in my frontend it gives me mixed content errors because something is keep using http. I'm going to Sudoku.
>>
>>100144474
lmk if you have any other questions, I'm lurking all day
>>
>>100141319
>>100141407
i have a lifetime supply of adderal (adhd) and have been taking dex for 30 years now. I also have a prescription for medical cannabis (cptsd) which really helps with the comedown and to just chill me out so i can code & vibe out. Adderall & dex is for when i want to fucken GRIND
>>
>>100144415
So we're only serving static content? Couldn't IIS do that on its own? What's the point of invoking dotnet?
>>
>>100145145
How's the heart doing?
>>
File: IMG_1788.jpg (79 KB, 403x498)
79 KB
79 KB JPG
>>100142200
holy fuck you’re a nigger you can re-size everything dynamically on a webpage by scaling your font size in css/scss jfc
>>
>>100144106
CSS is so fucking easy. SCSS and BEM makes it even easier. I love mogging on you webshitters that need 100 js libraries & chatGPT just to make a drop-down menu
>>
>>100145168
surprisingly well considering i smoked a pack of cigarettes a day for 13yrs. Now i’m 33, 87kg and 11% BF. Can run 1.8km in just under 10min flat out, but that’s more of a weed thing since. Reckon i’ve got at least another 2 or so years left in the ticker before i drop dead
>>
File: me doing frontend.png (685 KB, 640x934)
685 KB
685 KB PNG
>>100145200
I literally just wanted to put a button in the same line as a dropdown but I couldn't do it without breaking the dropdown so instead I modified the logic of what the buttons do so they kinda make sense without being placed there
>>
>>100145148
>couldn't IIS do that on its own?
yes
>What's the point of invoking dotnet?
If all you're serving is a single file, there is none. But you asked how to do it in .Net.

If you need to GENERATE that XML file, then .Net is useful
>>
>>100145303
<button> and <select> are both set to `display: inline-block` by default. Why do you need extra CSS to put them next to each other?
>>
>>100145438
It's an abomination of proprietary elements with proprietary styles
>>
What the fuck is with the job market?

I have 7 yoe and am a senior dev. I have professional experience in several languages like php, python, dart, js, and I can't even get a recruiter to message me back.

Just last year I was being flooded with requests and now it's crickets.
>>
>>100145303
Why are you using button elements for a dropdown just make a fucking UL and style it out, dude
>>
>>100145466
use flexbox:

https://jsfiddle.net/ftn1Ldhs/5/

Both the custom `.dropdown` and `.button` elements are <div> elements with `display: block, but if you put a flex container around them, they collapse to a minimum width and sit side by side nicely
>>
>>100141522
In a better world this would be everyone's homepage
>>
File: 1713887155870.jpg (694 KB, 2121x1414)
694 KB
694 KB JPG
Just implemented the Hexagonal Architecture in a backend service, it works way better than expected
>>
>>100145145
>>100145264
>i'm 33
>have been taking dex for 30 years now
You've been taking an amphetamine since you were 3 years old?
>>
>>100146045
diagnosed and medicated since i was 4. It is what it is.
>>
>>100146139
Damn. Have you tried living without them? Although maybe that would be pretty difficult with withdrawals etc.
>>
How do I normalize input[type="text"]? Neither padding nor line-height seem to work. I tried removing the placeholder as well, but nothing.
Red lines added for emphasis.
>>
File: urmom.png (9 KB, 526x247)
9 KB
9 KB PNG
how the fuck does this make sense? my question is how do i check if a given el already has a event listener added to it?
>>
File: firefox.png (17 KB, 600x288)
17 KB
17 KB PNG
>>100147192
>>
lmao spent the day trying to figure out why something wasnt working only to remember that i had implemented a fix for something else that i was too lazy to test and just wrote #TEST THIS next to and then of course never did test. luv gettin bit in the ass by me own stupidity me like
>>
Is making SPA's (specifically React) SEO friendly still a pain in the ass in 2024?

I tried it back in the day but it required server-side rendering to make sure google/bing bots could crawl and index your page content.
>>
>>100142200
>>100141826
You do not need z-index for this. Just $container.append($currentWindow) - the order is always from "lowest" to "highest" by default.

>>100144315
nobody needs http"2",3 quic or whatever google develops this time. wasm is nto going to replace JS for DOM manipulation. "Functional" whatever is actually usually slower, because of muh memcpy. The key for faster pages has always been doing less shit or simply doing your shit in a better way.
I agree with your meme list though.
>>
Wtf do I need to know for a jr dev position. Full stack. Give it to me straight /Wdg/. In exchange I give you a picture of the muscles you should work on to get a gf
>>
>>100149169
depends on where you get hired.
it's less than eastern-europeans think but more than the average US applicant knows.
>>
>>100149985
why are you using it?
>>
Why use Netlify and Heruko when you can use your own server? If you really need scaling wouldn't azure/google/aws be better?
>>
>>100150047
I was pointing to a wrong publish folder. Needs to be /dist/spa/ and not just /dist/. Fucking stupid if you ask me
>>
What are my options to spin up a container which has a static inbound public IP address? I know AWS fargate can achieve this.
>>
File: 2024-04-23 22-53-24.webm (3.88 MB, 896x1036)
3.88 MB
3.88 MB WEBM
Not much visual change, but fucking hell matrix math is a pain in the ass. Had to rewrite a lot to prepare for level-of-detail chunking.
0 dependencies.
>>
>>100150361
because there's a lot of anons here that can't into their own server and basic security. that's why nigger shithole zoomer platforms that give you ready to go servers exist
>>
>>100150842
Why not use unity?
>>
>>100151021
Why not use wordpress?
>>
>>100151050
why not?
>>
>>100150361
>Why use Netlify and Heruko when you can use your own server?
anon can't into docker/podman
>>
>>100141506
>>need to make a simple website
>what's the common template that everyone uses?
I will just use ChatGPT to make me a template for my basic landing pages. These are the things it excelles at.
Or just copy a template from the Next.js example repo.
>>
>>100152946
oh you are such a fucking retarded zoomer, leave
>>
>>100150361
Post a guide then.
>>
>>100149169
>Give it to me straight
"junior" dev positions are a myth. Either you know how servers, browsers and the network works and you can do useful stuff - or you do not not, but then you cannot do stuff!

"seniors" are people who have simply been doing this for some time, it does not mean that they actuallly now stuff. hence why shitty stuff gets out there...

now here is the part that sucks: if you are a person who does _not_ have an eye for consistent design, for "feeling" when code sucks (even if you cannot fix it), for quality, for performance - then you are not going to learn that anyways.
>>
>>100149285
melbourne australia
>>
can someone spoonfeed me to make a living wage working remotely as a webdev? every dev job description is so vague, like "just have some webdev skills", but they never say exactly what skills. do i really get paid 90k a year for writing some javascripts and typing some html tags and some css style definitions? why the fuck do they pay so much for such simple work?
>>
>>100155098
Yes sir
>>
>>100154648
>"junior" dev positions are a myth
So my first dev job was a myth, was it?
>>
>>100156136
judging by the fact that you do not seem to have reading comprehension at all: probably
>>
Why can't I make texts breakpoint aware in Quasar?
>text-h1-lg text-h3-md text-h5-sm etc
>>
>>100157508
nvm, this is good enough
<div :class="$q.screen.gt.md ? 'text-h1' : 'text-h3'">
>>
Is there anything more dreadful than front end?
After 4 years working this shit I really want to never touch a computer again.
>>
>>100150361
Heroku's basic dynos are obscenely cheap.
>>
>>100157589
started in front end and though "i wanna be fullstack so i can be a superawesome flexible dev", now i'm strictly backend.
fuck front end, why would anyone willingly want to subject themselves to it?
>>
I've been working on a portfolio site and can't decide if I should include images of my projects or if text descriptions + github links is good enough. does anyone have a good list of dev portfolios that I can look at?
>>
>>100156408
Don't blame your terrible understanding of English on others
>>
>>100158081
>should i include X part of my project?
is X an important part of your project?
>>
How do I host a personal project (somewhat) anonymously nowadays?
>>
>>100158198
well, they do say a picture is worth a thousand words :^)
>>
Node:
>set some env variables, use dotenv, you're done
Go:
>set some env variables, use godotenv, you're done
Java:
>make a file called persistence.xml
>put it in some weird place
>sometimes it's recognised, but it won't be put into the JAR for some reason
>look for answers and they're all using Groovy Gradle files instead of Kotlin
>of course none of this works because FUCK YOU
>>
>>100158436
just use groovy like a normal person, stop falling for jetbrains' memes
>>
>>100158706
I thought Kotlin was meant to be modern and everything
>>
>>100159409
modern java is meant to be modern
unless you're doing android development, there's no reason to use kotlin
>>
>>100158436
Bun:
>native .env and nodemon functionality
>>
>>100159484
I see, maybe this is where I fucked up

>>100159521
I should really try out Bun
>>
>page 10
>>
>>100161210
nigger you don't need to point that out
>>
>>100161210
just let it die
a shit thread for street shitting nocoders
>>
>>100158010
>now i'm strictly backend
This is what I want to do but I have zero motivation right now because I'm burned out.
>>
>>100161249
leave attention seeker
>>
>>100161278
oh oh
found the street shitting nocoder
>>
>>100161237
I was bumping the thread

>>100161249
I like /wdg/, it has its moments
>>
>have to make the site quicker for muh seo
>this stupid third party library for swiping carousels takes a disgusting amount of time to load
>however my own implementation would probably suck but at least it wouldn't brick user's browsers

What do
>>
>>100162011
>swiping carousels
Fucking suck in general for the interactive web.
They only look good in the advertiser's head and potentially as physical billboard.
>>
Just in case someone has encountered this before

I've defined `persistence.xml` for my Java project

It works when I run `./gradlew run`

But if I build the project and then try to run the JAR, it doesn't work. It says a provider couldn't be found. Anyone had experience with this before?
>>
typeof typeof 0
this is an interview question, react "devs" with 10 years of experience don't know how to answer
>t. my senior
>>
holy fucking shit ive been trying to fix this for over an hour
>>
>>100162835
hacks it, transform translate
>>
>>100162814
>this is an interview question
If the test is whether they've even heard of JS, I don't want what they're making.
>>
>>100162876
if the test is that you've been reactniggering for 10 years and you don't know how to js
then lmao xDing
>>
>>100162476
is it under /resources?
everything under this folder goes into the jar as well
also, use the shadow jar plugin

plugin{
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

application {
mainClassName = "yourfagcom.Main"
}

jar {
manifest {
attributes 'Main-Class': application.mainClassName //or "yourfagcom.Main" again if it doesn't work
}
}


install it, then run gradle shadowJar to build your jar, it'll be under /build/libs
>>
>>100162923
Goddamn, the shadow JAR thing works. The standard JAR still doesn't work. But the shadow JAR is working.

I don't know what this magic is but it's working. Thank you for the help.

And yes my persistence.xml is within src/main/resources/META-INF. Apparently that's where it should be.
>>
>>100163217
you're welcome, gotta help the few java enthusiasts out there
>I don't know what this magic is
same lol
>>
>>100163293
>>100163217
nta, jars, beans, factories, anotation, my ptsd still tingles, yet this is what I'd like to do professionally, since .NET triggers my anti-microsoft autism
>>
>>100162476
stop using gradle
>>
>>100163390
>jars, beans, factories, anotation
can't relate, I'm a javalin chad
just kidding I still use guice for dependency injection so I still use some annotations
>>
honestly, why isn't this more popular?
It seems to just work honestly. no real drama or bloat.
https://github.com/choojs/choo
>>
File: nesting.jpg (5 KB, 227x215)
5 KB
5 KB JPG
for CSS chads, how into nesting are you?

It just makes much more sense to me to look at it like you would write a function. picrel: everything in article is grouped together instead of rewritten with 3 seperate rules

https://caniuse.com/css-nesting
Seems to have pretty high support across browsers, I think I'm gonna try this out in my project
>>
>>100163293
Well I'm not an enthusiast really, I just wanted to try it out and learn more about it

>>100163430
Well it works now that anon helped me out with the shadow JAR thing, so I guess I'll stick with this for the moment

Also it seems a lot of people use Gradle, but they use Groovy, whereas my Gradle build file is in Kotlin. So when people post snippets on Stack Overflow, they don't work for me because they're in Groovy, not Kotlin. Maybe I should change this.
>>
>>100163540
what would be better and more scalable is BEM with SCSS ie. the ultimate red pill on CSS styling
>>100163550
>kotlin
>gradle
>groovy
maybe start using actually good JVM tools instead of picking the worst ones
>>
>>100163540
is the & really needed? ugly, what happens if you omit the &
>>
>>100163774
the & is not a strict necessity, it just explicitly states the relationship between parent & child rules, it effectively works the same without. Contaminators also work of course like a > to target only direct child divs

google probably has the best breakdown of it
https://developer.chrome.com/docs/css-ui/css-nesting
>>
File: 1712873891857303.jpg (252 KB, 1400x1577)
252 KB
252 KB JPG
>>100164201
combinators, not contaminators, I'm retarded and listening to someone talk while typing
>>
>>100164201
>the & is not a strict necessity
thank gud
>>
>>100163569
>maybe start using actually good JVM tools instead of picking the worst ones
My assumption was that Gradle and Kotlin would be the forward-thinking options. But maybe I'm wrong.

Anyway I finally managed to get some things working. Not much but it's something.
>>
The job market is just fucked isn’t it?
A job gets posted on linkedin and AI is applying instantly with over 100 resumes within minutes and you just know it’s indians scamming their way into jobs by overwhelming HR. They do this everywhere.

My resume is good. 7 years of senior experience. Can do anything. Over the last decade sending my resume in would get me a call within a day and a job within a few weeks.
Now it’s like my resume goes straight into the trash. I’m guessing AI is analyzing my resume instead of a person and favoring AI generated resumes stuffed with keywords as white text in a white background size 1 font.
>>
>>100165125
>muh indians
seriously doubt someone with 7 years of senior experience would be complaining about indians taking over jerbs. go larp somewhere else kek
>>
>>100165238
Not him, but I bet there are bots set up, maybe hooked up to ChatGPT, ready to send out CVs to any dev job listing, packed with keywords etc.
>>
I will answer your AWS or SQL questions until I get tired and head upstairs to bed.
>i keep reading and reading stuff, what can I read to actually learn more?
don't. build.
>sell me on using AWS instead of a VPS
i'm not a salesman and you haven't given me a use case.
>>
File: 1713205918121265.jpg (164 KB, 924x615)
164 KB
164 KB JPG
broooooos
i've been coding for 2 years
>>
>>100166449
and it still feels like i started yesterday wtf
>>
>>100166449
congrats! any takeaways or lessons you learned from your journey?
>>
>>100166523
i would say the most impactful one was not quitting
there were times where i didn't see the job coming so i was very depressed
but thanks to the mexican anon and the arnold schwarzenegger anon i kept pushing
it was either die or get a job, and in the end it really did come
>>
>>100165238
not sure why it didn’t post but indians are all the way up to ceo. They hire each other. it’s well known. 4% of US population but have 43% of tech jobs. It’s hard no matter your level because an indian will not hire a white guy id there’s an indian applying and there’s always an indian applying.
>>
>>100166074
They do have AI apply bots and indians abuse it. It would literally be a weekend project for anyone with a little selenium and openai experience.
>>
>>100166723
> there were times where i didn't see the job coming so i was very depressed
i'm in a similar situation so this is a bit encouraging. thanks for sharing.
>>
is there a way to make an element have an arbitrary text value when highlighted + copied? images seem to do this by default with their title attribute
>>
I must be doing something stupid with my jsconfig. I want vscode to consider declaring a new property as an error, but I can't find the right setting.
class SomeClass {
member = "foo";

funkyMember() {
this.missingMember = "foobar"; // This should be an error
}
}
>>
>>100159484
>modern java is meant to be modern
>unless you're doing android development, there's no reason to use kotlin
How common is Kotlin for the backend? Is it used much at all? I hear that it is somewhat popular from some people and others say it is only used for mobile.
I was thinking of maybe getting into Java as a mostly JS and .NET developer, and wondering if learning Kotlin is smart of just a waste of my time for now? My impression is that Java is evolving more quickly these days and are implementing popular features from Kotlin, C# and other competitiors. Considering this it seems just learning Java and forgetting about Kotlin is the smart move if my aim is to be more employable and possibly get a Java job?!
>>
Do any of you have clients as a web dev? How is it? Any advice?
>>
>>100169565
I've only worked for a company because it's easier than worrying about clients, but maybe I could work self-employed in the future when I know what I'm doing a bit more.
>>
how fast would it be to learn ror and its libraries if im mildly familiar with express/django/react? ive never touched ruby but ive heard that its pretty approachable.
>>
Hello, does anyone know a good page or app to draw or schematize api calls with requests and responses on whiteboard?
>>
>>100171131
pretty sure if you define it in OpenAPI there are dozens of apps that'll do that.
>>
where do you guys look for real jobs? i dont mean real in a "im a grown up and need a good paying professional job" sense, i mean ones that actually fucking exist. everything i can find thats local and doesnt require a fucking masters/10yoe is posted by some indian recruiting company or is actually a job on the literal other side of the country.
>>
I fucking hate devops and our architecture astronaut higher ups trying to solve everything with infrastructure.
>>
>>100171572
found mine through nepotism
also there's a few IT job boards in my country that're pretty reliable
>>
>>100161278
>>100161291
pseudo-janny duels, my favorites
>>
im tired of everything being ai now. i dont want anything to do with it. i need to get out of this industry.
>>
>>100171572
nepotism or luck. there arent enough good jobs to go around.
>>
>>100131802
hibernate sucks? works just fine for me.
>>
>>100172196
the other day I left the office, there were literally 7-10 indians right outside of the office, HR is clearly malfunctioning, may be the reason why last HR got the boot
>>
Not sure where to post this so I'll keep it to 2 threads max.
How do I find coordinates for a button on a web application?
Like for example ''post a reply'' button on 4chan. Any specific way to figure out the coordinates? I want to automate my job.
>>
>>100172482
what do you mean by "coordinates", related to what? the screen? page tree? something else?
>>
>>100172527
I asked chatgpt and gave me a simple python script where I need the coordinates of the specific buttons on a website to click. So where the actual button is located that needs to be pressed by the mouse.
>>
>>100172482
>>100172579
I'm pretty sure I know how to do this, I just tested it. You can find out where an element is on the page.

But I'm not going to tell you the solution, because I'm not going to help you cheat at your job.
>>
>>100172482
Greasemonkey/tampermonkey/violentmonkey

the coordinates, I think are relative to the screen and browser window. Research a bit, bu it shouldn't be too hard. Just launching a click event or some shit.
Now that I think about it, you might not need the coords at all, just launch a click on the specifick button
>>
>>100172809
I'll figure it out. They cheated me tho
>>
>>100172579
you building a bot or what?
>>
>>100167954
there are companies with Kotlin backends, but new JVM backends systems are still being written in Java nowadays, specially after 17, at least from my anecdotal experience
with 21 there's no reason to use Kotlin for this purpose
>>
>>100145553
The market is brutal, and there's no signs of recovery anytime soon.
My friend is about to start their 6th month of unemployment after 5 yoe. Sadly their career as a developer is probably over. Even if the market recovers, you will never be employable again with a gap that big on your resume.
>>
>>100172991
>Sadly their career as a developer is probably over.
That sounds like bullshit. Unless they have some other option that pays equally well, but if you're a dev, then any other career option probably won't pay as well, especially after 5 years of dev experience.

Ultimately it's a choice. Of course if you can't find dev work for the moment then you can do something else temporarily, but your career is only "over" if you stop looking for dev jobs.
>>
>>100172579
you’d select it by element name, class, or id. No one does coordinates. build your bot with python and selenium.
I just built one that automatically pulls transcripts from new joe rogan podcasts posted to youtube and sends them to openai for timestamps of highlights and a synopsis. all using selenium.
>>
>>100171572
use a recruiter.
it’s the only way to get through the bs these days. Just skip every recruiter with an indian name or accent.
>>
You guys gonna retool to CNC monkeys?
>>
>>100173021
No one wants a dev that's behind the curve. If you've been out of practice for 6+ months, they might as well hire an intern for half the price. At least in this job market, no one is willing to take on a charity case when there's hundreds of ex-FAGMAN engineers banging at the doors of every company.
>>
>>100171572
Circular.io, got me much more success than linkedin, but as they said, best thing is to know people. It took me almost 6 months to get a job
>>
>>100173025
I already got it. Just got to figure out some ways to make it more humanlike. Like adding random intervals between specific time frames.
>>
>>100172991
>you will never be employable again with a gap that big on your resume.
>"can you explain this gap in your resume?"
>"not without breaking a non-disclosure agreement i have signed, i'm afraid
>>
gaps aren't even real, just keep stretching it until you find a job lmao
>>
>>100173330
>If you've been out of practice for 6+ months
Maybe he's been practising. What is this person going to do then, if not dev work? It's a choice - if they want to keep pursuing a dev career then it's not over. Just keep improving and applying. It's only over if they give up.
>>
>>100172991
>gap that big on your resume
You took care of a (terminally) sick family member
You were working on a project but you signed an NDA

It's not that hard.
>>
>>100173498
>You took care of a (terminally) sick family member
Also they were a spy, that's why there's no records of their death.
>>
>>100173522
>recruiters are totally gonna look up your family, anon. totally
based retard
>>
>>100173618
>he doesn't understand a joke
Cringe retard
>>
>>100166449
same, have been employed as a dev for just over a month too
>>
I found a job and I completely made up 4 years of work experience lol
>>
>>100173402
Didn't the Supreme Court just ban these?
Gonna need a better excuse.
>>
>>100173443
Have you looked for a job recently?
Something tells me you're an ex-FAGMAN or something by how naive you're being. No one cares if you've been working on " projects" while unemployed unless they're massive and revenue generating.
I have not known a single person get a with a 6+ employment gap unless they outright lie about it like other anons suggest. It's a huge red flag for employers.
>>
>>100171572
I'm currently in Europe, but I'm from 3rd world cunt. My contract ends soon, and i couldn't find any job here anymore, I'm being filtered by "continue applying" polite emails. I started to look for job positions at my cunt, and situation seems much better there.
>>
>>100173920
People do get back into work after big periods of unemployment. As I say, his career in dev is only over if he decides it's over. He could keep looking. Even if it means looking at smaller companies, maybe in different parts of the country.

And as I say before, if he does decide to stop working in software, then the question is, what alternatives are there. If you've already sunk 5 years into software then it makes sense to look for jobs in the same industry.
>>
>>100171572
>where do you guys look for real jobs?
LinkedIn. It costs a lot to promote jobs there, so most of the jobs are real.
Had no problem using that in Europe or best Asia.
>>
>>100173809
they banned No Competes.
>>
This thread is now just over 3 days old, a.k.a. 72 hours.
>>
>>100175417
People stopped webdeving, the gatekeeping in the /twg/ OP worked >>100122689
>>"Looking to change careers, should I pursue a job in tech?"
>>"What should I study to get a job in tech?"
>>"I'm a self-taught dev/went to a bootcamp and have no degree, how do I get a tech job?"
>You're fucked. You're just so fucked. Learn a real marketable skill like woodturning or plumbing.
>>
>>100175503
>plumbing
plumbing seems fine until you think about it and come to realize that you'll be dealing with literal shit
>>
>>100173920
I have 4 to 6 month gaps in my resume and it never mattered. It might matter now though, could be the reason I’m all of a sudden getting ignored? guys i’m becoming a dev influencer.
>>
>>100176138
I’ve been gathering equipment to do knife sharpening. My plan is to make a subscription service where I come by once every other month and grab your knife block off the porch and return it once sharpened.
40 hours of sharpening a month would replace my current salary.
Sharpening isn't easy though. It sounds easy but it’s really not. Different steel types give different hardness levels and how you sharpen a 3000 dollar japanese knife isn’t how you’ll sharpen a walmart blade and if you fuck up you’re screwed and you can overheat a blade in seconds ruining it.
>>
>>100167652
that will give an error in Typescript that
>Property 'missingMember' does not exist on type 'SomeClass'
But it's valid Javascript which is probably why you're not seeing any error. You could try enabling this setting
https://stackoverflow.com/a/69671885
>>
Not sure if this is the right thread, but I'll ask anyway:

Drupal or WP? I am familiar with WP but want to set up Drupal. Is it worth my time for a simple website?
>>
I keep seeing REST APIs in job posts? How do I learn and apply it?
>>
Is 3js crowded? I’m seeing a lot more vids now and I just started learning it :(
>>
>>100177850
Learn what REST is then build one. It's fairly straight forward.
>>
Genuine question for you guys who make a living out of this shit. How do you do it? Touching anything web based makes me feel suicidal. I love working on software, but web shit just makes me feel like a dirty indian
>>
My job is switching from .NET go GO. Am I doomed?
>>
package main

import (
"github.com/gofiber/fiber/v2"
)

func setupRoutes(app *fiber.App) {
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello, World!")
})
}

func main() {

app := fiber.New()
setupRoutes(app)
app.Listen(":3000")
}


This trivial web server handles barely 10,800 requests per second. I'm measuring using the ab tool by apache. is this normal for my cpu (AMD Ryzen 5 5600X)?. I'm following a fiber tutorial where the guy reaches 60k requests per second.
>>
>>100179587
you're a stupid fucker. what cpu is the guy using? no shit that's what's limiting your server
>>
>>100179116
it seems you will write a lot of code
>>
>>100179116
Why on earth would they do that?
That's a pure downgrade
>>
>>100181441
not him but 100% management and fell for the meme
>>
>>100181474
>>100179116
Yeah I was about to say it looks like someone fell for /g/ memes in his management team lmao my condolences
>>
>see local job posting looking for a rails developer
>no ruby experience but the syntax looks simple enough
>figure rails cant be too different from django or express or anything else
>try installing both on a vm to get a feel for it
>cue an hour of endless errors with missing and broken deps
>libc6-dev
>yaml.h
>node
>psych
>finally "fix" dependencies that are never mentioned anywhere in the ruby or rails docs
>gem is bitching about bad write permissions
>vscode extensions shit themselves because of bad write permissions
>rails new fails because of bad write permissions
>restore vm snapshot and ponder how anyone could ever enjoy this shit
ive never had a worse experience trying to install anything, so i checked out the freecodecamp rails courser and the dude straight up says, first thing, that installing rails has always sucked ass and is terrible and the hardest thing hes ever done. i get the impression that the ruby ecosystem isnt very robust or mature. am i just doing something wrong?
>>
Is it worth it to make the code more complicated and unreadable to make it slightly more efficient?
I'm doing this "challenge" for a job I'm applying to, and I need to call an API.
The API is paginated, and has a total count, and a next link, and I need to retrieve a certain number of elements, which could mean getting data from several pages.
So, I have a while loop, and I need to check if I already reached the end of the API before getting the amount of elements I need.
I could just check if next is null, and break the loop is so. It's simple and doesn't add too much to the code. But I'm doing an if check for each iteration, when I could know the answer with the first call.
Instead I could call the API for the first page, calculate the pages, and then make a for loop to call the API for the remaining pages. But I feel this overcomplicates the code unnecessarily.
What do interviewers value more?
I know I'm possibly overthinking, but I really need a better job than the crap I have now.
>>
>>100182372
Coding challenges are mostly about seeing if you can even code, if your code is readable and MAYBE if you follow best practices. I don't think efficiency (unless you do something extremely stupid) comes into play very often
>>
>>100172982
>with 21 there's no reason to use Kotlin for this purpose
Thats what I assumed. Do you know how the Java market is these days? Is it going up, down or just stable? What's your predictions for Java job market in the medium/short-term future?
>>
>>100182098
Use a VSCode dev container or something if it is that hard.
I find most dynamic languages to suck like this, just much less than what you describe.

Python, sucks ass when dealing with external packages.
Node, better but still the package stuff is whack and the gyp-node C++ bindings always fails and requires some exotic system dependencies.
>>
>>100182372
>Is it worth it to make the code more complicated and unreadable to make it slightly more efficient?
Focus on readability unless performance is an explicit goal. At least that's how I feel.
>>
File: screenshot_1.png (183 KB, 1920x1080)
183 KB
183 KB PNG
hola amigos, just launched a silly little productivity app inspired by me reading the book "deep work". i call it shovel bc you go deep in your work like how you go deep with a shovel irl haha. you can make a room and collab with people, make a todo with goals, and keep up a daily journal for work progress and stuff. also a daily streak for being consistent and competitive. check it out if ya want. i also made like 30+ color themes bc I got addicted to making themes, there's one for everyone (or suggest more i love making the themes)

:: shovel ::
dev:: honk
tools:: node, react, next.js, redis, postgres
link:: https://ovel.sh
repo:: https://github.com/JamesAC42/shovel
progress:: after starting about last month deployed today

did i do that right, this wasn't a thing last time i was here
also DONT complain about mobile i will NEVER KNEEL to mobile fags
>>
>>100183184
Dang, that looks like it took you a long time. Are you using upstash & neon, or Vercel's KV/postgresql?
>>
File: 1713027007296391.png (1.07 MB, 811x1200)
1.07 MB
1.07 MB PNG
Do unit tests matter for Angular
>>
>>100183401
in my opinion testing most front end stuff isn't worthwhile unless:
- it has to do with the payment flow (which you'd ideally just write as an e2e test).
- you're testing something actually functional (i.e. the expected inputs/outputs of a somewhat complicated function)
- you're wanting to calcify some "functional specifications" in to your application so that the logic is never lost when redesigns & refactors inevitably happen. In this sense it kind of acts like documentation for newer developers of how your application is supposed to function.

Backend unit testings are much more worthwhile though IMO.
>>
>>100183399
started in late march but only really worked on it the past few weeks. front end is just a next app in plain javascript lol, deployed on a digitalocean droplet w/pm2
>>
After about 10+ (!!!) years with Adsense and the same ad units, my account has been suspended with "More ads or paid promotional material than publisher-content". They also rejected me when I removed all but one tiny ad per page.
My site only shows audio content so there isn't really much I can do.
Can anybody recommend an Adsense alternative?
>>
So, as far a I know, the typical Express.js project folder structure looks like this:
>controllers: your endpoints, here goes your business logic I guess
>models: model definitions in your favorite orm
>services: calls to external stuff like third party apis, etc
>config
>routes
>other stuff
That's all good, but where do I put orm queries, inserts, etc?
Putting all that in the controller seems wrong, and I'm not sure that qualifies for the "services" folder.
Maybe another folder called db or something? O a folder called utils, I don't know.
And the models folder should only contain the model definitions, right? Maybe that depends on the ORM as well?
Right now I'm working with Sequelize, but I have a personal project using Drizzle.
>>
>>100175503
based gatekeepers. I lowkey hope ai and fudding keeps people from learning. So I can get a job
>>
Frontend and react shitters pls report in to help a scrub like myself, I'm making a project with React and have a question.

I have a search container that is relatively placed, and as for the children there is a search bar and an absolutely placed search dropdown. As the user types something the dropdown will automatically open, but I have an onBlur event listener that closes the search dropdown when the user clicks off the search container. The issue is that the dropdown is absolutely positioned, so a click on the dropdown can't bubble up to the search container blur event listener and so it's interpreted as focus out/blur event.

I was thinking about adding a useEffect to add an event listener to the body, and refs for both the search bar and search dropdown, to compare the e.target and the refs, and if neither of them match, then it closes the dropdown. And I'd also just get rid of the onBlur effect, which should do it, but I hate the boilerplate involved in writing something so simple, as well as the overhead of using two refs and a useEffect to get this to work.

I'm sure there's a solution that uses stopPropogation I just can't think of it. What's the best way to prevent this from happening?
>>
>>100183508
Ah right, I assumed because you were using next.js you were deploying to Vercel and using their postgresql offering - https://vercel.com/storage/postgres or Neon which powers that
>>
>>100183793
>but where do I put orm queries, inserts, etc
You're invoking them from your controllers, either directly as SQL statements or through abstractions/helpers, such as a model service that handles CRUD & relationships for a specific model, or through bespoke patterns like the repository pattern, event sourcing, etc.
>>
>>100130829
does ad revenue still pay? If I have a website with original content that people go to will it make money?
>>
>>100183184
looks pretty sleek. any particular reason for using node:http to listen for express?
>>
REST APIs don't have a strict response format, right?
For example, let's say I'm working with movies. And let's say the response for /movies is:
{
"results": [...],
"total": 48
}

The result for /movies/<id>:
{
"name": "Name of the Movie",
"genre": "Horror",
...
}

And the result for inserting, updating and deleting just:
{
"message": "The movie was ___ successfully"
}

Is that ok? Is it REST enough? Should I standardize all responses so everything has a "data" and "message" field or something?
Yes it's for a code challenge, I really want the job.
>>
>>100179587
Have you measured other stacks on your PC? Like Node or whatever?
>>
Haskell for web.
>>
File: fag.png (1 KB, 98x26)
1 KB
1 KB PNG
>>100183184
I don't think I would ever use something like this but that looks really great!
...or that's what I would've said before I found out about your bigoted ways!
>>
>>100184750
I don't get the "totals" part. If "results" is an array, then you know the number and because of that you do not even need "results". Simply return [stuff].

Which situation is this trying to cover? I mean, if the total number came before the actual results, then maybe that would make some sense in case of very large arrays or slow networks. Though I do not think that any current browser would be able to handle that before the response has finished...

>Is it REST enough
REST is a spec for an API, not for the data that the API returns. REST does not care about the way you structure shit from the POV of semantics.
>>
>>100184750
>Yes it's for a code challenge, I really want the job.
What language? I'm implementing the OpenAPI v3.1 spec with Huma (a library) in Go and it's really easy to use if you already know Go
>>
learn rvnes sveltechads
>>
>>100186068
ever noticed how svelte basically died after they switched to being a react copy? nobody in this general is talking about that crap anymore - and rightfully so.

I mean, from a philosophical standpoint it even makes sense: Why would you "trust" somebody who says "trust me", but then tells you "I was wrong, now I know better, trust me"
>>
>>100186088
SvelteKit ruined it
>>
>>100185990
nta, but never return a top level array in responses, because it doesn't open the possibility of updating the response shape when you need to add contextual info (like that movies endpoint has 48 total items, but maybe only returning 20 at a time).
>>
File: Code_gS4vKJO1gJ.png (8 KB, 363x290)
8 KB
8 KB PNG
zustand negroes, is this the correct way to annotate 2 slices using the persist middleware? I just did what my intellisense told me to do and the error went away
>>
>>100186694
What you describe is not restful. Returning only part of all results implies that the restful client asks for a part of the list only, therefore it would already know that it is only getting part.
If your list is too big to be returned at once, then the endpoint must reflect that, NOT the result.
>>
>>100130829
Any Vaadinchads here?
I wanted to build a simple dynamic webpage for my Kotlin program that runs on localhost and I'm not a webshitter so I needed a framework with ready made components. Vaadins been doing the job alright for me.
>>
what's react native's simplest equivalent to vue with pinia stores?
redux looks like ass but I'm not sure if defining a dozen custom hooks at top level is the best approach either
I just want globals that won't trigger rerendering the entire thing every time the smallest thing changes
>>
>>100172200
Do you find it pleasant to work with, compared to alternatives?
>>
>you can build auto contained exe with bun
What are the implications of this?
>>
>>100183793
>where do I put orm queries, inserts, etc?
folder called "data-access" or "database-access"?
>>
>>100186777
Looks right to me, if you want to persist both of those slices.
>>
File: .png (5 KB, 375x134)
5 KB
5 KB PNG
>>100188203
>>100186777

Just looking at someone else's codebase though, it doesn't look like you need to specify the second generic param if you call the create function
>>
>>100183016
it's been picking up pacing these past few years since 17 was released and new projects started being done with it
I reckon it'll only go up now, as I've seen more and more job ads for Java
the only thing I miss in the ecosystem is a proper package manager
>>
What is the cheapest service(s) to host a web app that downloads, processes and lets users download videos? It would need a lot of bandwidth and storage which is expensive. I'm not sure how I could leverage a CDN effectively for this case.
>>
>>100188547
bunny cdn has cheap video cdn and storage
it doesn't let people download videos with their player, though
>>
File: 1692321018792964.jpg (45 KB, 289x313)
45 KB
45 KB JPG
I want to make a website like
https://karpathy.ai/
Andrej says he uses 0 JavaScript and just pure HTML and CSS. I want to see how far I can push this thing and hopefully host it on github-pages because im a poor fag. Can anyone point me in the right direction?
>>
>>100189245
mdn, csstricks
and those flexboxgarden and grid frog (or the other way arround idk) tutorials to get you started
also stop giving character to your posts with a cute animu girl, cause then it seems like you're megatroon
>>
>>100189272
>it seems like
Are/Is.
>>
File: 1692120908147521.png (117 KB, 404x404)
117 KB
117 KB PNG
>>100189272
>>100189344
whats wrong with cute anime girls?
>>
>>100189391
it's like you are expressing through a cute anime girl, which is megatroonish as fuck
>>
>>100189391
It's the same kind of sickness as furfagottry
>>
>>100189429
this anon knows
>>
>know javascript, php, mysql, html, css
>can't land a job because you dont know react, symfony, seo, bootstrap
>>
>use chatgpt, not knowing anything
>doesnt work
>goes online asks actual programmers why it doesn't work
>doesn't understand a single thing the code is doing
is this the future webdev? imagine if ai becomes good enough, then those people will "write" code running on your machine.
>>
>>100189463
that's not nearly enough, nowadays
>>
>>100189511
give me all i need to know
>>
>>100189518
I reckon you're trying to break in the industry, am I correct?
need to know so I give sensible tips
>>
>>100189580
i feel like i have to, gamedev goes nowhere as a solodev, software engineering in c++ seems niche, gamedev as job seems poorly paid.
so i feel like i'm just trying to avoid the inevitable conclusion, i have to get back into webdev and follow that path.
>>
>>100189666
what do you want to build?
sorry, should've asked this before
>>
File: 1691367120674269.png (259 KB, 576x576)
259 KB
259 KB PNG
>>100189399
>>100189429
what if i am japanese and just appreciating my own culture?
>>
>>100189678
hm, when it comes to a career, can i even choose what to build? i had only one webdev job before and i was tasked to make complete websites (they were kinda small, for lawyers, doctors etc.)
i hated that, i had to make the design, install gravcms, make the mobile/desktop version, manage the git repo, do some seo work (although texts were premade), setup google accounts for clients and register their website etc.
i hate that.
i wish i could just work on backend or just frontend, like more specialized.
actually bouth sounds interesting.
i dont want to touch design, i dont want to do seo and i dont want to be hired as a "solo webdesigner making whole pages".

right now i'm learning react/typescript and it seems kinda easy to get into. also i'd enjoy working on the technical side of frontend, like api interactions/json, building reactive ui elements (sliders, buttons etc.)
>>
>>100189706
still troonish, you want to fuck the girl not be the girl
>>
New thread
>>100189787
>>100189787
>>100189787
>>
File: culture.png (2 KB, 206x41)
2 KB
2 KB PNG
>>100189706
What is culture?



[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.