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


*** Please be civil, notice the "Friendly" in the thread subject ***

>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

/wdg/ may or may not welcome app development discussion in this thread. 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: >>103081426
>>
>t. web developer
>>
File: leetcode.png (12 KB, 386x146)
12 KB
12 KB PNG
I'm proud of this pointless achievement
>>
>>103130669
sprdrmon
>>
>>103130687
0ms
wowzers, teach us something!
>>
>>103130781
It's just a shitty LeetCode challenge of course

Sometimes I like doing them because they don't take too long, whereas starting a new side project is a bigger commitment.

I suppose LeetCode challenges are very contrived and I often think "I would literally never encounter this problem in a real codebase", but maybe I'm wrong about that, and all practice is good anyway.
>>
>>103081685
Bump

For the meantime I just manually inserted for existing entries using sql and manage create and edit operations by setting their value when the form submits
>>
File: 2s6mih.jpg (100 KB, 500x600)
100 KB
100 KB JPG
>>103130669
>>
File: file.png (28 KB, 550x746)
28 KB
28 KB PNG
someone know why i get this Year=Null row despite filtering it out in the switch case above?
>>
>>103130660
Is Blazor a meme or is it worth learning? Asking because I already know C# to a decent level but never touched anything web dev related (I know a bit of JS and Ruby as well).
>>
How hard is it to make a site like omegle?
All i know is html, css, little bit of C and Javascript.

If i make an omegle clone, can i see all the video convos that are going on as an admin?

i know webrtc is involved in making a peer to peer website.
>>
>pushed my openai secret key to github
>it's a private repo
but still can't believe I've done this
>>
>>103132356
So you want to make an Omegle clone so you can perv on other people's conversations

Sick freak
>>
Any options for hosting a single static HTML file for free?
>>
File: 1708173352528390.jpg (190 KB, 501x855)
190 KB
190 KB JPG
>tfw I code really slowly and it takes me months to build a single page app
>>
>>103133487
speed is (mostly) a meme
work on your project every day, a few commits even if they are TINY
after some time you realize that it's almost finished
literally feels like magic
>>
File: 1731183142026.png (89 KB, 486x580)
89 KB
89 KB PNG
Is using a Docker container mandatory for Node.js development? Or can i use something like NVM to install multiple versions on my system instead and run the database somewhere else?
>>
>>103133487
I'm in this hell but I think it's mostly because I'm learning from scratch and have to read a gorillon stuff before I can make a decision. I don't like the
>just do this and all your issues are automagically gone
approach because I can't tell what problems it's solving and what other issues are attached to this solution
>>
>>103133632
All my commits are tiny but when you feel the project is not advancing then it gets irksome.
>>103134193
This happens to me a lot, at this point i feel all projects should start by copying somebody else's project.
>>
>>103132210
my guess is if the date parsed to strftime is not valid it could be null.
>>
>>103130660
Any reason to use Deno or Bun over Node in 2024?
>>
Thoughts on rails 8?
>>
any final thots on lit and web components?
>>
I have a web project, but it's anime related, and surprisingly enough not everyone on 4chan like anime, to the point some anons will have an autistic meltdown when they see anime outside an anime board.
So I don't feel like sharing it.
>>
>>103135132
not a lot of them unless you hate npm, or you're doing something really critical and big to take advantage of the fancy security features
>>
>>103136042
don't use lit.
don't use shadow dom.
do make creative use of templates and custom elements.
>>
I will answer your AWS or SQL questions until it is time for bed (we are going to Aruba tomorrow)
>I've been reading and reading and I want to read more to learn, what should I read?
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: 1708794814711257.png (20 KB, 738x342)
20 KB
20 KB PNG
ahhhhhhhh i hate webdev
>>
>>103136965
Should i just use Docker for everything nowadays? Is there any use case for tools like nvm? I mean I'm just some retard doing his own frontend for Buku, not a company, but any tool that could be useful later down the line.
Also just for curiosity have you ever tried to update Firefox's places.sqlite file live?
>>
>>103133383
vercel

>>103137406
I have literally never encountered that problem but that sounds like a pain in the ass to debug
>>
Which form library do I choose bros
>>
>>103139222
just use vanilla html, serves 90% of use cases :^)
>>
Is it normal to take a backup of the database before every single migration, or my colleagues are just obsessed?
>>
>>103133383
Netlify or github pages are very good.
>>
>>103137406
Or simply, don't start your ids and classes with numeric digits.
>>
>>103139583
this
>>
post some cool css shit, btw u guise seen container queries? looks good
>>
File: spring.jpg (7 KB, 300x168)
7 KB
7 KB JPG
I'm finally done using this.
The last two months were suffering.
I know it's pathetic but I want to cry right now.
>>
>>103140672
I tried using it and I didn't like it. It seemed unnecessarily complicated.

Give me Go any day of the week.
>>
File: 1731198179694813.jpg (74 KB, 1200x795)
74 KB
74 KB JPG
>>103140672
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
inb4 it doesn't compile
>>
>>103140856
Java BTFO.
>>
>>103140781
>It seemed unnecessarily complicated.
I'm a Java guy and I agree, I've been playing around with ExpressJS and it just feels lighter and more to the point
>>
>>103133979
I wouldn’t recommend Meteor but I don’t use Docker at all and it’s fine
>>
>>103135824
They dropped a lot of bullshit
I’m a fan
I don’t care about Kamal
>>
>>103139511
Doesn’t sound stupid to me
Easy rollback
>>
html sucks
>>
>>103145015
You could use XHTML but it's worse
>>
>>103141891
Don't spring boot and expressJS have different use cases?
>>
File: babashka music player.jpg (881 KB, 1080x2051)
881 KB
881 KB JPG
>>103145015
just use hiccup

Squint even comes with hiccup built into the language
>>
>>103145852
but lisp is ugly
>>
>>103145676
no they are both web frameworks
>>
>>103143169
The issue is they are doing it very religiously. For example, we are only adding a couple of columns, there is no way that's gonna break anything.
>>
>manual just tells to send ENQ then read
>no mention of any way to test if connection is working correctly
>not even a way to test if the COM port connected to is the correct piece of hardware
>just hope you clicked the right port and everything is normal then send ENQ
is there some unspoken convention I'm missing here or is integrating hardware just ass?
>>
>>103145852
i will never understand people who look at this and go "yup this programming language looks cool and i will keep using it"
>>
>My job sucks
>want to do a side project to feel the sparkles again
>side projects are top time consuming
>Ican do a simple web extension, it'll take just few hours
>don't know anything about web extension
>check tutorial, it's easy
>30h at least, 25 on tutorial and side-side mini project to understand web extension and how to use vite with it
>almost done
I am happy anons.
>>
>>103146061
>>103150287
'kay, keep writing your mountains of boilerblate and <tagonbothsides></tagonbothsides> bullshit then
>>
>>103150683
nice job anon! I often find it so draining to do side projects after work, and often when I do, I get so hyperfocused that it affects my work performance. if only we had more hours in the day to wind down :(
>>
>>103150683
nice!
>>
>>103151248
> only we had more hours in the day to wind down :(
I feel.the same way
>>
File: leetcode.png (46 KB, 891x559)
46 KB
46 KB PNG
My LeetCode strategy is:
1. Implement something which I think might work (but I'm really unsure)
2. Run it
3. It fails
4. Make random tweaks until it works
>>
>>103145676
Yes they do, Express should be used when you like yourself, and Spring should be used when you hate yourself
>>
File: aoc2018day1part.jpg (185 KB, 1892x432)
185 KB
185 KB JPG
>>103152106
my strategy is:
1. implement a working solution in an editor with Clojure repl support
2. translate it into a more imperative/OO solution in Dart while running the whole program over and over
3. try to translate the Dart solution into JavaScript and spend hours fiddling with it until I've worked through all the stupid js quirks
>>
>>103152533
Do you like Dart? Flutter looks cool to me because I like the idea of multi-platform app development. But I dunno if I can bothered to look at Dart when it's a pretty niche language. In the past I've used React Native so I would probably stick with that.
>>
File: 1692993474406353.jpg (37 KB, 600x600)
37 KB
37 KB JPG
>>103152115
>Spring should be used when you hate yourself
>99% of the web devs should use Spring
>>
>>103145676
https://trends.builtwith.com/websitelist/Express
hhhmhh...
>>
>>103150744
sorry if i came off as too harshly
i just wanted to share my opinion but clearly did so in bad way.
>>
>>103140672
it's everything wrong with Java jeetery reflection bullshit to the max.
>>
>>103152589
it's okay for the simple front-ends I make, certainly more ergonomic than JS. Pretty good and easy-to-use tooling, too.
It's probably my favorite OOP language.

I only learned it because of Flutter, and because there's a Clojure-to-Dart compiler. My strategy is to be very good at using Clojure and then have some knowledge of the languages it compiles to (Java, JS, Dart) so that I can use those ecosystems effectively.
>>
>>103154516
oh don't worry about it

I do know it looks ugly, that's just not much a factor for me
>>
>>103154951
>>103154516
I can't believe I'm witnessing this on /wdg/, are we finally healing?
>>
File: poo kids.png (2.29 MB, 1489x1534)
2.29 MB
2.29 MB PNG
>pajeets le subhuman and retar-
>>
>>pajeets le subhuman and retar-
>poo kids.png
what did he meant by this?
>>
Thoughts and recommendation for BaaS (Backend-as-a-Service)?

While I was testing my app last month, I went over the limit with Firebase free-tier. Maybe I should deploy it with the data, since it's only like 5mb json.
>>
>I used Elm in production and it cost me my job
https://youtube.com/watch?v=RFrKffrKCeU
>>
>>103156262
average elm developer
>>
File: .png (307 KB, 2155x1644)
307 KB
307 KB PNG
>>103156262
I remember watching this video but seriously, if it doesn't cost you your job, it will cost you your career
>>
Scenario:
>full-stack typescript app
>backend is fastify, frontend is react, there's also a third "common" module
>I wanted strong typing for API requests without needing to duplicate anything or use codegen
>for now the frontend is the only consumer of the backend but this might not always be true
I've implemented the following:
First, within the common module, I've used typebox to describe the request and response types of each endpoint.
const Todo = Type.Object({
id: Type.String(),
content: Type.String(),
});

const GetTodosRequestSchema = Type.Object({ year: Type.Number() });

const GetTodosResponseSchema = Type.Object({
todos: Type.Array(Todo),
});

Second, also in the common module, I've described each endpoint in an object like
const getTodosEndpoint = {
method: "GET",
url: "/get_todos",
request: GetTodosRequestSchema,
response: GetTodosResponseSchema,
}

Now I can do something like this in the frontend:
const {todos} = await api.makeRequest(getTodosEndpoint, { year: 2024 })

The parameter and return types are correctly inferred.
Server-side I also get full type safety, and because I used typebox rather than just typescript types I can also easily validate that requests and responses actually fit the type definitions.

I'm reasonably happy with this- it works well and doesn't feel too over-engineered. But I do wonder if I'm reinventing the wheel and should be using some well-known library. I've looked at various graphql and openapi-related stuff but it all feels very heavyweight and mostly seems to involve code generation.
Anyone else using full-stack TS, what do you use for this?
>>
>>103135824
i wouldn't trust some of the new things added.
it's all shit that 37signals wants and needs because of 37signals' technical direction.
>>
>>
>>103149954
Point, but before updates sounds like a good time to do backups anyway in case something randomly fails later unrelated to the migration
>>
Is Rust a bad idea for a backend web server?
>>
My company is giving me the newest Mac Mini. I honestly would have preferred a laptop, but could be worse i guess.
>>
>>103158920
potentially the fastest sorting algorithm if the Gods find favor in you
>>
>>103161264
it's a good choice for parts that need extremely low latency.
If you look at the crypto exchange Kraken for example, they use Go for their normal user interface and Rust for their trading API
>>
File: IMG_20241112_020830_693.jpg (158 KB, 1280x720)
158 KB
158 KB JPG
I wish I'd started learning web/gamedev when I was much younger. Nothing else has brought me this sort of joy in my adult life. Im making TCG right now with sveltekit and javascript just to see if I can pull it off, so far everything has been working as intended.
>>
>>103162019
Have you done game dev with proper game engines? I've never done game dev myself
>>
File: claude.png (12 KB, 255x152)
12 KB
12 KB PNG
this is a fresh tab
what could these retards possibly be doing here
>>
whats that shitty indian site with "full stack webdev" courses for purchase and stuff like that? One that gets posted here a lot as a joke
>>
>>103163587
offloading as much of their server computation onto you as possible, what do you think?
>>
I can't solve steams Hcaptcha. 2captcha gives me a token but when I submit it the captcha image grid still pops up. Capsolver doesn't work by editing the dom for some reason so I load the extension via selenium and it solves it, the captcha checkmark appears but when I submit the registration form it tells me the captcha is invalid. This is infuriating. My code was working just fine before they switched from reCaptcha to this shit. There are a billion bot accounts on this app how is everyone able to solve this but me lol
>>
>>103165501
>My code was working just fine before they switched from reCaptcha to this shit.
you did it once, and that is based, be even more based now, and do it again
>>
>>103165501
Based Steam, spammers BTFO
>>
>>103165610
The problem is that I don't really see a path forward to getting it to work. Capsolver has the option of clicking the images manually instead of inserting the token but it doesn't work. There are a billion captcha solving services so I'll try some others I guess.
>>103165624
I'm not a spammer, I need a lot of accounts so I can fetch user inventory data through the game client for a project I'm working on.
>>
>>103163587
React
>>
>>103165501
never used captcha solvers but this sounds like what happens when your requests are missing parameters, cookies and shit
I would record a normal login in the network tab and see if anything's missing
>>
>>103166157
I'm getting the same error now when manually solving it in my own regular browser lol no idea wtf is going on. it's a problem for tomorrow me this is too frustrating for right now.
>>
File: file.png (543 KB, 755x525)
543 KB
543 KB PNG
>>103166369
>>
I explained what I'll be doing specifically but he keeps going on and on about stuff I won't be doing, I don't get it. Oh well
>>
>>103166473
it's just mental illness, let him seethe, it's his drug, literally
>>
>>103140672
I hated my short encounter with it too. I've worked on backends in Node, Go, Flask, Laravel, and this is the worst shit I've seen
>>
>>103163587
>next
what were you expecting?
>>
What are some cool things I can do with html5 and web audio api for a uni project?
Some people are doing a drum machine/synthesizer or virtual instrument for example, but it sounds boring
>>
>>103167463
hahhaa, cry cry cry!
>>
>>103167484
You're crying? Yeah because Steam BTFO you. Pretty pathetic that you're still crying about it.
>>
>>103167615
cry MOAR
>>
>>103167624
Why are you crying more? Just accept the fact that you got BTFO by Steam
>>
>>103168687
keep crying bitch boy
>>
why does this thread keep dying? who or what killed this general? I remember it being very active just a few years ago
>>
>>103168700
The bitch is you lmao, still crying because you were BTFO by Steam
>>
>>103169143
keep the tears coming, fag
>>
I want to build a wwbsite for anime, podcasts, and other hobby like activities. Would wordpress be suitable for this or what do I need to make a website for this type of hobbies?
>>
>>103169259
>podcasts
just hosting them or streaming them in real time? If just hosting them, wp will do, if live streaming that then I wouldn't even know where to begin with 2bh
>>
>>103169616
Yeah just to host. Ok will start researching wordpress.
>>
>>103169645
>>103169616
>>103169259
was just thinking about it, and there might be an option where you could embed a third party live stream, like twitch or yt, but idk if there are platforms offering that, but if they are yeah, go for it

all in all wp is web for button clickers, but there's also space for people who want to code their website in it, kinda strange 2bh
>>
>>103162488
I've tried unity, but it felt too bloated for the simple types of games I like to make. Beyond that just godot and coding simple games in Javascript. I also write telegram bot games based off /commands. Game dev is very rewarding if you keep your ideas simple and don't expect to make a masterpiece in your fist few months/years. I prefer to write everything in javascript and make projects web based since it is the most accessible medium.
>>
>>103168832
The covid era bubble busted and companies do not need apps to sell their products anymore.
>>
>>103171096
many companies were firing non stop, mine was hiring non stop, seniors and mids. lately mine relaxed a bit in that regard. people are saying that the economy is now looking up, so maybe that'll help
>>
I cannot get my head around TS/JSDoc and the complextiy of JS types. Anybody care to help? I feel like this should be easy to fix, just map the list to an object where each prop is exactly the value. That way I should be able to access the object kind of like an enum, but it is not working. At least for the type checker. It does the thing in the IDE. I simply do not get it.
// @ts-check

const CountryList = /** @type {const} */ ([
'DE',
'UK',
'US'
]);

/** @typedef {(typeof CountryList)[number]} Country */

/**
* @type {{[K in Country]: K}}
*/
// @ts-ignore
const Country = Object.fromEntries(CountryList.map(i => [i,i]))
// MUST use @ts-ignore because of this error...
// ts: Type '{ [k: string]: "DE" | "UK" | "US"; }' is missing the following
// properties from type '{ DE: "DE"; UK: "UK"; US: "US"; }': DE, UK, US


example1('DE')
example1(CountryList[1])
// ...this however is working fine, so the "type" is correct?
example1(Country.US)

/** @param {Country} country */
function example1(country) {
console.log(`${country} is rotten to the bone`)
}
>>
>a day after, he's styll crying
based of the most retard kind
>>
File: code.png (52 KB, 878x372)
52 KB
52 KB PNG
Java is stupid
>>
>>103130660
I don't want to ask HN or Reddit for this cause there's tons of astrosurfing/shilling so I'll ask here: What's the general impression on websites like codecrafters and boot.dev? I can't justify the price tag but maybe I'm missing something. Maybe it's just for retards who lack self-discipline.

>>103152106
If your goal is to prepare for interviews, you need to invest more time whiteboarding before you code anything. Trial and error won't fly in any company that's worth its salt.
>>
>>103168832
I've been busy learning and I found browsing /g/ to be an impediment to proper learning. There are too many nocode NEETs regurgitating opinions about things they know nothing about or actively trolling. I still pop back in here from time to time to see if there's anything interesting from the small group of people here that do care about professional and intelligent discussion.
>>
>>103173578
Same is true for Reddit, Discords, etc. because retards care more about looking smart than being actually smart.
>>
How smart is V8? Will this merge the arrays every single time if they never change at runtime?
export function existsIP (target) {
return [...IPlistA, ...IPlistB].some(ip => ip === target);
}
>>
>>103174235
Merge them at the start, then you dont have to worry about it and you have neater code.
>>
>>103173817
I was top mafs at school, while being thugish, even smoking hash, gurns out that life-wise I was retarded for most of my life. You can have a retard that knows how to adapt to life. And a genius that fails at life. It's a bit relative.
>>
>>103172641
You're still crying after a day? You really are a retard
>>
File: react.jpg (117 KB, 1536x864)
117 KB
117 KB JPG
How can I better optimize the following situation in React? I've tried to simplify my example:
>I have a <Table> component that dynamically renders 2000+ <Row> components. Each <Row> contains a text input.
>State is kept in the parent <Table> component. The state is an array of objects where each object corresponds to one <Row>.
>On changing text in a <Row>, a callback is fired and we update state in the parent <Table> (we have to use a spread operator for the other 1999 array items in the state setter).

I'm using memo() on the <Rows>, but even then each keystroke is causing a total render time of 15ms (probably due to the sheer number of them). What are my options? Some thoughts I've had are:
>Debounce the input
>Maintain state in each <Row> instead of in the parent <Table>. I would have to use callback refs but this seems like the best solution, since each <Row> doesn't need to know about state in other <Row>s.
>Move state to a library like Redux (I don't think this would make a difference)
>Virtualization (please no)
Thanks anons who know more about React than I do. It's kind of funny because this entire problem would be nonexistant with vanilla JS, but I'm being forced to use React here.
>>
>>103176775
First thing I'd do is consider memozing the table rows using useMemo or wrapping it in React.memo(...).

Then I'd consider using list virtualization with one of these libs:
https://github.com/petyosi/react-virtuoso
https://tanstack.com/table/latest

Then I'd consider also trying out some state management like Zustand but only if re-renders from unrelated state updates are unavoidable (as Zustand has selectors).
>>
>>103177394
Also I'd consider using `useDeferredValue` in the parent table component.

Also I'd run the react profiler (react devtools extension) to see what's actually rendering on the keypress to get an idea of what I shouldn't be re-rendering.
>>
>>103176775
When your <Table> re-renders, it has to evaluate the memoized value of each <Row> to check for changes. I suspect this is what causes the "high" rendering time.
>>Debounce the input
Probably good enough for your use-case.
>>Maintain state in each <Row> instead of in the parent <Table>.
Pretty elegant solution as long as it doesn't mess up your state/interaction logic.
>>Move state to a library like Redux (I don't think this would make a difference)
Correct, wouldn't address the issue in any way.
>>Virtualization (please no)
As long as the initial render isn't sluggish you won't need it.

>>103177412
Pretty sure useDeferredValue() wouldn't fix anything here because it would still re-render the <Table> on keypress.
>>
File: buildanything.png (459 KB, 3976x1902)
459 KB
459 KB PNG
.NET 9 has been released

Thoughts?

https://devblogs.microsoft.com/dotnet/announcing-dotnet-9/
>>
>>103139222
React Hook Form is pretty nice
>>
>>103178217
>both the Xbox and Copilot teams have integrated .NET Aspire into their existing services
I never, ever want to touch this technology
>>
which company should i buy a domain from?
Name Cheap or njal.la?
i got these suggestions from luke smiths landchad shit.
>>
>>103178809
Imagine the code.
>>
I'm looking to write a very basic, big-button web app for the elderly.

I want the tech behind it to be dead simple, something I can host in my closet.

I am thinking PHP or Python, with templated pages... not interested in a gigantic web framework like React for this project.

Looking for tech stack advice: thoughts on HTML+CSS+jQuery+python+postgresql?

again i am trying to keep the tech stack as minimal-maintenance as possible. if i knew php i'd do that - like levelsio or something lol
>>
>>103178217
what happened to .NET core?
>>
>>103179037
>The "Core" branding was abandoned
https://en.wikipedia.org/wiki/.NET

The new versions are .NET "core" but they don't use that branding anymore.
>>
>>103178819
Get one from tucows aka hover
>>
>>103179189
classic microsoft

thanks anon
>>
>>103171887
it won't, at least in the US. Even when the economy improves (we're gearing up for a recession in 2025 according to economists btw) the learn to code meme changed the industry forever, there's no going back
>>
>>103179025
bump
should i just use asp.net aspire
>>
File: pachirun.png (298 KB, 567x705)
298 KB
298 KB PNG
I can make a request to my backend from my frontend with axios just fine, but when I hot reload my frontend I get a 401 error when I make the same request. Do you guys know why that could be? I have to log in manually each time for it to work again and that's a bit of a hassle
>>
i have spent like three days trying to refactor my passport auth flow i'm ready to kill myself
how the hell do you get a redirect url to work after logging in? i'm saving it in a session, it's there on the verify callback for the strategy, but not there when it hits the callback end route.
how the fuck is this the standard for node? it should be as simple as pointing to an identity provider and them giving you a profile and anything else you want to do in your app after
>>
>>103180135
nevermind I figured it out, turns out I had written my axios instance's name wrong in the interceptor
>>
>>103179025
ASP .NET Aspire
>>
any americans use hetzner for hosting? how are they? im considering getting a vps with them for my pet projects/bluesky, but ive heard that a lot of people have had issues with their kyc and get cockblocked by them.
>>
Anyone know why frameworks use SQLite as the default db instead of MySQL? I never cared to learn it, and always replaced it with MySQL just because that's what I know.

Am I missing out or something or am I thinking about it too much because the current db that I am using just werks
>>
>>103181379
POOPtard frameworks introduce a ton of n+1 queries with their ORMs so they need sqlite to hide the problem until youre too far in to know any better.
After that you do a costly rewrite or just switch jobs.

>>103130660
https://www.rfleury.com/p/untangling-lifetimes-the-arena-allocator
>The Enforcement Bureaucracy: Garbage Collection

>Another attempted solution is garbage collection, which is a large enforcement structure that tracks everything and interrupts productive work in order to perform its function (much like a government agency, except in this case, the garbage collector is ostensibly doing something approximating useful work—although both function by stealing valuable resources involuntarily).
Holy based. C niles think like this??
>>
File: 1000632367.jpg (190 KB, 1804x1460)
190 KB
190 KB JPG
>>103130660
Instagram but it's an Android app by Google

Rate this concept design if you don't mind. What would you change?
>>
>>103181522
Speaking of C and memory, apparently some guy is making a memory-safe fork of C:
>TrapC code resembles C/C++ code, but, according to Rowe, it's memory safe.
https://www.theregister.com/2024/11/12/trapc_memory_safe_fork/
>>
>>103181853
Spacing is completely off. There's more space between a post and it's author and likes/comments than there is between posts for example
>>
>>103181853
I would change everything. It's a waste of space, overdesigned and borderline unusable. You're barely showing any actual content.
>>
>>103181379
probably because its dead simple to set up and run on any machine
>no db server needed
>can be implemented in a single file
>db files are portable
>>
I want to scratch an itch and make a web service on flask+python. I need some ideas though as I have no idea at all right now. What should I make?
>>
>>103183741
crud reminder app :)
>>
Longshot, but does Mike Fährmann / mikf from github lurk here?

Trying to get in touch with them, and considering their avatar on some places and some of the gits they contribute to it seemed like they might hang around on /g/
>>
>>103183741
https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
>>
>>103183741
islamic prayer time ical service

user adds ical “calendar” url to their google calendar, what gets added is a dynamically generated set of events , 1 hour blocks for each prayer time, different calculation methods are selectable via url arguments
>>
File: go.png (83 KB, 873x753)
83 KB
83 KB PNG
Real niggas write their front-ends in Go compiled to WASM

https://github.com/reusee/domui
>>
>>103181215
Linode, can get a server in singapore
>>
>>103181215
>ive heard that a lot of people have had issues with their kyc and get cockblocked by them.
Surely they would only block you if you're doing something illegal or immoral
>>
>>103181215
leaf here, tried to sign up and they wanted either a $20 deposit and/or my ID
I was already hesitant because of this https://en.wikipedia.org/wiki/Hetzner#Incidents
so I decided to stay with OVH for now

but while writing this I had a look at their prices again and fuck it looks good.....
>>
>>103133383
Neocities is by far the best
>>
>>103133383
odysee/LBRY lets you host html sites, looks like this:
https://odysee.com/@cheatsheets:a/fizzbuzz:c
>>
>>103181215
if kyc or censorship is an issue for you, check out flokinet.is
they hosted a white nationalist alt-chan for several years and never gave the admins issues
>>
In VS Code I can get gopls (Go language server) to respect project-specific settings. I can't get it to work in Sublime. Fuck's sake.
>>
>>103187587
yeah the pricing was appealing, but reading that people would have their applications get hung up for days and then get blocked didnt seem very friendly, particularly when im in the mood to get something working. i went with buyvm and the server was up in about 5 minutes after giving the same amount of personal info i gave porkbun. requiring a deposit or an id is kinda nuts to me.
>>
This guy again - >>103185819

I was messing around with Go and WASM and the Go standard library actually has a package (syscall/js) for interacting with the DOM from Go code

This adds a <b> element to the document body:

doc := js.Global().Get("document")
b := doc.Call("createElement", "b")
b.Set("textContent", "Bold text")
doc.Get("body").Call("append", b)
>>
>>103187953
>sublime
anon, I...
>>
>>103188745
I'm on a shitty computer and VS Code is a resource hog. Sublime is much lighter
>>
File: emacstermux.jpg (558 KB, 1080x2400)
558 KB
558 KB JPG
>>103188761
if performance is the issue you should check out vim or emacs, they both run on my phone just fine
>>
>>103188889
Yeah I use Vim for quick edits. I tried installing language servers for it. I got the TypeScript language server running fine. I haven't got the Go language server running though and I'm too lazy to figure it out.
>>
>>103188889
Also can I ask why did you choose to use snake case in JS instead of camel case? It's just an unusual choice
>>
does cloudfare give you unlimited bandwidth for a website
>>
>>103189063
I haven't used language servers with vim. I think AstroNvim comes preconfigured with that sort of stuff.

Newer versions of emacs come with an interface for lsp servers (eglot) that pretty much just werks as long as you have the language server installed somewhere on your $PATH, although I had to disable a few features for the Dart language server because it kept crashing emacs.

>>103189078
i didn't write that code
>>
>>103188528
Nightmarish
>>
>>103189063
There's lazyvim which in theory will let you get those things working pretty easily since all you gotta do is press 'x' on the greeting window and select which languages you want. If ram is an issue I found that blink.cmp uses less memory than nvim-cmp
>>
>>103188528
>>103189379
it's pretty much imitating what js does
>>
>>103181853
pretty cool in the looks department 2bh, probably not so much so in the ux one
>>
>>103181853
Accurate to how much space google wastes on their design
>>
File: tits.png (2.48 MB, 1440x1440)
2.48 MB
2.48 MB PNG
What is the best resource to learn CSS? I know the basics somewhat but i need to step up my game as it's clearly my weakest part on the full stack.
>>
>>103189318
>>103190935
Interesting thanks maybe I should look at those things
>>
>>103192295
I guess it's just calling JS from WASM code

>>103189379
I think it's cool. WASM is meant to be faster than JS for certain CPU-intensive tasks, so you could do a bunch of processing and then make calls to the DOM to change the page.
>WebAssembly (Wasm) typically outperforms JavaScript for specific tasks
https://www.sitepoint.com/webassembly-javascript-comparison/
>>
>>103192969
>learn
idk, build simple layouts then more complicated ones
>resources
mdn, css tricks w3schools
>>
>>103193216
>I guess it's just calling JS from WASM code
can somebody here explain how that works? never got into wasm, but what I thought it did was
>js passes shit to wasm
>wasam processes and returns data
Is that correct ore is there more than that?
>>
>>103194799
It looks like WASM can import stuff from JS and export stuff to JS, there are details here:

https://webassembly.org/getting-started/js-api/
>>
now that ive been at my first webshitter job for a while:
css isnt bad, its the shitty bloated ass css frameworks companies shit up their projects with
>>
>>103195154
>>
>>103176775
>>103177394
>>103177979
If anyone cares about the resolution for this:
I ended up moving state down, so that each <Row> maintains its own state. The <Table> can then read the state of its child <Rows> using a combination of forwardRef / useImperativeHandle.
This worked perfectly, and keystrokes only fired a single re-render (the <Row> in question). However, it feels really odd in React to pass state up the tree instead of down. I imagine Solid / Svelte / Vue have better ways to handle this.
>>
>>103195889
Care to explain why this would not have been a problem with vanilla?
I mean to me react always feels like this, especially when dealing with lists. Like, there is nothing that is easier than working with a list of html elements, adding, removing, switching them... but react always makes lists one of the prime examples of things it supposedly makes easier and frankly, I don't get it.
>>
So is Java or C# better for the international market right now?
>>
>>103196387
>Care to explain why this would not have been a problem with vanilla?
Because vanilla DOM selectors let you arbitrarily grab elements from wherever. You don't need to pass props down a tree, you don't need to control your inputs with React-level state, etc.
There's a tipping point where React becomes a better choice if the app has a *ton* of reactivity (for example, suppose you needed the ability to dynamically add / remove / move list items, and also have other things respond to those operations). But for my task, that wasn't the case. I got forced to use React because it was an SPA.
>>
>>103197420
europe is very big on c#
>>
>>103195154
Tailwind is the only CSS framework that should ever be used. There is no SPA or site that benefits from having full blown component presets, it only makes it an absolute clusterfuck to manage when you inevitably have to change something at the request of a client or the requirements of the SPA/site. Any benefit derived from not having to do the 10 minutes of work styling a component entails is completely negated and often not very far into development.
>>
>>103189318
Make a page, fill it with fake data, use a lipsum plugin or whatever and throw it into the components, then style it vanilla, don't use any framework, don't use any resource but MDN. No AI, no abstractions, no shitty tutorials (unless as a very brief overview), no youtube videos. Figure shit out on your own, including responsiveness. The only way to properly understand any core tool in your chain is to remove the abstractions around it and practice using it.



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