[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: L10T351.jpg (61 KB, 480x659)
61 KB
61 KB JPG
>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: >>101442736
>>
>we push on save
that should not be a meme.
>>
File: Screenshot (59).png (240 KB, 1920x1080)
240 KB
240 KB PNG
in almost 40 years ive been alive that's my biggest achievement yet. lol. I don't even know big 0 and I haven't even tried... Probably nobody bothered to solve it only reason i got 100.
>>
>>101491567
I do Leetcode sometimes. I tend not to care that much about performance, as long as I have a solution that works. Although it can be interesting seeing what techniques people use to get very fast solutions.
>>
Is there somewhere decent I can learn how to use wordpress? I work for a small plumbing company and the boss hates the wordpress site the local tech company made for him. I don't really understand how it all works either, but it seems to be the standard. Html/css seems very simple by comparison.
>>
Question for all currently employed web devs: what is it like working as a web dev? Pls go into detail I'm curious, I am interested to go into the field myself.
>>
File: file.png (152 KB, 1508x691)
152 KB
152 KB PNG
thanks oop and skill issue lol
>>
I will answer your AWS and SQL questions until I take a nap as I was out very late last night.
>I've been reading and reading and reading, I don't know what to read to learn more
don't. build.
>Sell me on using AWS vs a VPS
I'm not a salesman and you haven't given me a use case.
>>
>>101493317
Hello AWS/SQL anon

How do I get more energy for programming things which I may run on AWS? I find myself with little energy these days... maybe if I did more exercise then I would be in better shape and have more energy
>>
File: file.png (370 KB, 600x1056)
370 KB
370 KB PNG
So the stupid interviewer cced me by mistake, yet I'm the unqualified one, fuck this market.
>>
>>101493359
>late for meeting
>typos in resume
Get fucked, brownoid.
>>
>>101492540
Depends on what you wanted to do, at least the docs is good enough (rest api). ymmv though, since wordpress can get really messy.
>>
>>101493349
Some people's energy is like a battery, some is like a muscle. You need to figure out which you are. In either case, weightlifting and an appropriate amount of cardio increase the capacity. Diet probably has the largest effect, with improved sleep flowing from both.
>>
>>101493455
Yeah I probably should improve my diet and exercise more. Thanks.
>>
>>101493359
So let me get this straight
>your CV has typos
>you were late to the meeting
>you were unprepared for the meeting
>you were shit at SQL
>you're cocky
You absolutely deserve to fail every job interview if you treat them all like this
>>
>>101493949
There's a difference between knowing the path, and walking the path. Almost everyone has the knowledge but not the will.
>>
>>101490754
react question, is there a use for useCallback besides being used with React.memo or useEffect?
>>
>>101494224
>useCallback
>like what else are you doing with a callback?
just react things
>>
File: IMG_0103.jpg (31 KB, 656x679)
31 KB
31 KB JPG
I made a chat app and I added a dalle3 api so users can send ai generated images. If you think about it i made something more advanced than whatsapp and other chat applications.
>>
>>101493359
>>101493408
>>101493967
>is a shitty applicant
>blames the market
Im thinking the layoffs were a good thing, its filtering out retards
>>
>>101494545
Please link it here so we can try it out
>>
>>101492540
it just normal blog system, and you write formatted text like any word processor afterall. Best pity is you could find good theme/plugins
theme and plugins system is very tricky, dont touch it if you dont have any PHP skills
>>
>>101492540
What does your boss hate about the WordPress site?
>>
>doing app academy open
>have to slog through css shit

I really really really don't like fucking around with css , is this something i can avoid in a career. I find no joy in this type of programming
>>
>>101496373
and yes I know about bootstrap but im trying to do these tasks as written and I dont want to skip anything

css is poor man's programming, shit is aids
>>
>>101496702
all I know is that everyone in /g/ that picks up web dev gets frustrated with css, I got lucky cause I got taught css, so it's pretty straight forward to me, just check csstricks entry on flexbox, do that forg grid or flex garden or whatever the names where, and most of all build real world inspired layouts, so you'll meet your goal, knowing how to build real world layouts
>>
Please give me an inspirational idea for a new side project
>>
>>101496373
bro you aint getting a career, lmao
>>
>>101496910
Its not complicated I just have zero interest in it. Its not fun, there is nothing redeeming about it.
If I found it fun I wouldn't mind doing practice for it

>>101499056
I don't need webdev I'm already an engineer, I just have delusions I can career switch with enough effort
>>
>>101499625
You don't need any css at all if you're fine with it looking like the late 80's.
>>
>>101499691
I get that, I just want nothing to do with the visual side. Again I know there is bootstrap type stuff but even then I just can't stand dealing with that shit . Connecting code to graphical design feels miserable to me
>>
>>101499739
Then drop the web course.
>>
File: clojurescratch3.jpg (181 KB, 788x735)
181 KB
181 KB JPG
>>101490754
Do you think it would be better to put each element into an SVG?
Using CSS divs and spans right now
>>
>>101496086
i don't know and he can't explain it, but the site is clusterfucked and slow because we've had like 12 different people/companies/seo faggots working on it.
>>
>>101499739
Yngmi if you think you can do only what you want to do
>>
>>101500675
thats what life is about anon
>>
>don't do webdev for like a decade +
>come back because bored
>JS has all of the QOL shit that we used JQuery for
>entire sites are now constructed from JS fragments to build the entire DOM
>html isn't even used (technically)
>JS frameworks rebuild all of the browser's functionality in JS, rather than just using the browser which is built in c/c++
So I'm guessing these JS frameworks came about while JS was still doo doo and gay and we're going to just shift back to regular SSR and JS once people realize how easy it is now, right?
>>
>>101490754
any ai tool to generate web designs? I want to practice my front-end but i'm no designer
>>
>>101490754
>Graduated last year, had Amazon internship
>Got a few interviews at first, don't even get callbacks now
>Been doing other stuff to make money since I need money
>Basically forgotten all my python/C lessons, can't even remake the projects I had to do for grades without looking everything back up
I recently started The Odin Project just to hold me over but at this rate I'll be a mechanic and making websites for leisure.
>>
>>101501082
No, you vill import react 20 times in your npm modules and serve 100 mb of server components and you vill be happy.
>>
Why does this thread keep getting abandoned until it falls off (or nearly falls off) the catalog

This seems to be a recent phenomenon in the last few threads
>>
1. courses+textbooks
2. step by step project
3. your own projects made from scratch by reading docs

Is this the fastest way to learn anything tech related?
>>
File: file.png (162 KB, 1882x1040)
162 KB
162 KB PNG
Hmm, what's wrong here? You guys have any idea?
>>
>>101504933
>step by step project + tutorial/docs
>personal project + tutorial/docs
Books only worthwhile when the docs or tutorial is bad, or you want to study about software architecture, generally something more indepth. And it's always good to familiar yourself reading docs as a beginner even though it can be intimidating.
>>
File: 1721411517131025.jpg (104 KB, 764x720)
104 KB
104 KB JPG
yab, it feels real good getting praised for the work done
>>
>>101504186
probably summer vacations
>>
>>101505262
bro, for fuck's sake, stop expressing your emotings through horny anime girls, don't fag up the thread
>>
>>101494545
instagram has had this for months
>>
What code do I need to display data using an api on my web app? What role does json have regarding apis?
>>
>>101499625
>doesnt want to learn css
>wants a career in web dev
be sure to tell them that in the interview.
>>
>>101505860
>What role does json have regarding apis?
it's used to transfer the objects that DB/API response contains, think like this:
https://jsonapi.org/examples/
but way more objects contained in arrays (usually)
A jSon object you just parse it and have an amaxing data structure to display/iterate/manipulate at your will
>it's there something better
maybe, but I haven't seen that yet
>>
>>101505205
I've not used Angular so I don't know

Is Angular alright to use?
>>
>>101505205
1. idk
2. maybe
. . you're lacking an import:
https://stackoverflow.com/questions/40331549/cant-bind-to-ngforof-since-it-isnt-a-known-property-of-tr-final-release
https://es.stackoverflow.com/questions/392392/cant-bind-to-ngforof-since-it-isnt-a-known-property-of-ul

Pro-tip: l2 google your error messages
>>
>>101505984
>Is Angular alright to use?
I used it, but to be honest I got hand held through the whole process, "taught", and yes it was pretty good experience
>>
File: 1460831204762.png (233 KB, 458x621)
233 KB
233 KB PNG
>>101505807
never
posting anime reaction pics is the epitome of being a 4channer, you have to get used to it
>>
File: file.png (121 KB, 1512x1048)
121 KB
121 KB PNG
>>101506044
>7 years ago
those answers are outdated. There's some new bullshit going on with "standalone components"
If I try to import it into product-list component, it fails, because it's not standalone apparently.
App-module.ts has this import though, so it should work?
>>
>>101506121
nah, it's troon status, rope
>>
>>101506167
and making that product-list component standalone breaks the whole fucking thing
>>
>>101506167
idk lol, good luck, what I'd do if I got stuck would be checking github repos and/or chatgpt
>>
>>101506188
chatgpt seems to give outdated answers. My course is outdated too lol. I guess ill look at some new github repos
>>
>>101506049
Fair enough, I just stick to React because it's what I know

But if a job wanted me to learn Angular then I'd learn it
>>
>>101506215
one of the strengths of react is that it's used almost everywhere?
>>
>>101506259
True which is why I just stick with that, but if I came across a job that wanted me to learn Angular then I'd probably learn it - as long as the job was decent with fair pay etc.
>>
>>101507139
makes perfect sense, not long ago there were talks about how angular was more "enterprise" or "batteries included" when compared to react. I wonder if they'd still claim that. I'm not one to make those judgements for sure, id I don't know react.
>>
>>101501082
>and we're going to just shift back to regular SSR and JS once people realize how easy it is now, right?
Not going to happen soon. People are absolutely deeply invested in this shit. At this point all of that crap is expanding. And people have developed severe "react brain" to the point where they absolutely forced to make every problem as complicated as possible.
>>
>>101501082
as far as I know (not much) SSR is the new cool stuff, with things like next.js + backend of choice, don't ask me much about it cause I sure don't know
>>
how stupid would it be to use a port forwarded file sharer that i made, to other people? its a dynamic IP so i dont really care if anyone has it but is there any other risks etc?
>>
>>101505873
I want some type of dev job but most of the tutorials online involve webdev stuff so thats why I'm slogging through it
>>
>>101508495
I learned CSS through using tailwind, then started using standard css and tailwind, now I only use tailwind for minor tweaks and protyping My point is, maybe this will work better for your learning process as it did with mine..Tailwind simplified most css commands into little parys like "border-2 p2 bg-red-500" that puts a border around our object, gives our object 2 padding and makes the backhround red. Alot simpler than writing styles and classes. Some people think its the devil, but many roads lead to flavortown.
>>
>>101508111
>how stupid would it be
Zero to CP in less than 14 femtoseconds
>>
>>101507975
its irrelevant even for SEO nowadays

people want fast reactive websites, JS is here to stay
>>
>>101508670
I'll look into it. this morning I decided to just embrace the suck and not be a giant pussy. Being able to do simple front end shit can't be that difficult to get the hang of once I remember the different css stuff.
>>
>>101508877
All you need to know is that middle and center are use for completely different things and depend on whether it's about the
main axis
or the
cross axis
, which of both can be fully perpendicular or even reversed correlated to your internet service provider
>>
>>101501082
you can minmax SSR and reactive components now with nextjs. All react haters will get the rope either ways
>>
>>101509075
or you can like not do that.
>>
File: comicsans.png (753 KB, 2404x1554)
753 KB
753 KB PNG
I just discovered something which may appeal to web devs who like web design

If you google the names of popular fonts, the search results will be shown using the font you googled. Pic related.

For fonts with ambiguous names (e.g. the font Georgia, which of course has a name that can refer to a US state or a country in eastern Europe), just add the word "font" after the name - so if you google "georgia font" then the results will be in the Georgia font.
>>
>>101508877
Thats a good mindset, recently i was forced to convert my game to the backend for security and Im actually making decent progress. I really really hated the idea of learning serverside stuff, this was the last thing I wanted to work on as I enjoy CSS and designing guis. Feels good when you finally getvit over with.
>>
>>101493359
Thats rough to read.
>fuck this market
We dont have much context, but the points listed look like pretty standard things : having a resume properly written etc
Of course, dont upload your cv or data here, but im really curious what kind of job you were applying to and what your qualifications are ? For such a fail to happen it mustve been a forced interview or you applied to something at random, right ?

I wouldnt just give up if i were you, rather
>breathe deeply, ask yourself "what do i want to work in, if not sql or software dev ?"
>ask family and friends/former colleagues about your cv and resume
>update these according to their input
...try and dont "SIGH...OH its finally over ? Yeah, yeah, thanks for the interview, cya" next time

Good luck anon
>>
I have 9 days to complete a web app and to complete a report on it as a beginner who hasn't touched web development in just over a year. How fucked am I rn if I still haven't started? Everytime I try to start I realise I don't even know how my app should look like and what functions it should have and realise how much I have to relearn to figure out the basics again that I give up and quit.
>>
>>101511175
w-why do you have 9 days
>>
>>101511175
What's the app?
>>
File: 1708097436867758.png (39 KB, 583x234)
39 KB
39 KB PNG
niggerlicious
>>
>>101511175
Post the requirements for the web app.
>>
>>101507351
Oh well, easier shit for me I guess.
>>101507975
>SSR is the new cool stuff
lol
lmao
>>101509075
>next.js
No, this meta framework shit is just mental gymnastics.
>have spa
>rebuild browser functionality in framework
>do it in a language that's slow
>do it in a way that allows numerous things to be fucked up (back button never fucking works, hard reloads fuck up EVERYTHING)
>back end state and front end state are independently managed, but supposed to be the same
>these are never kept in sync
>do this because "reusable components"
>look, I made a reusable button component!
Html is the reusable component...
Rather than admitting that promoting SPAs for the last 10 years was dumb they just moved the SPA architecture to the back end and pitched it like it was something revolutionary. You could just build and send html + the necessary JS from the server.

I came back to this shit because I wanted to see why such simple sites worked like absolute fucking trash and I think I have my answer. This industry is retarded and you're all being lead by grifting idiots shilling their stupid fucking framework so they can either keep their job maintaining it, get more funding, or in next's case, make a shitload of money because your only option to handle more than 5 RPS is to use Vercel and friends, which are absurdly overpriced.

The amount of buzzwords in this industry now is fucking crazy. I remember when node was getting shilled hard in like 2014 and they kept saying
>single threaded
>bro, it's fast because it's SINGLE THREADED
>and ASYNC
>1 thread, but it's a FAST THREAD
>it's fast because it only does 1 thing REALLY FAST
and so on. Most of you are retarded and I hate you for ruining the internet. Oh, and "serverless" isn't real lol.
>>
>>101514692
Yeah, it's a fucking shame. Especially considering the fact that the actual tech that we can work with now has become really powerful over the last 15 years. The web is a great platform, but it is getting fucked in the butt for no reason but stupidity on all accounts.
>>
How to get a job in React or Fullstack developer with React these days ?
I have been unepmloyed for 6 months I am fuming , what the fuck is this supposed to be ?
Just a couple years ago professor at Uni told me that programming is best job for the future. A few years into the future and I am fucking unemployed after 4 years of doing it professionaly .

What the fuck is happening ?
If you are going to troll this post I will find your IP and kys
>>
>>101514692
>>do it in a way that allows numerous things to be fucked up (back button never fucking works, hard reloads fuck up EVERYTHING)
This sounds like dev issue rather than framework issue.
>do this because "reusable components"
>look, I made a reusable button component!
>Html is the reusable component...
You don't understand what component-based design means
>>
>>101490754
>Americans think Bach is pronounced Bak just because there's a C in it
https://youtu.be/Qw09Cz3G8k8?t=12
>>
Would you guys rather work in react-native or an outdated proprietary language writing REST APIs if your end goal is back end + dev ops? React native is a transferable and modern language/framework but I don't want to work in front end, maybe just know enough to MVP, which I feel like I could learn in my free time or just hire someone to do if I ever get a startup going
>>
>>101504933
avoid books and courses as much as you can, they'll sap all your motivation
I tried to do fullstackopen for like a year and I would just get bored on the react part. Started writing back end stuff immediately and have made it way farther.
>>
MOZILLA YOU PIECE OF SHIT FIX THESE ANCIENT BUGS
https://bugzilla.mozilla.org/show_bug.cgi?id=1424328
https://bugzilla.mozilla.org/show_bug.cgi?id=764076
>>
>>101493359
go learn SQL, faggot
>>
>>101514692
>new stuff bad
>>
File: FN6eOjEWYA4K-Dx.png (702 KB, 600x847)
702 KB
702 KB PNG
I'm making a website that allows someone to search through text for thousands of videos. I have all 1,245 videos converted to .srt subtitle files.

What's the fastest / cheapest text search database I can use? So if a user searches a word / sentence like "mario" it would search and returns every quote found containing that string.

I've been using algolia to store the data so far, which has great search, but I've hitting the 1 million records free tier limit.

Can I savescum and rotate different algolia accounts?
Is there a cheaper DB I could use such as mysql or something else good for text searching?

I have a total of 2,096,997+ quotes from my 1,245.srt files, If I put them all in one Algolia account it would cost at least $798.80+ dollars : ( which I can not afford
>>
>>101493949
If you don't fix your diet/exercise/sleep you will get worse at everything, have chronic illness, and not be able to work as long to the tune of like 10-20 years. It's way more important than any tech job bullshit.
>>
Git

How do I merge two branches in Git ?
branch master
branch a
branch b

I need to combine branch a and b for branch ab.
>>
>interviewer sends online coding test
>css knowledge test, 10 min
>react knowledge test, 10 min
>create a simple react app test, 1 hr
>algorithm test to calculate the fare of a taxi system including distance, speed (low-speed adjusts fare), and time of day (fare adjusts at night), with up to 50,000 lines of input, and 100 tests

Well, that got ridiculous fast. Guess I'm not getting this one.
>>
>>101518175
frontend coding test*

I'm out of my league
>>
>>101518102
git checkout a
git branch ab
git merge b
>>
In my django backend i poll an api every second do stuff and save it in db with the included ORM using celery beat, is there a better way to handle such tasks at smaller intervals (like polling every 0.1 sec or as fast as the api can handle) than this using the orm?
>>
>>101518175
gib the test
>>
>>101493317
Any tips on how to deal with log aggregation?
I tried to use Cloud watch, but when you search for something, I could only get the lines with the match, I could not find the surrounding lines the context that I needed to debug. Any tips on how to improve log aggregation inside AWS?
I just ended up using FluentD and using that to write to a single aggregated lot file stored on EFS.

Also how would you do this for a AWS hosted K8S cluster, using their official Kubernetes solution.
I am planning to just self host a K3S solution on EC2, or use some other provider, instead of using the AWS K8S offering.
>>
>>101493359
>So the stupid interviewer cced me by mistake
This is excellent for you. This is top notch feedback. Work on these points for your next interview and fix the obvious errors, like typos and being late.

Also what is SQL testing. What do people generally do? Run the tests against a test or mock database?
>>
How much do you use ChatGPT or similar?
I did not use it much, but it has helped me quite a bit as a Stack overflow replacement when I need to do some frontend development, especially when I need to use some frontend only browser APIs or do some CSS styling.
It is pretty decent when I try to have it make some basic components for me that I can then later modify if needed. Since I am not a frontend developer, I spent too much time trying to figure out how to do stuff and fighting the browser, but the AI tools help to speed up that process. And as long as I keep it basic, it is pretty easy to validate if the response is good or bad.
What's been your experience with these AI tools? If I am Google and SO I would be a bit worried, as it is excellent at answering basic stuff.
>>
Who do I blame for Teams being slow and a memory hog? Do I blame javascript, node, TS, electron, or microsoft?
>>
>>101518738
Microsoft, of course. They're the ones who chose to create Teams with slow tech.
>>
>>101518708
I use it for dating advice, relationship advice, coding and debugging advice, cooking advice, as a friend that I can lean on during tough times etc.
yes im autistic
>>
>>101518738
yourself for using microsoft software
>>
>>101519125
>I use it for dating advice
did it work?
>>
>>101519140
it helps with confidence I don't know why. I think its because its like having a friend who validates you. I tell chatgpt that im a shy introverted boy, and it tells me to play to my strengths. And validation makes you feel less bad about your failures, so you can push through, instead of retreating into your den and isolating yourself.
>>
Psr\Log\LoggerInterface
https://www.php-fig.org/psr/psr-3/

Can it store logs anywhere with it? I'm learning symfony and tutorial asks me to install monolog pack, but if I can get away with basic logger(can I?) i would prefer to do that, since all those libraries are already a bit overwhelming.
>>
>>101519125
>AI friend, not even an AI girlfriend
Lol, well if it works for you then good for you.
Best advice about dating is to get some real friends first. If you can get friends and learn how to socialize with them, then take that knowledge and skills and apply it to girls, just with more gentleman vibes.
>>
>>101518738
Since MS basically own the entire JavaScript infrastructure chain I guess you can blame them.
>>
The following is a solved problem but many sites don't still don't get it:
Timestamps should be stored as a date-time ISO 8601 string in the back end
Timestamps displayed on the front end should be displayed in local relative time - clicking these should turn them into absolute local time stamps.
>>
(apart from cuckflare) how can i use a dynamic IP for a domain?
>>
>>101519462
They own major parts of it but not all of it. You can definitely have a completely Microsoft-free JS setup if you want.
>>
>>101519630
make a CNAME DNS entry that points towards your dynamic DNS (via NO-IP for example)
>>
>>101518708
I do not use it at all. All it does is repeat code it found on the webs which is either outdated or plain simply wrong. And for the few trivial cases which it does get right... that was solved years ago with templating shit.

So called AI is nothing but a hoax to make big money from big data
>>
>>101516251
>You don't understand what component-based design means
Pitch it to me then.
>>
File: 0_uPdUx0n3GLndmHRQ.jpg (26 KB, 1200x666)
26 KB
26 KB JPG
What were they thinking?
>>
>>101518102
henlo, my name is merge conflict, learn me
>>
>>101520301
qrd?
>>
>>101522074
React Router v6 completely changed how it works and requires you to configure routes outside of the rendering code. It feels very over engineered and is just a pain to use. The documentation also sucks.
I got fed up with it and decided to migrate to wouter instead. It's a blast how simple and nice can routing be. I have no idea how could they fuck it up so badly with RRv6.
>>
>>101519521
>Timestamps displayed on the front end should be displayed in local relative time
No! Bad dev!
This is why captures of major web events even up with a useless "4 months ago" when doing timeline research.
>>
>>101522176
why not use nextjs instead?
>>
>>101522226
Because I do not like opinionated frameworks.
>>
>>101522255
its open source
>>
>>101522351
So? If I were to fork it and change to my liking, I might as well just start from scratch since majority of nextjs features and practices are things I do not want in my code.
>>
>>101517054
FTS would probably work well. Either in Postgres or SQLite or maybe something else. I used SQLite's FTS5 extension to search through text from about 100,000 log files and it was easily capable of it.

I don't know if later versions of MySQL improved it, but their FTS was absolute dogshit when I tried it. You get the syntax but none of the speed
>>
>>101522466
>Either in Postgres or SQLite
nta, but this made me laugh, what I read
>either the enterprise spaceshil DB or the baby toy DB
>>
>>101490754
His name is pronounced bah and not as back
>>
>>101522795
in english, google translate pronounces as "back", see for yourself
>>
>>101522651
The "baby toy DB" let me search through 5+ GB of plain text in less time than it takes for you to be a judgmental faggot, so I'd say it worked well. Are you going to suggest he pay Algolia's retard tax of $800 instead of just using something that's free and probably faster? Unless he's dealing with lots of writes, which doesn't look like the case, then SQLite can handle it.
>>
>>101522795
>implying anyone gives a shit about the language of a dying country
German is only relevant if you're really interested in 18th century philosophy, WW1/WW2 history or in Egyptology. It's a dead language like Latin or ancient Greek, and arguing about the pronunciation of dead languages is dumb.
>>
>>101522373
why dont you? you could make the next big thing
>>
>>101522854
>>101522997
https://upload.wikimedia.org/wikipedia/commons/transcoded/a/a1/De-Johann_Sebastian_Bach.ogg/De-Johann_Sebastian_Bach.ogg.mp3
>>
File: american culture.jpg (75 KB, 828x664)
75 KB
75 KB JPG
>>101522997
If we only gave a shit about current things we would live in a """culture""" like pic related
>>
>>101523010
You must be either retarded or pretending.
I am not making a framework because I do not like using frameworks. I program things that are useful to me, not to be popular and make "the next big thing".
>>
>>101522879
I meant SQLite compared to PG, not to whatever other DB ur using, both of them are free btw, no reason to use PG if all you need is to make some queries, PG in the other hand will provide you with plenty of tools like triggers, views, functions and so on, but in most cases you don't even need those, you see, there's no need to be upset
>>
>>101523021
yeah in non english lang that nobody but you and maybe a dude or 2 in here speaks
>>
>>101523088
so you use open source software but refuse to give back so you can feel "cool"?
>>
>>101523188
>I program things that are useful to me
>>
>>101523209
how is that giving back
>>
>>101523456
By making projects you actually have use for, you are much more likely to create something that is useful, working and maintained. If you want to give back, this is the way to go. Just aiming for making "the next big thing" is how you end up producing nothing of value.
>>
>>101523160
>tools like triggers, views, functions and so on, but in most cases you don't even need those
Actually, SQLite arguably supports all the things you listed. Only arguably because it doesn't have stored procedures and such, but you can define functions in your host language (or in a C extension) and register them with SQLite. My "larger" project I used to work on ended up using all of that including a custom C extension, plus window functions, json functions, CSV parsing, FTS, and other stuff that feature-creeped in over the years.
Postgres obviously has more stuff than SQLite, but the gap is... not super wide.
>>
>>101519278
The interface just defines how the logger should be talked to. You need to use a package that satisfies the interface. Monolog has been good in the past. You can literally just write your own implementation that does nothing more than print to a file though. That's the beauty of just defining the interface - you can do it simple and dumb now and get away with it.
>>
>>101522651
>>101522466
>>101517054
I was gonna try elasticsearch
>>
File: 1661620191653659.jpg (29 KB, 600x733)
29 KB
29 KB JPG
>>101490754
I'm currently learning web dev so I can start up my own imageboard/forum with functionality similar to the dead nintendo social media miiverse. I've currently finished learning basic HTML and i've been making a simple practice website on neocities. Should I continue pursuing this idea or is simply just too ambitious and autistic?
>>
>>101501082
The future of interactive sites will probably be client side rendering, because it makes things simple for rendering custom stuff with & without the server. For blogs, anything works.
Big frameworks though? Bleh
>>
>>101523961
>simply just too ambitious
Yeah, that's not a good first project. Just tackle it one thing at a time, anon. You'll never be good at something unless you're bad at it first.
>>
>>101523961
many anons have built 4chan clones, if they could, so do you
>>
>>101523961
a miiverse clone is very doable but as other have said you need other smaller projects before that.
>>
File: 1679735942832221.jpg (51 KB, 680x657)
51 KB
51 KB JPG
Need to learn:
>TypeScript
>Vue 2 and 3
>Nuxt.js 2 and 3
>Prisma
>GraphQL
In like 2 weeks.
Is it feasible?
>>
File: 4chan hiccup.jpg (796 KB, 995x2041)
796 KB
796 KB JPG
>>101523961
I would do some smaller projects first to gain experience, but in principle it's not unrealistic at all for one person to write an imageboard. The devops involved in making it secure and reliable are probably harder than the actual programming.

I myself have written a 4chan archiver, and picrelated is pretty much the entire logic involved in assembliing a thread in HTML format after loading its posts from the db where I dump the JSON data from 4chan's API.
>>
>>101524655
>I myself have written a 4chan archiver, and picrelated is pretty much the entire logic involved in assembliing a thread in HTML format after loading its posts from the db where I dump the JSON data from 4chan's API.
cool what do you use it for mostly?
>>
>>101523548
post repo then
>>
File: 1672205865099.png (188 KB, 374x500)
188 KB
188 KB PNG
>>101506168
>>
>>101525092
Which one?
>>
>>101524243
>without the server.
There is no "without the server". You have no idea what you're even talking about.
>>
>>101524655
4chan has a a public api?
>>
File: 4told g.jpg (1.15 MB, 1080x2297)
1.15 MB
1.15 MB JPG
>>101524906
It has three modes: it can continuously archive all threads on an entire board,
archive just the threads you specified by their numbers and then shut down,
or monitor a board for a given search query and download matching threads (e.g. searching for wdg would download all threads of this general).

I use it mostly for image/video dump threads (especially from /wsg/) and sometimes to monitor the relevant boards for threads on topics or current events I'm interested in.
>>
>>101525989
im trying so hard to get to a point to be able to make something like that
>>
File: 4told optiond.jpg (859 KB, 1080x2067)
859 KB
859 KB JPG
>>101526078
it's not hard to get it at least functioning if you break the problem down into little chunks and figure them all out one by one.
How do I process JSON data? How do I figure out which files to download? How to decide when to stop monitoring the thread, when to request new data etc.? How do I parse command line options, log error messages, do database transactions, make a simple interactive menu, keep track of last-modifed timestamps?

The question is just how efficient and reliable the code is. My program doesn't have any serious bugs that I'm aware of, but I feel it's too inefficient with the amount of data it requests from 4chan's servers. If I ever release this thing, it'll only be after I optimize this.
>>
>>101525877
If you already have the json from an earlier request then of course you can use that data multiple times as well as later on. No additional requests are necessary.
>>
>have multiple classes that are very similar
>try multiple patterns to simplify and reduce code duplication
>each one results in less code but it's more unreadable
I keep running into this problem where I'm successful at reducing the amount of code but it turns into shit as a result. I ended up just leaving it as is for now cause it works fine and 700-800 extra lines of code doesn't mean shit but it's frustrating to keep hitting these skill issue moments.

Another skill issue I have is that I can't intuitively deduce what pattern is good when I'm writing the first iteration so I usually end up with poorly thought out garbage code but the clarity I receive from it lets me (usually) refactor it to a pattern that makes sense afterwards. I know refactoring like this is normal but it still pisses me off.
>>
did some calculations and it looks like my project will need to have around 1500 concurrent scrapers running and will save hundreds of millions of rows of data per month lol. this is gonna be a nightmare.
>>
>>101526538
Don't get hung up on code duplication.
The necessary gymnastics are often both less performant and less grokable
>>
>>101526538
DRY is boomer cargoculting
>>
>>101526692
>>101526716
This is something I wish I'd realized as soon as I began learning programming.
The next realization is that locality of concerns trumps separation of concerns (at least for me).
>>
>>101528757
>The next realization is that locality of concerns trumps separation of concerns (at least for me).
It is easier if everything you need is in one place, then you can read all the code right there on the screen and not have to jump around and keep a lot of the context in your head.
It is one reason why inheritance is difficult to use, you just don't know what's going to affect your code or not if you extend or use a lot of the classes.
Sometimes hiding the implementation is good, sometimes it is bad. It is one reason why Golang did not implement generics.

I mostly agree with you, but sometimes if you have complicated logic, you want to make sure it is only implemented one place so that you can modify that pice of code and be sure all paths are covered.
>>
>>101530503
>It is easier if everything you need is in one place, then you can read all the code right there on the screen and not have to jump around and keep a lot of the context in your head.
Which is why separating visuals (css) and logic (js) makes sense.

...

Yes, your argument is so freaking dumb, that one can easily turn it around.
>>
>>101530542
I found this article decent. Basically it depends on the situation. Sometimes one aspect is more important than the other.

https://htmx.org/essays/locality-of-behaviour/
>>
>>101530709
U know, I actually kinda agree. However...
The "unit" of logic is the interaction.
The "unit" of visuals is the design
I call this "Locality of Behaviour", too.
I also call this "Separation of Concerns", too.
And I certainly DRY is followed this way.
What now?

OK, all the joking aside. I do actually agree with the htmx guy to a degree. But I also have to speak up against the stuff that he is saying:
Changing the look and therefore the CSS should *not* ever have any impact on the functional aspects of the elements that you are manipulating. Why are people always claiming this? The whole point of not having <marquee> is to not have to fuck with your content when changing the look of the content!

This is like a fundamental misunderstanding in all of web dev. A "component" does not need to include semantics, logic and css in one file. It is absolutely possbile to create a component that does only two or even just one of them.

Also the web of components as we have had it for the last 10 ~ 15 years is fucking ugly, because people always create all these separated shit that they fear must be "reusable" all while in reality the fact that their SFC thing cannot simply be copied to another project without including all their freakin dependencies on stores and css frameworks, too.
>>
I am debouncing filtering a list with 140k items. In both react and in vanilla JS this makes recalculateStyle run significant slower compared to NOT debouncing increasing the overall time (minus debounce delay of course). WTF.
>>
>>101532088
WTF is right - WTF are you doing!?
>>
>>101532452
testing shit n stuff. will later post code. WTF indeed. up to 20k elements, there is NO input lag at all. Like why are we even paginating shit?!
>>
>>101532610
...you¨re paginating ON THE FRONTEND?!
Please tell me you kissed Ganesh today.
>>
whats the best way to market your niche community website
>>
>>101532628
No, I am not. But I also tested the results when not paginating on the backend... and the result is different.
>>
File: Screenshotedited.png (79 KB, 1708x1122)
79 KB
79 KB PNG
need to parse some javascript left behind by a previous developer for this one project i'm working on. is this guy an absolute psycho for writing this way or am i just retarded
>>
>>101532841
absolutely retarded

nested ternaries, no descriptive variable names, arbitrary formatting

the code looks like it's already minified
>>
>>101532907
>nested ternaries are le bad
Brainlet detected.
>>
>Have interview today
>See who it is with
>It's with a guy that has a masters and phd in AI, plus published papers

yeah im flopping this
>>
>>101532921

console.log(
isBased ?
isRetarded ?
"based retard"
: "based"
: "not based
)
>>
>>101532841
"optimizing" variable names like that is definitely psycho
>>
>>101532841
This must have been run through a minifier right? They often produce code like this. No human would ever write their code like this.

>>101532921
Yes they are bad. If you're using a nested ternary then you should refactor to make your code more readable.
>>
>>101533170
>readable
Massive meme.
Unreadable code = better job security.
>>
>>101533173
that's what obfuscators are for
you don't write obfuscated code in development
>>
>>101533018
if he's an autist you have a chance purely on being sociable. If he has that pedigree AND is sociable then ya you are fucked
>>
can you make money with webdev without "jobs"?
i actually enjoy webdev, but if i can't find a job here locally (not living in america), then it feels so pointless to do it.
with music or gamedev i can at least create products that i can sell, but with webdev i depend so much on someone giving me work.
>>
>>101534433
Freelancing, mentoring, consulting, etc.
>>
>>101534459
those are all jobs (services), not products
>>
>>101534466
You asked about doing webdev, not business. Nothing is stopping you from starting your own business, but it is not just webdev. You don't even have to do any webdev to make some internet product, you generally would want to hire someone to do that for you while you take of getting investors and market research for your product.
>>
give me a backend I only know node.
>>
>>101534433
Find a problem that people have with software and sell the solution as a service
>>
Where can I get a free api that allows me to show data on my website aout how fast each model is and shit like that? I'm trying to learn how to use apis thats why.
>>
anyone else feels completely spent and energy drained after just writing a mail for job hunt? I have a job and little free time
>>
I've been unemployed for months since graduating in Vancouver. I've been asking for 85k when asked for expected compensation. Is this too much, it seems like the minimum I can really deal with in this city.

I'm worried I get rejected for this since there may be competitor completely lowballing themselves. What should I do and if I change the amount asked what should I be looking for (2 YOE).
>>
>>101535362
just write it yourself and host it
>>
>>101535362
google "free api" there's tons of them
>>
Looksmaxxing is unironically the best way to get a job
>>
>>101535775
>>
>>101535362
https://github.com/public-apis/public-apis
>>
>>101533018
>>101534275
Update, I bombed it, guy was very friendly tho, sad.
>>
>>101537574
every bombed interview was actually just practice for the next one. You aren't a failure, you just weren't ready yet
>>
>Did quite a bit of TOP two years ago
>Had to stop because reasons
>Come back and see where I left off and don't remember shit about the projects i made

I dont want to start from scratch god dammit
>>
mysql question. I have a db with the following columns:
tableid (primary key), replyid (secondary key), fileid
it allows me to pair files to every reply. replies are grouped by tables. think of it as tableid being /g/ and replyid being a post on /g/, and fileid being a file that was uploaded into the files table. one reply can have multiple files attached, for ex. you can have
(tableid, replyid, fileid)
1, 123, 10
1, 123, 11
1, 123, 12
which means that reply #123 has three files.

the question is, how would I select all fileids from this table, which are only present on tableid = 1?

best I can think of is something like
SELECT * FROM table WHERE tableid = 1 AND fileid NOT IN (SELECT fileid FROM table WHERE tableid != 1)


... but this is very slow. is there a faster way to do this? some way with grouping perhaps?
>>
>>101537841
select * from table where replyid = 123
>>
>>101537896
>>101537841
*
select fileid
from table
where tableid = 1
and replyid = x
>>
>>101537896
>>101537909
one tableid can have hundreds of thousands of replyids inside, so none of these would work.
>>
>>101537925
?
SQL response from that query:
fileid1
fileid2
fileid3
(...)
fileId9527
>>
>>101537997
fileid1, fileid2, fileid3 etc may also exist on tableid = 2.
for ex data is
(tableid, replyid, fileid)
1, 123, 10
1, 123, 11
1, 123, 12
2, 15, 10
2, 16, 11
2, 17, 13

in this case I'd only want to select fileid 12, because it is unique to tableid = 1, does not appear on tableid = 2 at any point.
>>
>>101538030
>in this case I'd only want to select fileid 12, because it is unique to tableid = 1
literally
select fileid
from tableid =1
will give you all the fileids in table 1
>>
>>101538077
it will give me all fileids from table 1, but some of those fileids may exist in table 2 also. that's the problem.
see in the example, if I query tableid = 1, I'll get fileids 10, 11, 12, but 10 and 11 also exist for tableid = 2.

I want only the fileids which are NOT USED FOR ANY OTHER TABLE but one.
>>
>>101538134
yeah if you change the requirements you told me from the beginning, no shit, go fuck yourself
lrn2 descrive what you want, at the very least
>>
>>101538159
this was the requirement from the start, look at the example query I posted, or the part where I say
>unique to tableid = 1, does not appear on tableid = 2 at any point

i can describe my shit as well as I can, it won't matter if you don't know how to read.
>>
>>101493359
time for a lawsuit
>>
>>101538227
*
literally
select fileid
from tableid =1
and fileid not in (
select fileid
from tableid =2
)
this might not even work but you need something like this, this might be improvable, but I don't remember much SQL rn
>>
>>101537630
Until you run out of places to apply for. (And they talk to each other)
>>
>>101538306
that's literally the example query I initially posted.

>this might not even work but you need something like this,
it works, I tried it already, problem is that it's SLOW. which is why I was asking if anyone knows of a better way to do it.

>this might be improvable,
yes, that was what I was asking for, if anyone knows of a way to improve on it.

>but I don't remember much SQL rn
yeah I think you established that.
>>
>>101538384
mean, sorry for not reading, I was just trying to help with the minimal effort
>>
>>101533173
Unreadable code == being fired quickly
>>
>>101538362
my mom talks to my father, yet she never refused to hand out cash for my projects
>>
>firefox is 100% funded by google
>every other browser worth mentioning is chromium
Am I naive to hope that Ladybird will save web standards? Or are we stuck with google's internet explorer dominating over standards for the foreseeable future?
>>
>>101539757
not my problem if my coworkers are illiterate
>>
Pros & cons of having multiple event listener for the same (pointer) event?
E.g. one event listener for left-click and a separate one for right-click
Instead of one handler function doing everything?

I'm leaning toward splitting them to keep the visual complexity down.
>>
>>101537841

try this:

select fileid from table
where tableid = 1
except
select t1.* from table t1
inner join table t2 on t1.fileid = t2.fileid and t1.tableid <> t2.tableid
where t1.tableid = 1
>>
>>101490754
>Need an ecommerce solution for my store
>Prefer free, open source software to proprietary crap, especially for my risky niche
>WP, Woocommerce
>Uses PHP, if you add a lot of products everyone reports it slows down
>Checks SERP, turns out that Wordpress has lost the lead against Shopify, with most of the keywords I research showing shopify stores at the top
>Tfw this wasn't the case years ago
>Check around for other solutions, Wix, Squarespace, etc...
>More closed source shit

It's over isn't it? I will have to go Shopify route and can't own anything.
>>
>>101542036
I don't understand why open source has to mean use bloated Pajeetware and no one has offered a solution.
>>
>>101541760
even faster one but may not work
select t1.fileid from table t1
left join table t2 on t1.fileid = t2.fileid and t1.tableid <> t2.tableid
where t1.tableid = 1
and t2.tableid is null
>>
>>101542036
Just roll your own and integrate it with Stripe or Paddle
>>
>>101542361
My only option would be Magento and cost for development would be quite steep compared to WP or Shopify.
>>
>>101540167
It's your boss's opinion that matters
>>
>want to make simple app that allows you to sign up etc
>terrified of letting people down with not enough robust code and security

How do I get over this fear
>>
.whatever {
background-position: 4px 4px;
}

getComputedStyle(whateverElement).backgroundPositionX;

>Firefox: "4px"
>Chrome: "4px, 4px, 4px, 4px, 4px"
WTF?
>>
>>101543215
Absorb the following Life Lesson:
>A shitty result is better than no result.
>>
t. a former perfectionist
>>
BUMP
>>
>>101490754
Back-end bros, what do you actually do for the most part?

i'm not a backend dev per se, but i do sometimes have to write api endpoints that usually involve stringing together existing basic endpoints with some code in between to do different tasks (sometimes write my own sql queries for this but its pretty rare). not sure if that's pretty typical or if most other backend devs are living in sql and writing queries any time they make a new api
>>
How do I make another drop down option appear on a page once a user has picked the first option from the first dropdown option? I need to know what category the user chose and then I need to know the subcategory they want, but the option cannot appear until they have chosen the first option. This all has to happen on the same page using JS.
>>
What's the best front-end framework to get a client side application up and running with everything out of the box and somewhat ease of use? I mean routing, store, auth, and styling because I don't want to fucking use react and have to build fucking everything from the ground up if I intend to use a backend like pocketbase simply to speed up development
>>
>>101545980
I've done this at work, unfortunately there is no easy way to do this in react without having some flags in place at the most rudimentary such as useState with enum vals and rendering the correct drop-down as such. From there the form would have to be listening to all possible form inputs and you'd have to check on submit which are empty
>>
>>101506168
>fell for that forced and horrible meme that anime makes them toothpaste people
That's just CGDGT shit. There are hidden gems that are based even people like you'd enjoy
>>
>>101490754
Is it possible to be a backend/fullstack dev without touching SQL? I'm cursed to never touch SQL ever again.
>>
>>101547632
>not wanting to touch sql as a backend dev
DELETE FROM possible_dev_jobs WHERE position='backend'
>>
>>101547632
In my personal projects I pretty much only use datalog databases, but I don't have any jobs to offer to you
>>
>>101548352
>In my personal projects I am pretty much a total weirdo and do crazy shit nobody else understand, but I don't have any clue why I am even telling you that
>EXCEPT for me being so fucken clever that I must absolutely show y'all.
>>
>>101548427
if you were more intelligent you would've understood that me relying on datalog means that an independent full-stack dev who chooses his own tools can absolutely do his work without touching SQL, but if you want to be an employee of some company I'm afraid you're shit outta luck if you don't like SQL.
>>
Is using a service worker to manage authentication and JWT storage a good idea?
>>
Filtering a list based on li.textContet is not slower than filtering an array of strings.
>>
Changing anything within the DOM is not slower than changing anything in some object that represents the state of a VDOM.
>>
Appending to strings is as fast as appending to arrays.
>>
Rendering html via building a big string and calling innerHTML is as fast as building an array of nodes and calling append.
>>
The fact that frameworks are even talking about performance issues indicates that people who code do really dumb things which results apps with architectures that are badly designed.
>>
I've never expected it to be a problem, but I've tried to parse some React website with Selenium, and just can't find a way of keeping the html source up to date.
Basically, I have a page that dynamically updates, when you scroll down.
But the Selenium's
driver.page_source
doesn't update at all, it's always the pre-scrolled data.
It doesn't make sense, but it is what it is. How hard could it be for Selenium to fetch the most recent page source, it's already rendered in the browser.

Can I get any help from kind knowledgeable sirs?
>>
>>101547632
find a job that uses orm
>>
Hey, any ADHD anons here who could give some advice on pulling it through while learning web development?

I am learning Javascript and already know how to use HTML and CSS but I feel like it's taking me too much time sitting through tutorials and when I am, I'm usually finding very hard to keep my focus on the video and I spend a lot of time procrastinating.
I want to take a bootcamp later this year but I'm trying to still learn the basics by myself to get my money's worth and do something useful with my time (you can pick and choose at the bootcamp what exactly you want to be taught).
>>
>>101550002
>videos
>bootcamp
Why? Just read the MDN guide(and then official guides for whatever framework you'd like) and focus on practicing. This way you will get good much much faster.
>>
>>101505860
you need ajax
>>101545980
>>101546062
>unfortunately there is no easy way to do this in react
holy fuck you people are legitimately retarded you can create drop downs using nothing but CSS
>>
>>101550060
shit, thanks for letting me know
>>
>>101550112
No problem. There also might be some better guides to JS(maybe some book?), but MDN is ok. There is really no reason to make such a big thing out of learning JS. With good learning material and maybe someone you could ask every now and then for help, it really shouldn't take you more than 2 months of practice+study 1-4h a day to start making some simple basic react front ends. That's how long did it took me to teach my flatmate before he got first job(before the IT crisis). And by teach, I mean just point him to official guides and do some code review few times.
The crucial thing is to practice. Don't just read a chapter and call it a day. Have a simple project set up alongside, so you can try everything you read about and see how it works for yourself. Even if you won't be touching DOM and just printing stuff to console like it's some C class. Just so you can get a feel on how flow control works, how to use composite types, etc. It's like music, you won't learn to play a guitar by reading about theory alone.
>>
>>101550002
adhd is not real. You either have bad studying habits, or are exaggerating/expecting superhuman results in a short timespan due to being accustomed to quick results, or simply never tacking on challenging pursuits before.
>>
>>101545980
Put an event listener on the first dropdown menu. Whenever the user interacts with the menu, check their current selection. If the current selection is one that needs the second menu, show the second menu, otherwise hide the second menu.
If you were unable to discover this concept or logic on your own, you might be in the wrong job.
>>
>>101550254
thank you bro, this really encourages me. I'll try my best.
>>101550261
I've had it my whole life and had it diagnosed early as a kid in a country that really doesn't overpercribe that type of thing like in America. It's just something I've got to deal with.
>>
File: file.png (51 KB, 1006x993)
51 KB
51 KB PNG
>>101491567
fun!
>>
File: file.png (54 KB, 990x1092)
54 KB
54 KB PNG
>>101550521
washed
>>
>>101547632
overcome your limits otherwise you won't grow
>>
How do I write my code to fetch data from an api without just copying the code since I don't want to get flagged for plagarism for my project. I have found the code but I don't know how I'm suppose to write it in my own words.
>>
>>101550837
the whole point of it is to understand what the code does, if you don't learn now you'll have to learn it later anyway.
try doing the hard way and understand what it does? there is hardly an excuse for not grokking something when we're living in the post-GPT era
>>
>>101541760
>>101542172
><>
nta, but the absolute mad man, you're using the forbidden operator
but to be fair your sql game is more on point than mine is right now
>>101550521
>>101550553
how do you get those homosexuality IDE code screenshots? Is that some specific page?
>>
>>101551093
>https://github.com/Aloxaf/silicon
>copy code to clipboard
>silicon --from-clipboard -c -l ex
>>
I want to go full retard and switch to developing web apps on an iPad.
What setup do I need for Vue/React? Are there any apps / web-based IDEs that you can recommend?
>>
>>101551397
create-react-app and vscode is a good place to start
>>
>>101551418
>create-react-app in 2024
>be too retarded to be trolling
>>
Having many things in the DOM (compared to pulling them into arrays and objects) is not making the browser slow - showing lots of visible things makes the browser slow
>>
Iterating and changing lots of elements from the DOM is not slow, as long as you are not changing the visual appearance of the elements.
>>
>>101551577
>>101551731
make a big loop and print a fuckton of shit to innerHTML in the loop, it'll rape yer website
now do the same loop and inside of it, you just append the stuff to a string, after you're done with the loop, print to innerHTML, 0 performance cost
>inb4
>innerHTML
it's a practical example
>>
>>101551872
Correct. Doing
for (line of veryBigString.split())
el.innerHTML += line

is slow.
Doing
el.innerHTML += veryBigString
is not.
And doing
let stringToConstruct = ''
for (item in things)
stringToConstruct += item
el.innerHTML += stringToConstruct

is also *not* slow.

I am testing with 140k elements here.
>>
>>101552109
>I am testing with 140k elements here.
top kek, I suspect 1k might do the trick as well
>>
>>101552156
No, I am not seeing *any* difference at all below like 10k which is where you could say that the usual performance.now() diff becomes bigger.

Of course this totally depends on the visuals. If stuff is styled in a complex way, the numbers go up.

The point that I am trying to make is, that you have to do really, really shady stuff to make things slow when using the DOM instead of another "dedicated" data structure.

For example:
const s = performance.now();
const a = [];
document.querySelectorAll('li').forEach(li => a.push( li.textContent));
console.log(a.join('\n')); console.log(performance.now() - s);

takes about 1s including the time to log stuff, but only 170ms without loggin the array. The machine is a four year old laptop ryzen something something btw.

170ms to create the whole array with pushing and querySelectorAll for 140k elements.

In conclusion: The DOM is fast. Like, really fast in web terms.
>>
Had a cross-company vendor support call today. Their app was throwing intermittent 404s for a critical script and breaking client-side integration in an iframe.
Their dev was this cute little AAPI girl who said on the call that before being assigned the ticket to investigate she had no idea what an iframe was and initially thought it was some proprietary bullshit she'd have to deal with. I have never felt so old in my life.
Thanks for reading my blog.
>>
>>101552253
>No, I am not seeing *any* difference at all below like 10k
interesting
I would swear that wasn't the case not that long ago ET: 6 years ago, machines with probs like 8gb of ram
>>
>>101552331
My thesis is that this was never actually the case.

I started testing this stuff, because I did stupid stuff with lists. I tried "li.hidden" when an item should be filtered and for some reason "debouncing" the input that triggered the filtering actually made performance *worse*.
So doing "N" -> filter("N") -> "NE" -> filter("NE") "NEW" -> filter("NEW") was faster than "N", wait, "NE", wait, "NEW", wait, filter("NEW").
But the elements where in the DOM anyways so why should running filter once be slower than running multiple times?!

Then I started experimenting by setting the parent ul.hidden and guess what: things became stable again.

So my conclusion is that we mistake things visible on the screen for the DOM and the DOM is slow. But actually changing things on the screen is slow, but you only do changes through the DOM yet DOM != things on the screen.
>>
where are my django friends at
[spoiler]i want to kms
>>
File: 1695398655686927.jpg (97 KB, 700x875)
97 KB
97 KB JPG
Best project ideas to learn Vue/Nuxt?
>>
>>101550002
Books > Shitty yt vids
Get some PDFs. Like at least 20
>>
>>101550893
I don't want to sign up to use GPT.
>>
I reading instructions on how to use an external api but I don't understand what all this code this code shit means. I just want to display the data I want on a table using an external api. How tf do you do this using JS???
>>
>>101553587
>I want [X] but I don't wanna learn how to do [X]. What do?
A tale as old as time, just hire someone idk
>>
>>101553326
the barrier is so low yet you won't cross it. good luck
>>
>>101518596
>Also what is SQL testing. What do people generally do? Run the tests against a test or mock database?
Im genuinely wondering this too. Also what was the job title? I can understand if it is for something like "Data Engineer" but as a software dev I have never been asked about SQL other than "can you work with a SQL database" which is an easy yes.
>>
>>101496373
HTML, CSS, and Javascript are unavoidable as a web dev/software dev these days. Most of the time you are just using a CSS framework to do the vast majority of CSS related things so either get over it or move onto another career.
>>
>>101554111
is that all you are destined for if you work at fang

I really dislike CSS bullshit
>>
>>101554196
>I really dislike CSS bullshit
And people really dislike shit that look like it's 1994 again.
>>
why is something so basic like CSS a massive filter for /wdg/?
>>
>>101554727
because it's not like programming
>>
>>101554727
because its not fun playing trial and error
>>
why the fuck does transition still not work with height:auto?

and don't fucking tell me to use max-height instead, it's not the same and it doesn't even look the same.
>>
>>101501836
>Basically forgotten all my python/C lessons, can't even remake the projects I had to do for grades without looking everything back up
That is standard for this job. The trick is to be able to relearn things faster and faster and make your own documentation to go back to when needed.
>>
>>101554727
As with most things software, shitty (often poorly documented) defaults and legacy behaviors.
>>
>>101554727
If you never make anything new, e.g. basic bitch blogs, CSS is easy and painless.
>>
>>101551093
why forbidden operator?
>>
>>101556043
because it's something only SQL does, and != is equivalent and more widely understood
>>
>>101556087
>>101556043
* != is more universal language
>>
>>101556087
>>101556122
got it, but not like sql code is portable to any other language so might as well use its intrinsic syntax.
>>
>>101556181
why use something unique to SQL when you can use something universal? no point
>>
>>101556229
idk, it feels more natural. otherwise feels like murican talking english in germany.
>>
>>101556329
>idk, it feels more natural.
this
<>
more natural than this?
!=
I don't see it, at all
>>
File: ieiua9og50o31.png (301 KB, 520x678)
301 KB
301 KB PNG
>>101551267
>main developer has an anime profile picture
>main developer is based in china
>>
>>101556355
i worked with lot of corporate sql over the years and in most cases that operator is used so now it kind of stands out for me when != is used vs <>
>>
>>101556355
><>
>Less-than and greater-than never
>!=
>bang equal
>>
>>101556484
yes, the fucking != universal in programming, simple really
>>101556480
Idk my teacher who was a professional SQL noscoper taught me to know but not use that operator, I value his insight
>>
>>101556526
How about the fucking comment / inline-comment symbols?
//
--
/* */
--[ ]
>>
File: leetcode pivot.jpg (197 KB, 1041x650)
197 KB
197 KB JPG
>>101491567
>>101550521
>>101550553
>>
>>101556459
the source code is right there schizo comb through it at your leisure
>>
>>101556651
what powerlevel is this
>>
>>101554727
Easy to understand and memorise, painful and uninteresting to write.
>>
>>101549575
bump
>>
>>101550002
Couple things:

Do NOT do a bootcamp. Yes you can learn shit there, but they're ridiculously overpriced for what they provide given the plethora of free resources you can find online nowadays.
They're scammy. Do NOT fall for the
>"we will give you a job after you complete the camp, pinky promise"
meme. They cannot be trusted, this is just to lure you in.

What you need is multi-modal learning, i.e a combination of reading documentation, watching videos, writing code and building stuff and so on. Just videos won't cut it.

I can't recommend the Odin Project enough.
Takes you progressively through all the stuff you need to know, and has you build projects along the way to practice. It will make you read articles, watch videos, do exercises,... And you really end up internalising all the concepts little by little.

Mind you it's hard, really, it won't hold your hand, but TOP did it for me.
>>
>>101556821
Your time is clearly so worthless that you'll spend hours reading a project's code before deciding to use it

I don't do that because I'm not an idiot
>>
>>101557161
My ethnicity? I was born and Raised in Saudi Arabia, originally from Pakistan. Been In Toronto, Ontario. For over 5+ years now.
Do you think that's why they won't hire me?
>>
>>101557161
wow thanks a lot. I was really hoping bootcamp would be an easier way for me to learn but if it's a scam I suppose I'd listen to my better reason because I already fell once for the bootcamp scam but for another skill/career that you can learn online so I was really hoping the coding world wouldn't be the same.
>>
>>101557823
yeah you'd rather cry about it like a schizo and not verify something easily done like code scanning or verify whether the network package was used at all. i doubt you'd do much with your smooth brain.



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