[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: color.png (85 KB, 1000x1406)
85 KB
85 KB PNG
Gin edition.

>Free beginner resources to get started with HTML, CSS and JS
https://developer.mozilla.org/en-US/docs/Learn - MDN is your friend for web dev fundamentals (go to the "See also" section for other Mozilla approved tutorials, like The Odin Project)
https://web.dev/learn/ - Guides by Google, you can also learn concepts like Accessibility, Responsive Design etc.
https://eloquentjavascript.net/Eloquent_JavaScript.pdf - A modern introduction to JavaScript
https://javascript.info/ - Quite a good JS tutorial
https://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex and grid in CSS

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

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

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

>Need help? Create an example and post the link
https://jsfiddle.net - if you need help with HTML/CSS/JS
https://3v4l.org - if you need help with PHP/HackLang
https://codesandbox.io - if you need help with React/Angular/Vue

We have our own website: https://wdg-one.github.io
Submit your project progress updates using this format in your posts, the scraper will pick it up:

:: my-project-title ::
dev:: anon
tools:: PHP, MySQL, etc.
link:: https://my.website.com
repo:: https://github.com/user/repo
progress:: Lorem ipsum dolor sit amet


Previous: >>100130829
>>
Good morning sirs!
>>
>>100189787
Really fucking good.
>>
>>100189716
>hm, when it comes to a career, can i even choose what to build?
yes, actually
web development is not about building buttons and REST APIs, a monkey could do that, as a boss of mine used to say
it's about designing a system that has some value to someone and implementing it all the way through completion
this system just happens to be distributed through the web
back to the question, you could build a payment processor, a video distribution platform, a live stream platform, a chat app... all of these require a different set of skills
point is you need to decide what you want to build in order to have motivation to start something you can show to potential employers and finish it
>>
>>100189981
isnt the whole point of a job that they tell me what to build?
>>
>Using scss with svelte
>Add mixin to layout.svelte
>Can't import or use it in child components
>The way to "fix" it is to force append mixins to every single scss/css in the preprocessor
Okay, svelte IS a meme
>>
>>100189981
NTA but looks like anon wants to work for a saas company

>web development is not about building buttons and REST APIs, a monkey could do that, as a boss of mine used to say
Yeah until it needs to be performant and needs to scale. Boss is probably the first person to recommend throwing microserivces against it, because he read somewhere that it's gooood
>>
File: file.png (3 KB, 207x78)
3 KB
3 KB PNG
New grad looking for a job. Is Golang my best bet? I notice job postings for it have less than 10% applications of C#/Jaa/etc jobs. Should I learn it?
>>
[40hr/week] [$25/hour]

SKILLS:
Vue2 | Vue3 | Vuex | Nuxt3 | Vite | Pinia | BootstrapVue | PrimeVue | Express.js | Sequelize ORM | Mysql | AWS Cognito | AWS S3 | AWS SES | Jira | Bitbucket | Git

As an experienced Full Stack Developer, you will work on both Frontend and Backend side of our 6 years old main Saas Project - runnertag.com and it's new admin dashboard.

lol so basically a skilled experienced programmer gets paid the same as a mc donalds worker?
>>
>>100190022
yes, but you need a job first, and to get that you need to prove a potential employer somehow that you know your shit
don't put the car before the horse, think about doing what they tell you at a job when you get there
>>100190052
>saas company
aka an actual system with complex behavior, but yes he doesn't want to work building boring landing pages
>Yeah until it needs to be performant and needs to scale
that was kind of the point I was trying to make
web development nowadays is more about designing a proper system (e.g performant and scalable) than about focusing on buttons and REST endpoints
>>
>>100190170
>RunnerTag by Miro AI
>Miro AI
I know for a fact these guys are looking to hire south americans
>>
>>100190170
That's a $52k salary right?

How much experience do they want?
>>
File: screenshot_5.png (147 KB, 1920x1080)
147 KB
147 KB PNG
Reminder to check out SHOVEL
You yes you need to be using shovel NOW or tell me how it sucks and could be made better
https://ovel.sh

Everyone is using it, it's the next big productivity app!! (pls give me tips on how to market a website)

>>100185721
Thanks!
>>100184424
So I can hook up socket.io to listen for websockets connections
>>
>>100189787
If dubs javascript and golang are in a gay (but non binary) relationship with one another. Also PHP is goated.
>>
>>100189828
can you use beef for webdev?
>>
File: nekorare2.webm (978 KB, 700x700)
978 KB
978 KB WEBM
>>100187275
please respond
>>
is backend-only viable? i've been working as a nodejs coder for a couple of years now, have no idea about anything frontend except html and css. can't even traverse the DOM.
should i get into FR (which seems like a convoluted mess full of different frameworks and an ungodly amount of tools and packages) or stick to BE?
>>
sorry, if you dont know every cms and every framework ever written, and every plugin for every cms ever written, we cant hire you
>>
>>100191543
kek it do be like that
>>
File: p.jpg (19 KB, 360x360)
19 KB
19 KB JPG
>Interviewers "super impressed" by the project I built in my spare time
>Want me to start immediately
>Want me to share my source code with them
>Say they can't discuss licensing at this time
>Say they can't afford to pay more than a junior salary
>mfw
>>
>>100191966
What was your project?
>>
>>100191966
maybe companies have their own scam artist divisions
>>
>>100191986
https://random-word-api.herokuapp.com/home
>>
>>100190880
zustand maybe?
>>
>>100191986
My project solves a use case where current solutions are either FOSS garbage, or crazy expensive and still garbage
>>
>>100192224
And you have this "amazing" piece of tech hidden away for interviews? Sure buddy.
>>
>>100192326
He didn't describe it as amazing so I don't know why you're putting that in quotation marks
>>
>>100192326
You are correct I'll admit it. I'm sorry I lied to you guys.
I've never programmed anything more complex than fizzbuzz and I spend my days changing the colors in my IDE.
>>
>>100192437
For me it's the default colour scheme
>>
>>100192058
checked it out and it is a bit closer, will probably stick with it
redux on the other hand reminded of vuex and made me want to puke a little
>>
>>100192502
Light IDE theme chads rise up
>>
jQuery will smite the heretics
I haven't consummed pr0nz or fapped in 6 days, nightmares and everything, pretty fucking cray, my body craves the dark energy of pr0nz
>>
>>100193764
Stay strong, brother. jQuery 4 will save you.
>>
>>100194011
>jQuery 4 will save you.
my faith is strong
>>
How come gopher is such a cutie?
>>
>>100193764
More power to you brother. I've busted 3 nuts today already. A few more beers and I'll be on to 4.
>>
anyone tested running multiple playwright instances using Go on an 8-core machine with 16GB RAM? Or any similar experiences?
>>
>>100193764
Just fap without watching porn. After a while the craving for both will decrease.
>>
playwright or cypress? or something else

testing a next js app, written in ts, that uses react server actions + server components.

mostly i want to do integration testing and not component testing
>>
File: 1707084448918422.png (169 KB, 832x896)
169 KB
169 KB PNG
>>100194944
>playwright or cypress? or something else
no tests at all
>>
>>100194944
>playwright or cypress?
Users.
>>
what can i do to improve myself?
>>
>>100194532
What do you mean by multiple instances? Your basically limited to workers = cores I think, and workers is the most tests that can run in parallel for any given project. I'd imagine if you tried having two different playwright projects open reach running 8 parallel tests they'd just run slower or something, and you'd probably have the workers queued.

I've run multiple projects at the same time in a monorepo, and they basically just run one after the other, sharing the workers.

I'm not really sure what you're trying to achieve though
>>
>>100194944
I prefer playwright, but I'm doing user testing. I found cypress was trying to be some weird middle ground between unit tests and user interaction tests, and kinda not ending up doing either well.

I'm not really sure why you'd use either for integration testing though
>>
>>100192394
If your code/software is better than all other solutions available, then by all accounts it is amazing...
>>
File: youinthefuture.png (292 KB, 460x276)
292 KB
292 KB PNG
>>100193215
>>
I just bought a 6-letter domain name that's a fairly popular word in Japanese for $14. Can't believe this was available.
>>
>>100190880
Jotai is the simplest, its also made by the same author as zustand

Jesus christ i hate react
>>
zoomers are such babies >>100195496
just configure your monitor properly, light mode is actually better for your eyes most of the day
>>
File: file.png (302 KB, 520x352)
302 KB
302 KB PNG
>>100197111
>light mode is actually better for your eyes most of the day
>>
>>100195194
i'm using "integration testing" to mean tests that involving loading a page, probably, interactions with the page that involve network requests (or making requests against a mock server), and asserting the state of the UI
>>
>>100196482
well hang on a second, what extension is it? if it's not .com it's literally worthless you domainlet
>>
>>100191050
You can, but you might want to consider to go for enterprise by learning c#
>>
File: nekorare.webm (365 KB, 576x776)
365 KB
365 KB WEBM
>>100196784
checked out both throughout the day and thanks, I'm thinking this is the answer
I miss pinia
>>
I'm doing an Express.js project using Sequelize, and I'm using Jest with Supertest to test some endpoints.
How are you supposed to test endpoints that create stuff in the database?
Do you have to create a test database before testing, and then destroying it by the end?
You could mock database stuff I guess, but that kinda defeats the purpose of testing.
>>
>>100197423
Personally I'd use playwright, but I could never get on with cypress. Maybe it makes sense if you've spent years in java/selenium hell.

You will probably end up having to use js classes though, so it depends how you feel about them. Most testing Frameworks resort to them, because the page object model is the default way of doing the needful
>>
why java won the backend war
>jeets love java for some insane reason
>companies mostly hire jeets
>>
>>100190022
>isnt the whole point of a job that they tell me what to build?
So you have never had a job except for a basic service job like working at Subway or at a supermarket?

I have never been a place where the business people actually knew what they wanted. It is the whole reason we got Agile and Scrum is because people don't know what they want.
>>
>>100195097
oh, I meant parallel tests. Playwright supports parallelism but I don't know the actual mechanisms for it; if I'm using Go and I spawn 2 goroutines for 2 Playwright instances, each with arbitrary numbers of parallel tests to execute handled to each worker, how slow would it be?
>>
>>100200254
>jeets love java for some insane reason

It's because they learn by wrote and all the tutorials/Durga classes are about java. They literally can't apply what they know to any other context, including language. I guarantee most would struggle with doing a basic loop in any other language, even though they're basically the same principle. They just wouldn't understand what you mean.
>>
>>100200339
It depends. If all your tests are in the same project and you have it set to use as many workers as possible, the it'll use 1 per core, so in your case, 8, so 8 tests will run at the same time. However, individual test files (the .spec.js files) usually run the tests within them serially, so if you only have 2 test files you'll only have 2 tests running in parallel. You can set test files to run their tests in parallel, but whether that's a good idea really depends on the workings of your tests.

If by instances you mean having multiple playwright projects running with each one doing parallel tests then you're still probably not gonna get more than 8 tests running at any one time, or if you do they'll slow down to the point where you might as well run each project at once.

As for how fast or slow that is, it depends entirely on what the tests are doing and how you divide then up. If you're really fussed about speed you could split the most complicated and longest running tests across different files, but that'll probably make no sense from a maintenance point of view
>>
>>100200362
if you believe this then you are even more retarded than the fictional indian retard you have constructed in your post
>>
>>100200513
thank you for the explanation. the tests shouldn't be that complicated, mostly just a sequence of 2-3 actions, so I'll run some benchmarks and get some numbers.
>>
File: file.png (38 KB, 1112x616)
38 KB
38 KB PNG
Is nesting Promises bad practice? I am having troubles converting my JS to TS but I don't know how I can refactor something like picrel. The reason for the double Promise.allSettled() is because I wanted to run black box checks in parallel so that each box would check the links inside. The end result would look like this
[
[ 123, [
[ "string", boolean ],
[ "string", boolean ],
[ "string", boolean ]
]
],
[ 456, [
[ "string", boolean ]
]
],
[ 789, [
[ "string", boolean ],
[ "string", boolean ],
[ "string", boolean ],
[ "string", boolean ],
[ "string", boolean ]
]
]
]
>>
>>100200652
>Is nesting Promises bad practice
not necessarily, but I'd still avoid it if I can. I'd like to see why you need to run so many promises at once in the first place. What does your code look like?
>>
>>100200652
so if i understand correctly, each black box is created by some promise that fetches data unique to itself, and then initiates promises of its own based on the contents of its own resolved promise to populate itself with?
>>
>>100200723
>why
I need to feed all of them to an API but I want to make sure there are no 404ed links in the bunch. So I need an extra step beforehand checking their ok status with fetch(). This is a procedure that happens only once and the result of the fetch() is cached along the link
>>100200774
Actually the black boxes are DOM containers. I loop through them looking for links and then structure my pseudo database with the container's address (the id) and an array containing link+state pairs. Once the procedure is complete I can .then() the promise and be absolutely sure all the links have been parsed

The inner Promise.allSettled() is necessary so the order of the parsed links is 1:1 with the order of links in the DOM containers. The outer Promise.allSettled() is necessary so I can be 100% sure all the DOM containers have been parsed
>>
My grind has finally started paying off. Fuck yes bros. I'm now doing a comfy web dev job with angular and C#. We eating good wdg bros. The grind was hard at first but I didn't lose hope. WAGMI. I made it.
>>
Here, you forgot your resume

>fiverr. com/angiebrooke22
>>
In the US there's some cringe laws going around blocking access to "adult" websites and forcing you to do some kind of age verification in republican majority states. Chaturbate was hit by this recently however you can still view the streams if you are able to get the m3u8 and toss it in a video player like mpv or vlc.
Seems simple/straightforward enough to host something in a non-cucked part of the world and have people enter the url of the model they want and the quality and have it print the m3u8 link to get around this.
This law seems pretty unconstitutional and will likely get tossed out by courts but that will take months/years, could be a decent money maker for some anon if they get good SEO and find a way to offer working links to gated content.
>>
>>100189787
Anyone tried JSR?
https://deno.com/blog/jsr-is-not-another-package-manager
>>
>>100202389
>let's make yet another package manager
>no it's not another package manager but a registry yada yada
ryan dahl is fucking retarded
>>
>>100197423
I might be saying something retarded but that sounds a lot like unit tests
anyways I've done some playwright, and it's a bit clown world if your page does lazy loading
>>
>>100202127
chaturbate still works for me even though phub x hamster and all of those are blocked. what state has chaturbate blocked?
>>
>>100190327
is shovel short for shovelware?
I like how it looks but why should I use it over Obsidian+plugins?
>>
>>100202572
Texas, Utah, Kansas, Louisiana from what i can google so far
>>
File: 1685929850529701.jpg (59 KB, 634x657)
59 KB
59 KB JPG
>>100189828
>the only niche language I've ever been TRULY interested in
>last commit 2 years ago
>>
>>100190026
>adds shit to scoped style block
>acts surprised it does not go out of the scope
also scss and "mixins" are bloat, just use css
>>
>>100190327
just start posting on twitter like you already made it. start giving out generic advice for startups and grindset and all that shit. that's what everyone else does, but I don't know if they are actually making any money
>>
>>100202756
>using css
just style with old html tags and attributes
>>
File: file.png (14 KB, 964x495)
14 KB
14 KB PNG
Guys I need help. I'm too low iq to find a good design for the mobile view. How would you guys do it to make it look good on mobile?
>>
>>100203965
Just leave out 1 and 226. When you click on ... you can type in the exact number.
>>
>>100200890
I finally figured it out. I was insisting on using PromiseSettledResult<MyType>[] while in fact I was returning a Promise.allSettled() attached to a .then() to immediately parse the response so at the end of the day I had to use Promise<MyType[]> as result type. I should let TS infer more and only declare types once I figure out what the fuck I am trying to do
>>
>>100203965
first page | prevous | page number| next | last page
>>
File: n.png (4 KB, 471x68)
4 KB
4 KB PNG
>>100203965
>>
guys, can someone think for me for once?
I'm currently selflearning web shit, specifically shitscript. I want to pair it up with another language for backend (no, there are no nodejs jobs where im from) and i cant decide between c#,java,go or rails..
My question is... which framework/language would a company/team use that they would be more likely to hire me as a intern/junior without a uni paper if i have a nice portofolio and prove that i'm not a retard? For example if i go for spring+java i compete with all the faggots from unis, c# about the same but it's a strong ecosystem so i'd have fun using it for personal projects but the same i could say about go excluding any gui apps since that's a c# only field.

Thoughts? what framework/language will be the most likely to help me cheat my way in, even if i have to larp that i'm a genius
>>
>>100204092
first page | previous | page number | ... | next | last page
>>
>Type 'string[]' is not assignable to type '[string, string, string, string]'.
> Target requires 4 element(s) but source may have fewer.
What am I doing wrong?

function test(): [string, string, string, string] {
const output = [ "0px", "0px", "0px", "0px" ];

// if something.. change output values

return output
}
>>
>>100202537
no you aren't saying anything retarded i think the problem is that people commonly use the same terms for testing to mean different things. Also, most of my work hasn't been front end focused for the last few years so if there's a consensus on terminology then I don't know what it is
>>
>>100204586
Oh ok moving the declaration from the function to output fixes the error
>>
>>100198037
it is a .com
Easy to pronounce in English and has low competition in keyword rankings so I can dominate it with proper SEO and good content.
>>
>>100200228
>spent years in selenium hell

I have with Ruby + capybara, which supports selenium as the most used driver. It's not so bad but that's only because of stockholm syndrome and i'm working on my CSS
>>100202537
>clown world for lazy loading
welp. I guess i'll just try one and have to be ok with ripping it out if i don't like it after an hour.

>>100200228
>>
File: file.png (19 KB, 964x495)
19 KB
19 KB PNG
>>100204135
>>100204320
>>100204092
>>100204010
Ty bros

Not sure if this is the final form but i already like it a lot more
>>
>>100190261
How do you learn to build scalable web applications? Any tutorials you could suggest?
>>
>>100189787
Hi anons.
Is versel a good free hosting alternative?
I need to deploy some projects to showcase.
>>
File: 1687158745526.png (442 KB, 1124x1331)
442 KB
442 KB PNG
>>100204261
bump
>>
There's a web dev job near me that looks alright, I dunno if I'm qualified enough for it, but maybe it's worth applying

Should I give it a shot?
>>
>>100205429
yeah of course.
>>
File: 1714234438373.jpg (42 KB, 596x237)
42 KB
42 KB JPG
Literally how is that possible?
Like, I wouldn't even know how to achieve that, even if I tried really hard. And mind you, this is only the landing page, this is just the index page, not some complex web app or anything. I mean, even if that was a complex web app, there is no excuse to load more than 100 scripts. But literally the home? HOW?
>>
>>100204261
I don't think others will be able to answer this simply because we don't know the situation where you live. forget Go tho, just pick one of the two you said
>>
bump for
>>100202127
>>
>>100189787
how does the go drink taste?
>>
>>100204261
>>100205214

happy to help but have some qs
>(no, there are no nodejs jobs where im from)
a) can you share where you are located? if not, there may be job listings that don't literally say "nodejs" but still use nodejs, like next.js.
b) Are you sure node isnt used in any form where you are looking for jobs?im not disagreeing with you but i wanna sanitycheck because you are self learning this stuff so you might have missed something.

if jobs using node or node-based JS frameworks (like next.js) are really not in your area then i'd just work on mastering vanilla javascript/html/css, building projects with those, and pick the most popular backend framework used for entry level jobs in your area.

there is no one size fits all answer unfortunately but i can give better answers if you have more info to give.
>>
File: 1708748046405483.png (333 KB, 1483x762)
333 KB
333 KB PNG
>>100205518
On yt-dlp it's as simple as doing yt-dlp -g <url>. Dunno what's the process behind it
>>
>>100205631
trying not to make asshole reply.
there is an age verification that does not let you interact with any part of the website until you verify age when your ip is from one of the regions with this new law.
>>
File: 1700116832406.jpg (143 KB, 1024x1024)
143 KB
143 KB JPG
>>100205498
>>100205574
im from europe, there are some jobs that use node, but the majority of them are java because that's what's being taught in uni (also very popular online with lots of native content specifically directed at spring+java), there's also a decent amount of asp.net+c#.

That's why i was asking if i could do some social engineering to narrow down which group of people would be MORE likely to hire someone without a degree that just has projects in their CV/portofolio. That group is definitely not the spring+java herd

Listen im not retarded and programming has been my hobby for the past few years, i've solved a lot of problems at the "office" jobs i've had but i can't say i would be confident with any stack/language because i've used quite a few of them depending on what i needed.

My focus now is on powering through html/css/js/node but at the same time this field is turbo saturated with everyone and their dog trying to eat the cheese (i've been to two "job fairs" for college fags and i've met plenty of morons that have no idea what they're doing or talking about yet.. they.. have jobs as juniors making 4-5x what i make)
>t. pic related
>>
File: 2024-04-27_11-41.png (28 KB, 1521x78)
28 KB
28 KB PNG
>>100205631
doesn't work in blocked regions.
>>
>>100205776
assuming you need to learn a backend language (not sure if that's even necessary because i dont know your job market), then there are two ways id think about this:

1. pick the tech that gives you the most general applicability for jobs in your area, whatever that is. it sounds like it's java but you are writing that off. i have to defer to you on that.

2. pick the tech that most enables you to take advantage of any social network you have in tech, or a tech that has a large "community" in your area.

for track 2, the idea is the social "engineering" (i would call it networking instead) you are talking about. if the main jobs are in java, but you have a few friends working at places that use C# then that would be a good idea to work on. or if there's a c# meetup in your area with a big community in your area, that could be another angle.
>>
>>100205207
bump this
>>
>>100205749
>>100205780
Maybe with a proxy? https://github.com/proxifly/free-proxy-list
yt-dlp --no-check-certificate --proxy socks5://192.111.129.145:16894 -g "<url>"
>>
>>100205971
thanks chatgpt
>>
>>100205563
That's the logo for Gin, a Go framework, so I guess it tastes of gin.
>>
>>100204684
relax attention seeker. japanese words don't sell for anything though just so you know
>>
>>100205429
imagine asking on 4chan if you should apply for a job or not
>>
>>100205207
why would you use a free hosting site to showcase some stuff? if i'm hiring someone and they pull up a fucking free hosting site, i'm stopping the interview on the spot
>>
>>100206935
I wanted to see what the response would be
>>
>>100206922
I mean, assuming the name actually makes sense, it's not that easy finding short domain names for cheap anymore.
>>
>>100207007
Apply for everything, everywhere, even if you're not fully qualified. You literally have nothing to lose.
>>
>>100206950
Because it is a normal thing to do where I live.
Don't hire me, someone else will do it.
>>
Next is tiresome. Any new hire knows next and wants to change our codebase to this shit.
>>
>>100202673
because you want to join the shovelution
>>
How are you supposed to integrate the header with the rest of the website from a design perspective? I know literally every website does it but whenever I try I fail miserably.
>>
>>100208082
I think those heavy and dominant navs are outdated. Just have the same background color as the rest of the website (or a slightly darker one, just a shade of the body background) and a border bottom.
Just look at most sites like Google, Youtube, Substack etc, the headers barely stand out.
>>
>>100204644
Unit tests are more about making sure that the code does what is expected. It's why you'll frequently do mocking. It's like "if I pass in arbitrary values x, do I get the expected values y out". It's mainly concerned with the code in your application. Jest is the most widely used tool for this I think

Integration tests are more concerned with making sure bits of the application are talking together correctly. Personally I wouldn't do mocks in those cases, you want to check that the actual days you get (say) from your db is actually correct. You don't need to use the actual UI for this though. It's almost always quicker to just use APIs and shit. People use stuff like postman I think. I've never really done it.

Interaction/UI/e2e tests are where you use the actual thing you've made as is, using the UI to do all the stuff your users would do.

The latter is what you'd use playwright for. It can in theory do unit and integration testing, but if honestly stick with more specialised tools, especially if you're doing it in some kind of ci environment where the stages would be separated and have all their own dependencies.

As for lazy loading hopefully when the thing gets fully loaded a CSS class gets amended/added. Then you can just wait for that. If not (and you can't make that happen) your gonna have to try something like waitForAnimationEnd, but it's pretty unreliable.

t. Non Indian tester
>>
>>100208249
nta, newbie tester here, for e2e + fucky lazy loading in playwright it seems like every solution is a mix of scrolling and waiting or scrolling and checking the status of whatever locator

That seems clownworldish to me, ia there any other way?
>>
>>100204586
In typescript, [string, string, string, string] and string[] are not equivalent

You have to declare that the array may not change in size.
const output = ([ "0px", "0px", "0px", "0px" ]) as const;

or
const output = ([ "0px", "0px", "0px", "0px" ]) as [string, string, string, string];
>>
>>100208301
No, it's the nature of lazy loading. It only appears when you've scrolled it into view

Of course, only wait for it if you absolutely need to. If there's some layout shift causing you problems then you can make it the Devs problem by telling them it'll give them bad lighthouse scores, kek
>>
>>100208470
good point with the lighthouse stuff
>>
File: DDIA.jpg (22 KB, 130x171)
22 KB
22 KB JPG
>>100205158
>How do you learn to build scalable web applications?
working a job and being forced to deal with real world problems, that's how learned
>Any tutorials you could suggest?
not really a tutorial but reading pic related cover to cover enlightened me in many ways
>>
File: file.png (211 KB, 2012x1528)
211 KB
211 KB PNG
>>100204135
>>100204947
>>
>>100208881
oh, and forgot to mention, that buttons should be big enough to accomodate scaling into the 3 digits without changing dimensions, or they look kinda wonky when there's different sizes... I guess they could scale in unison (which would really mean scale _down_ the text to fit more digits rather than the button getting bigger)
>>
>>100200534
post toilet
>>
>>100201374
I got pretty good but then got FUDed. How did you know when you were ready to apply for jobs?
>>
>>100208881
also, ignore the use of the word "should", it's just explorative design, it's ofc wrong... already see things I might not even be liking anymore... like maybe the buttons for pagination being on the ends is _enough_ to not confuse users (+ their arrow shapes), so they might not even necessitate the blue fill.
>>
>>100208954
Templates.
>>
File: svelte.webm (1.87 MB, 1920x1080)
1.87 MB
1.87 MB WEBM
>rvnes are in rc phase now
it's time sveltebros
>>
>>100189981
>it's about designing a system that has some value to someone and implementing it all the way through completion
... and how do you do that if not by building buttons and REST APIs?
>>
File: benchmark.png (172 KB, 703x919)
172 KB
172 KB PNG
Has anyone here heard of HyperExpress? I found out about it from this benchmark a while back (it was done by a maintainer for Elyisa.js which is on Bun) and it shows HyperExpress beating out Hono on Bun.js. It's interesting because Hono and Elysia aren't far away from some of the Rust frameworks like Axum. I'm hesitant on using Bun because it's new and uses a whopping 40 times more memory than Rust, and on top of that I've seen benchmarks showing Uwebsockets actually run faster on Node.js.

Someone said it's near identical to Express but is built on uwebsockets which are fast as fuck. The only info I could find about it was on this reddit post which says you're interacting with C++ application using it, hence why it's so fast.
https://www.reddit.com/r/node/comments/19agh42/thoughts_on_hyperexpress/

If anyone has heard good things about it and it is in fact close enough to Express that I could just interchange some code in my app and make it just werk, that'd be great.

Here's the Benchmark.
https://github.com/SaltyAom/bun-http-framework-benchmark/
>>
>>100189981
>yes, actually
no, actually
as a junior at a typical company your boss gives you a ticket and you solve it, that's it. You don't have any real input in decision making.
As a mid level/senior, in 99% of jobs you don't get to choose shit either, you have to constantly reason with retarded customers who change their requirements for fun.
have you ever had an actual webshit job or are you just larping here?
>>100208661
why the fuck are you recommending DDIA to someone who is trying to break into the industry? What the fuck is going on ITT? is this general always like this?
>>
>>100205207
is this a bad question to make? Nobody respond ;__;
>>
>>100205207
>>100209935
yeah it is
it's serverless though, so there are some limitations but way better than github pages
>>
>>100205207
Use GCP or Azure instead. Create an account with your student email and you'll get free credits. Otherwise just go with DO or Railway. Vercel's notorious for overpricing more than so any other PaaS company, almost as bad as Heroku.
>>
>>100205207
It takes a while to load sometimes. But if you don't wanna pay for something it's the best I'd say.
>>
>>100209915
>no, actually
elaborate on why you're ignoring these sentences:
>>100189981
>point is you need to decide what you want to build in order to have motivation to start something you can show to potential employers and finish it
>>100190261
>yes, but you need a job first, and to get that you need to prove a potential employer somehow that you know your shit
>don't put the car before the horse, think about doing what they tell you at a job when you get there
you could also read the entire thread to understand my point
I acknowledge I probably misunderstood his question after he misunderstood mine

>why the fuck are you recommending DDIA to someone who is trying to break into the industry?
you don't know that
considering writing style alone, I'd say it's a different person entirely, maybe someone trying to "level up" to senior
besides, what's so bad about recommending DDIA to a noob? It's a perfectly approachable book
offer an alternative
>>
>>100202703
it's complete.
>>
>>100192053
>https://random-word-api.herokuapp.com/home
I could build that In a couple of hours I don't get where is the value.
>>
>>100210002
What about Netlify?
>>
>>100209896
Anyone at all? It's strange no one has heard of Hyper Express and no one is talking about it anywhere.
>>
Lol finally got my first ultra noob level frontend dev role being selftaught after 9months doing theodinproject/fullstackopen

Getting paid 25€/hour

Let the job hopping salary maxxing leetcode games begin
>>
>>100210500
then do it? you are like all those "hackers" that could hack my PC if they wanted.
>>
guys i think i am too dumb for this
>>
>>100189787
So Go is the best due to its simplicity and not having to use a web framework right?
>>
i understand having javascript html "components" (react etc.) when something loads at runtime, but generating the whole page at load in javascript? why would you do that?
like, why does the header have to be a react component?
>>
jobs available on indeed
>security clearance required
>salesforce required
>java required

all the good jobs are gone
>>
>>100205158
learn to write sql
>>
is Boostrap still hot or has it been surpassed by something else?
>>
>>100192053
>>100210500
my goodness what the fuck is this? i could throw that together in less than an hour
>>
>>100206037
that works, cheers
>>
>>100209896
heard about it from the same benchmark but haven't used it. hono on bun is my go-to for http apis and it works fine. currently using it as a drizzle http postgres proxy
>>
>>100192053
>/all
>Return all stored words
>/word
>Return one stored word randomly
This isn't very RESTful, you should use /words to return all words (and implement some form of pagination with query parameters) and
/words/random
for the random word

Also you should wrap everything under a version like /v1 so you can safely make break changes under another version and you can put your documentation for that version there
>/v1/docs
>/v1/languages
>/v1/words?page=1
>/v1/words/random?number=10&length=5&lang=es
>>
>>100208972
>How did you know when you were ready to apply for jobs?
You have to start applying at some point. I managed to get an internship for 3 months and I knew I was ready after that.
>>
File: 1681176246993999.jpg (395 KB, 1500x1900)
395 KB
395 KB JPG
How do I make a 4chan-like site with Java?
Spring boot + ¿_____?
What do I use? Thymeleaf? FreeMaker? JSPs?
>>
the community solutions on odin project are so fucking terrible it makes me feel stupider just reading them

also their discord is like a honeypot of NGMIs
>>
>>100213820
>also their discord is like a honeypot of NGMIs
It was decent at one point. During the pandemic it got overrun by all the moms and wagies who think software engineering is just making static sites in HTML. And now post-pandemic it's mostly third world shitters.
>>
how taxing is it to serve your own OpenStreetMap tiles? or you guys have any good providers for very light usage? I know I could just use the OSM stuff for development but eventually I am going to put this stuff in public so I'm just thinking ahead here.
>>
>>100212652
Why do you want to use Java?
>>
>>100189787
Google doesn't in to human readable documentation or code. My first tip for an aspiring web dev would to try and keep your distance from them as much as possible.

while not as up to date, the w3c schools guides are a lot more comfier reading.
>>
>>100214784
just use mdn
>>
I have a scrollable sidebar, but the scrollbar's position is inconsistent. Sometimes it stays within the sidebar's boundaries, but most of the time, it overlaps the main content section. How can I ensure that the scrollbar always remains within the sidebar? I'm using Tailwind with DaisyUI for the sidebar
>>
>>100210535
i don't know
i haven't tried netlify myself
>>
For backend projects, what is the best standard for storing API urls in env files?
Do you save only the base url in the env file and then add the rest in the code itself? Or do you save the full API url in .env for every API you use?
>>
>>100209852
>literally breaking all libraries for older versions of svelte
Rich is such a fucking big idiot
>>
File: hero.png (658 KB, 2400x1351)
658 KB
658 KB PNG
My chosen JS framework? It has to be Vanilla JS.
>>
>>100215692
based
>>
>>100189787
is there anyone here well versed in go who can help me with this problem I posted in the /dpt/:
>>100215555
>>100215582
>>
File: 820218013323231242.gif (148 KB, 96x96)
148 KB
148 KB GIF
>grep -nre useEffect
>tfw no results
>>
>>100215411
>For backend projects, what is the best standard for storing API urls in env files?
>Do you save only the base url in the env file and then add the rest in the code itself?
Yes.
>Or do you save the full API url in .env for every API you use?
No, please no.

Usually the API share the same base URL, and then in the code just add the extra part like $BASE_URL/users or $BASE_URL/products/list etc.
You do not want to clutter up your env with unnecessary stuff. Doing it the way described above makes the coder easier to read as well, as you know exactly which API route the function calls when reading the code.
>>
>>100195029
be more specific!
>>
File: preact-logo.png (66 KB, 1900x572)
66 KB
66 KB PNG
Thoughts on Preact?

It seems to have some big sponsors including GitHub, AirBnb, Trivago, and Google sponsored it at least once.

Hopefully that means it might be a reliable solution rather than something that will break or get abandoned. But even if it does get abandoned then hopefully it wouldn't be too difficult to port your code over to React, since the code is extremely similar.
>>
>>100215865
just 4 u I'll install Go and try it out, no idea how Go werks though.
>>
How do I import @types definitions from NPM? Some readme tells me to add the path to include in tsconfig and others simply tell me to use import in my ts files. What's the best way to do it?
>>
>>100216410
types are bloat desu
>>
File: .png (632 KB, 1973x1941)
632 KB
632 KB PNG
>>100216339
>>100215865

Copying your code seemed to work okay for me, just play around with the types you're specifying to parse from in the struct. The docs show to specify the "UnmarshalJSON" function in the same scope with the struct type in it's signature, but that seems only necessary if you want to do special parsing where the data types are widly different.
>>
File: file.png (12 KB, 478x173)
12 KB
12 KB PNG
>>100216424
I think I figured it out. It stopped yelling at me
>>
File: Code_UZ8UtQVMMw.png (5 KB, 371x158)
5 KB
5 KB PNG
I've been really spoiled by the JavaScript and React documentation. I'm currently learning about PHP and Laravel and the documentation doesn't really feel "complete".

For instance I am trying to find out why do you need to chain `get` method after `with`.

I thought that the `get` method just re-runs the query to get the latest table. Where it is used after the table has been modified since re-reading the collection will not perform a new query.

I can probably figure it out but I have to do more digging than usual since the documentation is all over the place whereas I can find every single mechanic about the specific method I want to learn about in JavaScript mdn.
>>
>>100211924
still pretty common for small business.
>>100213820
>joining their discord
why did you do this in the first place?
>>100215411
just storing the base url will work fine
>>100216276
I think it will not change anything, since in the real world you will most likely use the big frameworks. Of course, if it's for a small project then I think it's fair.
>>
>>100216521
interesting, thank you for taking the time to do this
Ill recheck my code tomorrow, not sure whats wrong because I basically did exactly what you did iirc
>>
>>100216728
>I think it will not change anything, since in the real world you will most likely use the big frameworks. Of course, if it's for a small project then I think it's fair.
Yeah I'm just thinking about a personal project. I could use Preact then, as I say, if Preact has too many problems, it shouldn't be too hard to port the code over to React, since the code is very similar.
>>
So to add an event listener in React, you just slap it in a useEffect with an empty dependency array
>>
>>100215431
does not matter as long as user code does not break, users can just wait a bit for developers to update the libraries then migrate
>>
File: file.png (6 KB, 409x94)
6 KB
6 KB PNG
>Property 'replaceAll' does not exist on type 'string'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
I am going insane
>>
>>100217066
I remember something similar happening with angular +ts a year and some more ago, and thinking to myself what a subhuman behavior that was
>>
>>100217066
That's a very quick and easy thing to fix, I had that the other day.
>>
>>100217100
I ended up replacing it with a replace using a //g but it still bothers me
>>
>>100216700
A lot of your issues with PHP in general are going to be with the IDE tooling here, PHPStorm is going to be the defacto option for this. If you're using VS Code, probably the best you can do is using php intelephense + phpstan to validate your typings (phpstan is kind of like jsdoc + typescript).

To clarify on your questions though:
- "querybuilderobject->get()" will run the query.
- "Model::with('relationName')" returns a query builder so that you can expand on the query before you run it.
- $model->relationName (e.g. $user->posts) is shorthand for $user->posts()->get(), but calling the former twice will only result in the query running once, while the latter runs twice.
- using "with" means to eager load. Under the hood there's an additional query (think: subquery) being run so that you don't land in to O(n) query problems (e.g. running a query on every row result).

So, to expand on that, you could do something like:

// Get all new forum posts in the last week
$recentPosts = ForumPost::with('user', 'thread')
->where('created_at', '>=', now()->subWeek())
->get();

// $recentPosts is a Collection of ForumPost

foreach ($recentPosts as $post) {
// do something
}

$numRecentPosts = $recentPosts->count();

// This doesn't do any database queries since we're operating on a collection
$threadsThatExist = $recentPosts->filter(fn (ForumPost $post) => $post->thread_id !== null);
>>
Is C#/.NET gud
>>
>>100216700
>>100217209

Just to further clarify, the reason why you do need ::with('employer'), is because when it gets ran with ->get(), you're running two queries:

SELECT * FROM jobs;
// laravel fetches the results from the above
SELECT * FROM employers WHERE id IN (1,2,3,[results from the above query])


Alternatively, you could have done the following:

$jobs = Job::get();

return view('jobs', ['jobs' => $jobs]);


And in your jobs view:
@foreach ($jobs as $job):
{{ $job->employer->name }}
@endforeach


But the issue here is that you'll end up with an O(n) query problem that looks like this under the hood:
SELECT * FROM jobs;
// laravel fetches the results from the above
SELECT * FROM employers WHERE id = 1;
SELECT * FROM employers WHERE id = 2;
SELECT * FROM employers WHERE id = 3;
SELECT * FROM employers WHERE id = 4;
SELECT * FROM employers WHERE id = 5;
// .. etc to the number of employees rendered on the screen
>>
>>100200334
We got agile and scrum because webdevs are too retarded to have a global view of what is needed, and we need to spoonfeed them task-by-task, step-by-step so they dont fuck up things that should be trivial.
It's like walking a bunch of clueless disabled kids at the park : look elsewhere for 5 seconds and they manage to crash a database or build something unrelated to the use cases.
And these guys are getting paid loads at the end of the month bevause theyre "experts" lmao
>>
>>100217326
>we got a system in place that prevents people from having global overview of things to make sure that they continue not knowing it because they started out not knowing it
all upper management in every company needs to be hacked with a chainsaw
>>
File: file.png (38 KB, 884x578)
38 KB
38 KB PNG
What the fuck is this retardation?
>>
>>100217527
what are you trying to do anon?
>>
>>100217547
I have my typescript file in a tab and a legacy javascript version in another tab. It is complaining about double implementations while in fact they are just two separated files. Why is this even an issue?
>>
>>100217558
Not sure what your folder structure is, and even what your requirements are. There's a few things you could consider:

- try creating a jsconfig.json file to target your JS files.
- make sure that the "include" / "exclude" of the js/tsconfigs don't overlap with each other
- play around with JSDoc inside the js file -- https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
- use a triple slash directive inside the js file -- https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html
>>
File: Cute and funny.jpg (59 KB, 600x894)
59 KB
59 KB JPG
give me some decent tutorials that I can follow to create some good APIs in modern PHP
* no frameworks
>>
>>100217675

probably the best tutorial I found:

https://www.youtube.com/watch?v=U2lQWR6uIuo&list=PL3VM-unCzF8ipG50KDjnzhugceoSG3RTC
>>
>>100217691

Just keep these in mind though:

- he doesn't use type declarations anywhere, which is maybe expected for beginners. But generally you do want good type coverage, and ideally using something like phpstan to minimise any errors in your PHP code

- Since it's from 2023, he doesn't use a few of the newer PHP 8+ stuff.
For example, you can now use callable syntax instead which could have been handy in his routing tutorial: https://www.php.net/manual/en/functions.first_class_callable_syntax.php

- installation options for PHP now include Laravel Herd (for the modern "wamp" like stack on your personal pc) and FrankenPHP (basically php + caddy web server inside a single executable, for deployment)
>>
>>100217675
read PHP language reference and learn how to put things together on your own
>>
File: 1691601055647165.gif (81 KB, 220x166)
81 KB
81 KB GIF
Looking for some input here since I gotta work with newer tech and I usually work with boomers.
I have to make a web app to manage second hand rental and sale, to be used by any company or business that pays for it.
The backend is already being developed using Laravel and I have to make the frontend with a couple of guys using React.
Backend and frontend are two different repose and communication will be done strictly through API.
The questions now.
Is using NextJS a good idea?
Should I use Laravel Breeze?
Is there any library that gives me the basics of your run of the mill dashboard?
>>
I might rewrite my personal project because the current code is SHIT

I always think "I don't mind making it messy, I'll clean it up later", but then I end up with what I believe is referred to as "technical debt"
>>
>>100218004
never fall for technical debt meme, only programmers are retarded enough to keep maintaining same shit for decades when an engineer will take out old part and put in a new part and it just works
>>
>>100217209
>>100217292
Thanks, my confusion came from not understanding the ORM abstraction.

Turns out
Job::get()
executes the query and returns a collection and it is basically equivalent to
select * from table
and the Builder object can be further expand the query before running it.

Since relationships aren't loaded by default(since it is a separate table), running the relationship
$job->employer->name
in the blade view, runs another separate query.
>>
>>100218569
yep, that's correct, and you want to use eager loading (i.e. with("relationshipName")) so that you can avoid running separate queries every time you're looping over the result set and accessing the relationship.
>>
>>100216276
how is it better than next?
>>
>>100218086
Do you mean, never get into technical debt in the first place? Because that's how replacements of old parts with new parts become easy.

But with technical debt, doing those replacements is harder, due to shitty constraints and APIs you've made.
>>
>>100219039
I've not used Next but isn't it mainly concerned with server-side rendering? Preact is equivalent to React, not to Next I wouldn't think.
>>
Is there a cleaner way to do what I am doing? I mean, the null checks before each instruction https://pastebin.com/jAygtSSg
>>
How is full-stack developing for customers usually like? How are the customers? What's the process like?
>>
I have a domain I got from godaddy which is set to expire. They're asking for 8x higher price for renewal. What if I let it expire and then buy it brand new, would I get it for cheaper? Also should I switch to another provider and then buy the domain?
>>
>>100219951
registrars will typically hold expired domains for their previous owners for some grace period, then bump up the price and put it back on the market if the previous owner doesnt renew in that time.
>>
>>100219753
And I mean as a team
>>
>>100220011
Are there any registrars which don't loot you like Godaddy does? 8x bump is ridiculous.
>>
>>100219532
>shitty constraints and API's
simply roll out a new API on one server, see whether it works better, start migrating to it globally, it costs as much as creating a new project and companies that think that they only need to invest once are first to fail
>>
Been out of the loop for a while and haven't coded in months. What's the current trendy stack? Is it still React for frontend and Node + SQL for backend?
>>
>>100220682
vanilla js is on the rise, don't believe the hype of framework astroturfing
>>
>>100220722
I have been told by colleagues that TS's star has begun waning (I work in vanilla JS because that's what our big legacy project was written in) and frankly thank God.
Type safety? Just code better instead.
>>
File: kill them.png (32 KB, 564x259)
32 KB
32 KB PNG
>>100220722
Kill all framework faggots
>>
>>100217930
anyone?
>>
>>100221134
I love this framework so much it's unreal.
>>
File: file.png (14 KB, 828x141)
14 KB
14 KB PNG
What am I doing wrong? The relative path isn't resolved properly but I don't want to use an absolute path for a file that will be hosted on github. I installed ts locally within the project by the way
>>
At first I couldn't be arsed with TypeScript but I'm growing to appreciate types
>>
is there a maximum size an html file can be? i want to embed images and sound files into an html file. what happens if it becomes 10GB? is there a point where it will stop loading in chrome?
>>
what is your preferred font for CVs?
>>
>>100222074
I had to enter a win path escaping the \ separators
>>
File: file.png (86 KB, 976x591)
86 KB
86 KB PNG
Why are ; bad
>>
>>100222988
>random blog from some random cunt a few years ago
He probably does know more than me, but I don't care
>>
>>100216208
i am slow... i can't correctly predict when i can finish the work assigned to me
what can i do to improve my speed, is there anything i can do on the weekends?
>>
>>100222988
idk + idc + not my problem
>>
>>100222988
lmao
>>
i guess this is the right place to ask
so /g/ i made a twitter bot in python and i want this thing to run this on a server, is there any way I can do this for free?

Besides the bot script the server also has to let me upload the images it uses to post
>>
>>100223729
yes, put the server at your house and then it's free
>>
>>100223729
There's no free lunch, even if you host on your own machine you'll waste energy, and therefore, money. Just buy a VPS for 5 bucks/month and deploy your script there using Flask.
>>
>>100223074
1. Estimation _is_ hard, know this is true forever and always. The only point in time where you know precisely how long something will take is the exact same time you are done with the solution. More experience will make you better at estimation only in the areas where you have "known" unknowns.

2. The fact that you _feel_ slower than your potential is a great indicator that you're going to make it. Let curiosity guide you to action. You are the one who knows your own weaknesses the most, and you can't cheat yourself! What do you feel you should learn more about? Are you able to make whatever you put your mind to with relative ease? (ask yourself these types of questions, and you'll guide yourself to the best learning path!)

3. Avoid tribalism, although it feels great to be a part of a community, it's possible to have your cake and eat it too. If you become too "in love" with a single language / library, it'll inhibit your growth in the long run.

4. Working extra on the weekends directly on work is usually a path to burnout. If you're stoked about some "side-quest" instead, this is the way to go. Hobby stuff is fun, maybe even a different language if you can / feel ready. Getting experience with another language will perhaps counterintuitively make you better at the first language too.


>>100222988
Tell team to set https://eslint.org/docs/latest/rules/semi to either "always" or "never" and move on...
>>
>>100224194
thanks anon, thought maybe someone knew a free alternative
>>
I'm making a GUI app for labeling some graphics (exact explanation is not important)
But basically think of it like something like GIMP

I need a good way to handle mouse down events, basically for different "tools" I will need to chain the events, for example I want to do X on mouse down, then Y on mouse up, and Z on another mouse down. + at any point this "chain" would be cancellable by pressing "ESC"

What's a good method/library to easily handling case like this?
At first I did it in just JS by basically adding mouseup listener in mousedown listener and then removing it after the chain was done, but it's difficult to read.
I found RxJS, is it a good choice to use here? Also maybe is there a better approach to stuff like that?
>>
>>100189787
WHY IS WEB DEV SO COMPLICATED JESUS FUCKING CHRIST 95% OF WHAT I DO IS DEAL WITH BULLSHIT CREATED BY PREVIOUS BULLSHIT THAT SOLVED THE OTHER BULLSHIT I HATE CAPITALISM AND WORKING REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
>>
>>100208661
Good to know. I actually already started reading that earlier.
>>
>>100223729
>>100224194
effectively this.

Although, there is a point to be said that energy costs in some countries might be so cheap that it's effectively free... if you run a small script on a rpi in your home sipping a few watts 24/7 then it's not really going to be noticeable. and cloud services can add up quick.

Though, at least for most "small scripts" that you just want to run on a timer, if you already have a single VPS, adding more scripts to the same one is "free".

A third alternative is to create something like AWS lambda functions that are triggered by a timer, that way you pay quite minimally for what the runtime of the script was. Or maybe fly.io where they offload your container when it's no longer in use, so you don't pay compute when there is 0 traffic.

I will make a guess that you probably want something really simple (and cheap/free) given that this is a python script here, I think it's likely not the crowd that enjoys thinking about infrastructure (although... who does? :thinking:). What is your experience with "the command line" / SSH'ing into a server? (if that's foreign, you might have to spend more $ for convenience, or learn up on it first)
>>
>>100224335
I know fly.io is seemingly still in the "growing" / "scaling" phase? I think they have some legacy hobby tiers that you might end up on if you use less than a certain amount (like $5/mo). and for that you can run a fair bit.

>>100224407
lol
>>
File: file.png (3 KB, 185x74)
3 KB
3 KB PNG
>>100224482
>I will make a guess that you probably want something really simple (and cheap/free) given that this is a python script here, I think it's likely not the crowd that enjoys thinking about infrastructure (although... who does? :thinking:). What is your experience with "the command line" / SSH'ing into a server? (if that's foreign, you might have to spend more $ for convenience, or learn up on it first)
Zero, i just want something that let me press the "run" button so the bot runs and "stop" button if something goes wrong
i looked at aws and got confused
>>100224534
5$ is too much compared to what i'm already paying, 0$(if you discount the energy and internet bills)
>>
>>100224567
Then I think you might be out of luck, if you have a stationary computer / laptop you're not using, you could just leave that running 24/7 maybe? at least that would be as easy to set up the way you currently run the script. That's probably your best bet desu. just need steady power & internet. A laptop even comes with a built-in UPS, add some retry logic to your script and you basically have the #industrystandard in fault-tolerant software :Joy:
>>
>>100225089
kek, ty anon i'm sticking with my laptop then
>>
>>100224407
>WHY IS WEB DEV SO COMPLICATED
but it's not?
>>
File: 111.jpg (13 KB, 414x282)
13 KB
13 KB JPG
How do I find some niche to specialize after getting a job? Ok, I have a job but now what to do? I mean after the language, back/front. So you just farm industry specific years?

Suppose I have 3 years as a frontend react dev in aviation company developing booking UI. What do I do to become better?
>>
>>100225314
you're supposed to be making your dream project, anon. job is just to live. dream project is to fulfill your dreams
>>
>>100225401
But what if my dream project is to achieve the highest paying job possible?
>>
>>100225431
have you started reading the torah and stealing land? if not then you will never make it.
>>
>>100225314
A lot of developers seem to go into consulting when they gain experience, as it pays better, and lets you learn new stacks / forces you to grow. If you're on the same team / same stack for years, the onus is more on yourself to learn and grow.

Do you have a specific need / desire to specialize in a niche? is this a money thing? sounds like you want a steady flow of money. The way it seems to work is that money becomes less and less of an issue the more years you have under your belt as a tech worker. If you're always learning, you'll grow valuable, and money will flow.

On the flip side, if you're stagnating, grasping for a niche to become "invaluable" in without having to sharpen your tools, you _will_ be replaced when some new tech shift comes along... they always do.

If you're looking for a more generic "purpose in developer life" then that's a good place to be!
>>100225401
Like this anon, you probably have something you want to make... deep down there. If you don't yet, then take note of things that frustrate you. Try to bridge the gap between some area / hobby you like personally, and something that other people would gain something / interact with (they will give feedback & motivate you when you're thinking of scrapping your 99th todo app). This thread even has an automatic project scraper thingy to help with the sense of community and discovery!

>>100225431
So this _is_ a money thing ;)
>>
>>100225460
kekd

>>100225470
Is this from some ai chatbot or what?

Do you have a specific need / desire to specialize in a niche?
I wanna specialize in the current market im in but dunno how since i feel generic. Dont think i was part or the direct supervisor of any important/big project.

>grasping for a niche to become "invaluable" in without having to sharpen your tools
No, thats exaclty the opposite. Im looking for that next challenge so i keep learning more niche and advanced tools. Ofc you cant always apply that at work. Although i love my job (the place, pay, no extra hours, no trouble with coworkers) i do feel like it is too easy. By no means i hate my job but more challenge + more money would be cool.
>>
>>100225568
I guess I write too much text that runs on for too long and it looks like AI vomit. :'(... AI really do be trying to take my soul.

Specialize within web dev? Since going in the "full stack" direction could be worth it too, look into nodejs / express / koa. Or i guess these days it's nextjs /api routes same same. At least it's very empowering to be able to create an entire solution on your own (from frontend to backend to infra/hosting).

I know too little about where you are though :thinking:, I guess you have 3 years of react and nothing else?

I would probably see what's possible to do via your current job, many work places have ways for you to switch focus / direction within the team / company if you're dissatisfied. Idk what direction you want to go in either. Do you want more responsibilities / a tech-lead/architect type role? (obv more pay is always wanted by all, and it'll come for free with new roles / more responsibility)

I think a more "make stuff & ask for forgiveness later" attitude could work out then if you are a quick learner and want to "get stuff done" but feel you're "waiting for permission". There's a lot of stuff that needs doing in most larger orgs, teams that need help and have few (some cases no developers?! crazy). If you make an MVP you'll basically become the de-facto "tech lead" for that thing. Helping others out will get you recognition that makes it very easy to "climb the ranks" so to speak.

So tl;dr: contact any staffing person that's relevant for you, tell them you want more / something different.

Some places have a form of "growth plan" for devs, but you can make one on your own as well.

The last option is always there ofc, job hopping. But you said you liked the current one.
>>
>>100225861
Oh thanks,

I probably need to go back to the make stuff & ask for forgiveness later attitude. i was like that in the past but it caused major trouble in my last job so i tuned down.
>>
is html canvas a good candidate for avisual novel/point and click adventure game?
>>
is HTMX suitable for a browser UI table that updates constantly? or is it just for semi-static pages with some interactive elements
I have a golang program that constantly updates a table based on a websocket connection and I want a UI that displays that info in a table
I want a very simple way to set up this GUI, its just for personal use
>>
>>100226211
I'm pretty sure it supports SSE and stuff like that. Not sure if Go has something like LiveView or LiveWire. Just try it out I guess.
>>
>>100192053
If you’re not trolling this is whitepilling, I hope to get a job soon then
>>
>>100199568
search up ‘${yourDataBasesName} memory server for testing’ on your search engine of choice.
>>
>>100192053
>>100226569
lol if the bar is this low then I agree, whitepill

Im a hikkiNEET, no degree, never had a job, but Im starting to look for jobs
Ive built things like 20x more technically difficult than this
its hard to overcome the blackpill that even though im probably more competent than 90% of fresh graduates, companies just see "no degree" and automatically filter me
>>
>>100226696
Don't kid yourself, they don't even see your CV any more. You're automatically filtered before your chance even begins.
>>
>>100227603
nah you just cant apply through regular channels
you have to apply via email and/or directly email the founders/someone working at a small company
>>
>>100200254
wasn't locked into running on windows server like dotnet was
didn't really have the framework/version churn that dotnet did.
"independent" standards body, with multiple implementations (usually open source) of the standards
free ides and tooling
outside of a 'free' jvm, sun really put a lot into improving the standard library and performance, for zero cost
>>
File: file.png (29 KB, 701x179)
29 KB
29 KB PNG
>>100224242
>Tell team to set
Why isn't never the default then?
>>
>>100229124
that medium pajeet blogger has no idea what he's talking about
always use semicolons, don't rely on bundler transformations to insert them in for you.
>>
>>100222988
When is Medium getting nuked?
>>
File: IMG_0777.jpg (18 KB, 344x342)
18 KB
18 KB JPG
>>100209915
>As a mid level/senior, in 99% of jobs you don't get to choose shit either, you have to constantly reason with retarded customers who change their requirements for fun
yeah i also hate wasting the money of stupid people by proving to them how fucking stupid their ideas really are, damn, if only someone could appreciate my genius i could be making whatever i wanted!!
>>
>>100220722
>on the rise
Not really. Every pajeet and retard uni kid froth over frameworks but don’t even understand why the frameworks exist in the first place. So you take those frameworks away from them and they just sit there like a deer in headlights, struggling to write a while loop or complaining about how “hard” CSS is lol
>>
>>100214755
Because I know java and I don't like Javascript
>>
>>100222897
Roboto/Inter. Alternatively use the same fonts as iphones/instagram and voila suddenly HR sally with the roast flaps is looking at your CV
>>
File: file.png (12 KB, 627x139)
12 KB
12 KB PNG
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Why should a cross-origin GET for something mundane (e.g. an image) trigger a CORS preflight? Why are only these three media types the only safe ones?
>>
What kind of portfolio looks good for junior web dev? I tried making my own websites and that failed. I then tried copying website tutorials and that failed as well.
>>
>user-select: none for UI elements
Is this bad UX or nah?
>>
>>100230139
well being able to deploy a website at all would be a good start. what went wrong?
>>
>>100217930
>Is using NextJS a good idea?
It's fine, as long as you use the more stable version. And just be mindful of how you will transfer the maintenance process.
>Should I use Laravel Breeze?
If you want to save time then sure, or just start from scratch if you want it barebones.
>Is there any library that gives me the basics of your run of the mill dashboard?
Not really, did you use tailwind? If so then try ui component library so you won't start from scratch.
>>
>>100230206
I dunno, I never got any responses back ever. I guess it's worth saying I graduated last year and only have a few small internships on my resume.
>>
>>100230206
>>100230297
I misunderstood that you misunderstood what I said. By failed I meant didn't get a response, not that I wasn't able to deploy them.
>>
>>100230202
i think its horrible for ux in 99% of cases because i shouldnt ever have to open the dev console to make a website work correctly (correctly meaning i can interact with the page content in an expected way). there are usecases for it, but it shouldnt ever be considered the norm.

>>100230326
>>100230297
yeah nah i misunderstood you. have you tried making anything novel, or used a website as a portfolio for other projects beyond just the website itself?
>>
>>100222525
This
After I used C# it improved my experience of TS a lot. If you use it like a typed language it's actually fine, I'm sure you can do something in the tsconfig to limit your return type to only one type or null, if you use it like JS and have your functions return several different types you'll hate it
>>
>>100230139
you’re a junior dev that has tried making your own website and you…failed?? Are you seriously applying for jobs without your own website, what the actual
fuck is wrong with you??
>>
>>100230404
I think he meant that he failed to get a job even after creating his own website.
>>
>>100190054
Most Go job postings are for seniors and SREs, at least where I'm at (USA)
>>
>>100230139
if you cant even make a website then you cant be a junior dev, what the fuck do you even expect
>that failed
what the fuck do you mean that failed? you hit a hurdle and you just rolled over and gave up?
making a basic website with html, css, js is probably the most well documented task in the history of software development
honestly anon, find a different line of work
learn a trade or join the merchant marine or hit the oil rig or something
>>
>>100230739
See here: >>100230326
>>
>>100230326
>>100230775
no wonder you cant get a job, your command of the english language is atrocious
>>
>the pajeets posting their resumes on r/react
kek
>>
>>100217930
>Is there any library that gives me the basics of your run of the mill dashboard?
Not as far as I know, but there are multiple different templates that setup a functional dashboard for you. There are several ones for a basic SAAS dashboard or whatever type of company you run. Just search for "Next.js dashboard template" or something and you will find some.
>>
>>100220301
>Are there any registrars which don't loot you like Godaddy does? 8x bump is ridiculous.
Transfer it to Cloudflare if they support the TLD. Namecheap is also decent.
>>
>>100231090
I'm not him you stupid fucking cunt
>>
How big is your programming folder, /wdg/?

Mine is over 20 gigs... a lot of that size is from various React projects, where node_modules is 300 MB or whatever.
>>
>>100232249
i just have a general projects folder, but its at 23 gigs. theres a lot of audio, video, and 3d stuff in there, but im sure most of it is venv and node_modules and tens of thousands of images.
>>
>>100232249
>20 gigs ... React
peasent. you are not a real web dev until your node_modules has reached 95% of your disk capacity - which will be the point in time when you start deleting OS stuff.
>>
>>100223729
Will the bot run without access to the Xitter API? I thought they were charging $100 per month for API access. I wanted to make something similar but after seeing the pricing I backed off.
>>
>>100232495
I also have a React Native project which is over 2 gigs, so I guess they can be large too.
>>
File: file.png (247 KB, 1358x760)
247 KB
247 KB PNG
>>100232550
they absolutely fucked it. the free tier is one post from one agent every half hour with no way of making queries or reading tweets, meaning that bots with any kind of interactive features require the $100 plan bare minimum. they cant even make the page not look like shit.
>>
>>100232655
Melon Husk in charge of literally anything
>>
>>100232604
Will the bot run without access to the Xitter API?
No, it uses tweepy, it can't work without it, i don't know how to at the very least
>>100232655
yea it makes 1 post per day/30 per month
>>
>>100190054
>New grad looking for a job. Is Golang my best bet?
No. Learn Java, C#, JS/TS, Python or PHP. Go for the language most popular in your region. That's the best way to get your first job.
>>
>>100232966
you could just set it up as a cron job on your pc at that point.
>>
i want a remote job so i can continue smoking whenever i want and being an alcoholic in peace
>>
>>100233077
the script already does this with an external library from python called schedule

https://schedule.readthedocs.io/en/stable/

i just don't want to run the bot on my pc and preferably in a place that has constant access to internet so it does its thing . i guess maybe a raspberry pi could fulfill what i need to host and do the thing
>>
File: 1705096308651752.jpg (210 KB, 720x540)
210 KB
210 KB JPG
>>100230284
>If so then try ui component library so you won't start from scratch.
>>100231473
>Just search for "Next.js dashboard template" or something and you will find some.
Thanks for the tips anon.
>>
Me reading through all the spaghetti code I've written
>>
>>100233144
In my last job I vaped at work and my boss didn't care. Then I stopped vaping because it's bad for you.
>>
New thread
>>100233603
>>100233603
>>100233603
>>100233603
>>
>>100233318
thats fine if youre okay with with the python process running 24/7 and sleeping probably close to 99.999% of the time. a pi would be a good bet, you can just scp stuff onto it and forget about it. if you use the library then id add it to initd or whatever. a cron job would also be super simple, youd just `crontab -e` and add `0 0 * * * python3 /path/to/script.py`



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