[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: 1605595961606.jpg (272 KB, 660x492)
272 KB
272 KB JPG
>Free beginner resources to get started with HTML, CSS, JavaScript and PHP
https://eloquentjavascript.net/Eloquent_JavaScript.pdf - A modern introduction to JavaScript
https://developer.mozilla.org/en-US/docs/Learn - A good starting point to learn about web dev fundamentals
https://javascript.info/ - Quite a good JS tutorial
https://blog.javascripttoday.com - Awesome JavaScript/web dev blog.
https://www.theodinproject.com - Curriculum including HTML/CSS/JS, and either Ruby on Rails + SQL, or Node.js + MongoDB
https://fullstackopen.com/en/ - Requires you to have basic web dev, db and git knowledge
https://flexboxfroggy.com/ and https://cssgridgarden.com/ - Learn flex/grid in CSS
https://www.phptutorial.net - A PHP tutorial

>List of design resources
https://github.com/bradtraversy/design-resources-for-developers

>All useful documentation in one place
https://devdocs.io

>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
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 >>93551506
>>
Actual previous
>>93597634
>>
>general was down for 4 hours
it's over. webdev is truly finished
>>
>>93665276
it's for the best
just let it go...
>>
>>93665692
>>93665276
But I was just getting into it
>>
File: 1684507621113633.png (130 KB, 318x323)
130 KB
130 KB PNG
>>93665743
same
what are you learning?
>>
>>93665935
started with javascript about a month ago
barely have done anything with html and css
>>
drizzle
>>
orm
>>
no orm
>>
>page 9
Unacceptable
>>
>>93665276
>>new frameworks pop up every second day instead of every day
>it's over

Which technology has won btw?
I'd say in the real world react, react native, mui and php are far ahead of the other shit.

But I'd guess that would mean that it is even more over, because that stuff is old and react has not even changed its programming model for at least two months by now.
>>
I'm this faggot again >>93649598
got fed up with json-server, its a piece of shit, I wanna learn databases and PocketBase seems good enough for learning purposes, do you have any good learning resources for it?
>>
>>93668984
brother, why are you using garbage like that? just use prisma like a normal person
>json-server
use express
just be normal
>>
File: EGiJnL9WwAA7LJ0.jpg (97 KB, 720x888)
97 KB
97 KB JPG
So I'm trying to learn react, I've got some of the basics down but I need to practice some of them to reinforce what I've learned because trying to do a whole course isn't working because I'm taking to much in.

Anyone know a site where there are a bunch of practice challenges on us estate, props, passing props up etc?

I need to practice one thing at a time until I fully grasp it instead of moving through everything in one go.
>>
>>93669035
cause I don't know shit, I started last month with all this web deb bs and I'm discovering all this nonsense on the go, I'll investigate express and prisma
>>
dont use prisma
use drizzle
>>
>>93669108
>>93669271
they all look like goyslop bullshit to me, I want to make a frontend and a simple db to host online with vercel, what a fucking pain in the ass, I'll stick with pocketbase as it seems I can do the api calls directly to it and its just for learning purposes, this is worse than a console war you're all brain damaged man, get fucking help
>>
>>93669422
use what you want but if you are expecting to find "learning resources" for something that _no one_ uses you're just asking for trouble
>>
>>93669422
Express is well documented and has been around for years, many people use it for js projects.
>>
I love webdev please stay alive
>>
>>93669422
Web dev is a pain in the ass, this general is a pain in the ass, we all just like it in the ass
>>
File: cool.png (40 KB, 574x582)
40 KB
40 KB PNG
I made a new Flask site. Django was a waste of time. Tracks aircraft. Big project boyos.
>>
>>93669823
I'm a month in and I'm already regretting it
>>93669716
I search express in any browser and carrefour express appear so I'm guessing its shit just based on this fact, I've never even been to france
>>
>>93669842
cool
>>
>you're all brain damaged
well yeah i wouldn't be a web dev otherwise
>>
give me an idea for something cool to make
>>
>>93670493
- sorting algorithm visualizer
- code snippets library with all the required features, like language category, tags, multi file/snippet, searching, description etc
- blog
- 2d run and gun vidyagaim
>>
>>93670540
>2d run and gun vidyagaim
How do I do this in react?
>>
>>93670630
>react
no idea really, but my big buddy told me this:
- OOP
- Canvas
- render/paint loop and also modify functions
Research js gayims in js or react if that's a thing
>>
>>93670493
AI based car recommendations. hook it up with some car database. basically like chatGPT plugins
bonus if you then offer this service to car dealers (you display car suggestions from their website) and profit
>>
It annoys me that there are so many different frameworks, different databases, different choices

Fuck choices. I don't want choices. I want there to be a single stack so that I only have to learn one thing.
>>
File: 1240230525215849.jpg (562 KB, 1080x793)
562 KB
562 KB JPG
Udemy courses are way too fucking long dude, holy shit. You don't need 60 hours of videos to teach somebody HTML, CSS, and JavaScript.
This is completely absurd.
>>
>>93671034
Use .NET. It has everything all on one platform. Made and maintained by Microsoft. It's a safe bet for people like you (and I).
>>
I have a design for a RESTful web app in mind. What's the easiest framework (any language) to implement it with? I'm looking for something with a high level of abstraction, geared towards the REST archtitectural style, so I can think about the structure of my app rather than the low-level details of how it works.
>>
>>93671324
HTML is easy, CSS has a lot to learn but the basics are easy. JS is where you should spend most of your time.
>>
>>93671520
Yes, indeed. I am well educated on the topic. I was just looking at Udemy out of curiosity, and was shocked at how much fluff is involved. Once you know the basic syntax and fundamentals, all you really need to learn quickly and effectively is source code to a working final product. From then it's just anslysis, tinkering, and reverse engineering, along with reading documentation.
I feel sorry for the hopeful developers who fall for this tutorial hell trap.
>>
use tailwind
>>
What's the best free or low cost way to deploy a very simple web app with very low traffic?

There's Render.com's free tier, but they sleep your app after 15 minutes I think, and it then takes about 1 minute for the app to restart if someone accesses it. Not suitable for real users because they won't tolerate a 1 minute wait.

Then there's Fly.io's free tier, which doesn't sleep your apps, but they automatically charge you if you exceed their bandwidth limit, which is 100 gigs or something. And yes it's unlikely that a low-traffic app would exceed that, but what if someone DDOSes you? Fly.io says that they will "probably" refund you in such instances, but "probably" isn't a very good guarantee if you could potentially face a bill of hundreds of dollars or more.

Is there a better alternative? Or is it best to just rent a VPS for a few bucks a month so you don't have any headaches about fitting into all the weird limits that every free tier seems to have?
>>
>>93670630
>vidya
>in react
react is for GUI, not for vidya
>>
>>93671682
If people actually learned from those courses then they wouldn't make more sales out of them
They make them like that on purpose
>>
>>93671034
well, NextJS is pretty much that these days
>>
>a year and a half of goofing around "learning" webdev
>and by "learning" I mean watching a tutorial for about 15 minutes before spending the rest of the day on youtube and vidya
>turns out that a family friend knows someone
>next thing I know, I have an interview on monday

I need a fullstack project with node and react that I can yoink to prove that I didnt just spend a year and a half playing vidya. Any suggestions for shit I can steal?
>>
>>93671906
I'm learning CSS but I keep seeing people talk a lot about tailwind (and dreading css), this makes me kind of insecure. What is talwind? advantages over css?
>>
>>93672176
>he didn't write a react 3d renderer that computes every pixel as a react component
>>
File: 1684834018159446.jpg (6 KB, 227x222)
6 KB
6 KB JPG
>built all the standard projects that I can think of
>want to code more and build more projects
>unsure what to make
I've built a functional live-hosted REST API, two fullstack CRUD projects, one incorporating AWS cloud functionality, and multiple frontend toy projects demonstrating different design concepts and features.
I can't really think of what else I need to build to demonstrate career-ready skills. All I can think of is building the same projects with different tech stacks, or grinding leetcode for interviews.
I could also try scaling up my projects and figuring out the marketing and such, and then dealing with issues of scale and increasing userbases, but that seems like something you learn naturally as you progress, no?

Either way I don't want to act like I'm an expert of sorts, because I'm very far from it, but I feel like I have a strong grasp of webdev fundamentals now, and don't know what else I may need to learn to "cover my bases".

I think I'll try to get better at leetcode for interviews. I feel prepared for a junior role now.
>>
>>93672554
You should learn first CSS, and then Tailwind

>what is Tailwind?
It is hard to explain how it works, and more importantly why to use it, if you do not know CSS. I would recommend you to ignore it for now, and just get at least the basics of CSS down. Right now trying to understand the how and why of Tailwind will probably just overwhelm you
>>
I think I've said this before in this thread, but I hate job ads that ask for "passion"

I'm not passionate about this shit, I barely tolerate it because I want a job
>>
>>93672554
It is a css framework like bootstrap.
Basically all the css in already defined and you just add the classes to your html.
>>
File: 1685110901072.png (284 KB, 545x530)
284 KB
284 KB PNG
I know css and I still don't know why anyone would use tailwind
>>
>>93673853
Less time writting css.
>>
>>93673870
Yeah... no. That is bullshit.
>>
webdev is so fucking boring, but it has all the jobs
this is misery
>>
>>93673932
It's not though, all the classes are already defined.
You don't need to write any CSS unless you want to do a custom class.
>>
>>93673870
Wow and instead you spend that time shitting up your html with thousands of barely readable class names.
Genius.
>>
>>93673988
Can you show me on the doll where tailwind touched you?
>>
>>93673853
>>93673870
Does tailwind handle formatting? I'm dogshit with CSS and I'm too lazy/uninspired to get good at it. All I do is use flexbox to align things vertically and leave it at that. I see so many beautiful designs and have absolutely no idea how people pull it off. Crazy stuff.
>>
>>93674017
https://tailwindcss.com/
>>
>>93673998
I don't really have anything against tailwind.
I just don't get the point.
It seems like it's about shifting the styling complexity from your css into your html, which to me just makes everything less readable and maintainable
>>
>>93674044
>which to me just makes everything less readable and maintainable
if anything it makes it more readable since you can at a glance see exactly whats being applied..
and you're meant to use a component framework with it so you're not copy/pasting big lines of classes all over the place
>>
>>93673853
>>93673932
>>93673988
>>93673998
>>93674017
>>93674044

first of all, it must be noticed that it is not recommended for every case. If you are building something simple like a blog, for instance, you might be better off just doing vanilla css. on the other hand, when you have something more advanced like a react-based webapp, where you have components to isolate both appearance and functionality, it might be useful because working with utility classes saves you having to architecture reusable classes with a app-wide scope. Besides, there is the whole normalization. for instance, having the color palettes predefined ("bg-purple-200") saves you the trouble of going through hexcodes, and colorpickers.

Long story short, in its most basic form, it is just an utility tool.

>>93673967
correct
>>
>>93673005
bruh projects don't even matter lmao just spam applications and lie about your exp so you get interviews and grind leetcode so you actually pass them
you can learn everything about a tech stack required to pass a basic interview with just a few days of studying, ezpz; meanwhile leetcode can't be faked when they ask you about big O and time vs space complexity and all that fuckery
>>
Is getting a job hard or is it the fact that the only talk I hear about the job market comes from this cesspool of a website
>>
File: 1681243925423895.webm (104 KB, 410x490)
104 KB
104 KB WEBM
fullstack react bros, it's time to webdev !
>>
>>93673853
I don't use tailwind but apparently ChatGPT is pretty good at using it (it can't really work with your custom CSS classes unless you paste everything to it but it already "knows" tailwind)
>>
>>93673686
they want npc slaves who will keep their heads down and not ask for a raise
>>
>>93674074
>if anything it makes it more readable since you can at a glance see exactly whats being applied..
"what are dev tools?" for 100
>and you're meant to use a component framework with it so you're not copy/pasting big lines of classes all over the place
So I should apply it *on top* of mui? With its own theming engine and/or element level sx? HAHAHA
>>
how many queries per pageload is too much? I'm between 15-30 right now, do note though that this is on an administration page that lists 1000+ data entries. Page load is 0.3sec at most so far.
>>
>>93675417
>So I should apply it *on top* of mui? With its own theming engine and/or element level sx? HAHAHA
are you retarded? react, vue, angular, svelte etc, not ui libraries like mui
you encapsulate "px-2 py-1 rounded bg-white text-black hover:bg-black hover:text-white" into your own <Button> component, and use that instead of copying your className attr everywhere
>>
>>93675373
Yeah that's true
>>
>>93675781
Ahhh! Finally I understand it.

You want me to use a js framework, but with my own components (instead of using those that are already ready to use...) for which I then do the styling on my own. However, that on my own styling shall not be done with css, but rather with a framework which has the "components" ready to use...?

No, thanks.
>>
>>93675781
Problem with this is that you don't really need all of that. Optimally on a website you want recurring styles, not a free-form style editing for every goddamn thing.

I mean if you'd do that you may as well go back to using inline styles. You'd only lose out pseudo classes like :hover that way.
>>
There is not a single good cms
>>
Do you truly enjoy web dev or do you just do it for the paycheque?
>>
>>93672465
hi sir, my suggestions is perhaps you should do the needful?

many good courses available from durga, he teach you in the redeemed you will be, learn in days !

you may use the durga jobs site as your reference
>>
so i'm learning react and can do the basics of a class based component and a functional based component but don't have a clue the practicality of using one over the other.
to me classes seem more intuitive, but this could just be me not having seen a more complicated project yet.
>>
Does anyone have experience with railway.app? How does the price come, compared to AWS? I find it hard to imagine that railway would end up cheaper, but e.g. redis on AWS is a total fucking ripoff, whereas on railway it says less than a dollar/month.
Where should I put my backend in 2023? Not doing a regular vps, fuck that noise I'll rather pay for some convenience
>>
>>93668166
i like the catalog moaAR
>>
bunupu
>>
Any advice for junior front end QAs?
>>
Looking to do a side project. It'll have more features but for now I'm focusing on having it be a youtube downloader site clone. I decided to use NextJS to add another buzzword to my resume. However, NextJS seems to be more focused on small APIs or to call dedicated back-end APIs. Should I start over with just React and not use NextJS? I got a really simple page that works but I get a warning about how endpoint is returning a large response since I'm returning the video file. I'm thinking NextJS might not be the tool for this unless I separate the back-end and have NextJS call that dedicated server.
>>
>>93674516
It is hard but if you look online it'll sound a lot harder because people will only post when they're having trouble finding jobs. The vast majority of those are also junior devs or new grads, which is probably when it's the hardest since "entry-level" positions ask for 2-3 years of experience now. All the recent tech layoffs also make it harder since there's a lot more competition now.
>>
>>93674516
It's harder than it was, but generally this site over exaggerates things. People were complaining it was impossible to get a job when the market was red hot.
>>
>>93680660
I'd use Next just for it's routing if nothing else. Then make your components other than your top level page components fairly independent of Next.
>>
>>93681096
Yeah that was my thought. Right now I have the endpoint under the api folder for next but might have to move it onto it's own folder. In thag case, I'd need a separate node server within the same application, right?
>>
File: 1684329747195585.jpg (132 KB, 946x1123)
132 KB
132 KB JPG
there are maybe 20 junior webdev jobs available in my area and all of them have over 2000 applicants and require a verified 2 years of experience
it's literally not even possible to find a job right now
>>
>>93682998
>it's literally not even possible to find a job right now
It's possible if you have a CS degree but you probably don't have shit.
>>
>>93677506
I like coding
>>
>>93682877
There's a different API folder setup in the new version (still in beta I think). Not sure how much you can change the folder layout though. You can just have a separate API server using Apollo or straight express then just use Next as an intermediary layer.
>>
>>93683070
nope, you need internship experience and a portfolio too
>>
give me a SAAS idea
>>
>>93684315
pokedex
>>
>>93684353
you're fired
next
>>
>want to make something
>remember ux/ui and design
>don't want to make something
>>
>>93684874
what do you want to make?
>>
>>93684954
I was thinking about making a weight loss tracker mobile app where you don't have to make an account or for it to be connected to the internet to work but I realised it would be pointless without a good UX and I don't really want to be half way through making it realising that it sucks ass
>>
>>93683333
quads of truth
>>93683070
singles of nepotism
>>
>>93669101
React.gg I've never used it myself but it's spammed all over my Facebook and google need feed
>>
>>93671906
I used to make fun of tailfaggots and just use regular css. Then I realize most front end jobs want you to know it. It's actually pretty comfy and if needed you can make your own classes or even use regular css
>>93675910
Either you're misunderstanding or I'm misunderstanding you. You don't use Tailwind to style UI library components because they already come styled. You use it on plain shit like an html button. But for example if you have a material bottom nav menu, you wouldn't also put Tailwind classes inside it. Tailwind could be used to layout your responsive grid so you could place your UI component but you would color and size the components with the UI framework itself instead of Tailwind
>>
File: 1537722213357.png (104 KB, 292x357)
104 KB
104 KB PNG
>>93685007
time to look for an ux/ui gf, anon
>>
thoughts on migrating react and express projects into a single nextjs one?
>>
im sorry for being retarded pls dont bully me
i was studying js and html+css but quit it halfway deciding thats too boring switched to python with backend in mind, did a few funny things with django and then made cellular automata project with shit interface with tkinter and basically rules of every automata can be customized by user
i want to make full blown web app out of this so i could practice with apis, but i don't want it to look like complete shit is learning react and fucking with css is really unavoidable at this point to make it look good can i simply get away with bootstrap anons please
>>
>>93687728
no look into jinja and templating with django. you’ll need css though.
>>
Post your best web project
>>
>>93686521
So you actually want me to use a reactive js framework, with a component library on top, which gets styled with the built in theming engine, on which on top off I put another framework layer which does the styling, but not really and only in part, to make sure that everything that somehow the layout (which I did not even realize was a problem) does not have do be done in CSS but rather by adding utility classes to the components?

No thanks.
>>
>>93672163
>What's the best free or low cost way to deploy a very simple web app with very low traffic?

Either host static files, or rent a chap VPS. You can use the free credits from GCP, but that only lasts you one year then they are gone.

Personally I like to rent a VPS, it is 5-10 USD per month. Then you know exactly what you will pay. It is not free, hut for me free cause more headache than just paying $5/month.
>>
>>93688742
.
>>
>>93686260
Thanks
>>
>>93690959
Actually, just looked but it isn't free.
>>
I was just writing a post asking for help because a custom hook was performing an HTTP request twice when I remembered React mounts components twice on strict mode.
Fucking hell.
>>
>>93687728
Here fren, don't spend them all in one post.
......
............................................
.............................
...................
>>
>>93687182
What would be the expected benefits?
>>
how to manage prettier config when working on a group project

I'm working on a project with multiple people, and the prettierrc file in the root of the project is using tabs with a witdth of 4.

I prefer using just 2 spaces or a tab width of 2, since the larger it gets the more the code will be offseted to the right on my laptop screen which isn't that huge to begin with.

is there a way where I can view all the files with the format I want (just 2 spaces, or tabs isn't an issue), but to keep respecting the rules that are in the root of the project and to save all my edits as tabs with width of 4
>>
Well it's time to say it.
I've been doing some simple projects (or at least should be simple) using React.
I've tried to create custom hooks and reuse logic and components as much as I can.
Juggling dependencies to avoid unnecessary renders is making me want to kill myself.
>>
>>93693707
Here's an example, why do I see "Rendering WeatherDisplay" three times on my console?
I have disabled strict mode so all of them are "real" renders.

import { useEffect, useState } from "react";
import { useWeatherService } from "../hooks/useWeatherService";
import { getWeatherMetrics } from "../utils/getWeatherMetrics";

const WeatherDisplay = ({ lat, lon }) => {
const [units, setUnits] = useState("metric"); // ["metric", "imperial"]
const { data, loading, error, getWeatherData } = useWeatherService(units);

useEffect(() => {
getWeatherData(lat, lon);
}, [lat, lon]);

const weatherMetrics = data && getWeatherMetrics(data, units);

console.log('Rendering WeatherDisplay');

return (
<>
{loading && <p>Loading...</p>}
{error && <p>{error}</p>}

{weatherMetrics && (
<div className="flex flex-col space-y-4">
<h2>{weatherMetrics.cityName}</h2>

<div className="flex items-center space-x-2">
<img src={weatherMetrics.icon} alt={weatherMetrics.description} />
<p>{weatherMetrics.description}</p>
</div>
<p>Temperature: {weatherMetrics.temperature}</p>
<p>Feels like: {weatherMetrics.feelsLike}</p>
<p>Humidity: {weatherMetrics.humidity}%</p>
<p>Wind: {weatherMetrics.windSpeed}</p>

<label className="flex flex-col space-y-2">
<span className="text-sm">Units</span>
<select
value={units}
onChange={(event) => setUnits(event.target.value)}
>
<option value="metric">Metric</option>
<option value="imperial">Imperial</option>
</select>
</label>
</div>
)}
</>
);
};

export default WeatherDisplay;
>>
>>93693584
Why not just set { "editor.tabSize": 2 } in your settings, won't visibly change anything while respecting the prettier config
>>
>>93693749
First time: initial render
second and third time: after setState calls in useWeatherService, likely triggered from getWeatherData in the useEffect

It'd help us if you shared what useWeatherService looks like

Install the react devtools and check out the profiler to get some more insight in to why things are rendering
>>
>>93693961
>>93693749
Also, it's probably completely expected that it renders three times in this situation, don't bother to microoptimise shit like this, it's not going to affect performance at all because the reconciler is smart enough to know that nothing's changed if the render was unnecessary
>>
>>93693961
>>93694018
Thanks, that was my conclusion as well, I was worrying too much about renders.

Here are my hooks anyway, I have tested useFetchWithCatching in another service hook and it works fine.

import { useFetchWithCaching } from "./useFetchWithCaching";

const API_URL = "https://api.openweathermap.org/data/2.5/weather";
const OPENWEATHER_API_KEY = import.meta.env.VITE_OPENWEATHER_API_KEY;

const buildWeatherUrl = (lat, lon) => {
return `${API_URL}?lat=${lat}&lon=${lon}&appid=${OPENWEATHER_API_KEY}&units=metric`;
};

export const useWeatherService = () => {
const { data, loading, error, fetchData } = useFetchWithCaching();

const getWeatherData = (lat, lon) => {
const url = buildWeatherUrl(lat, lon);
fetchData(url);
};

return { data, loading, error, getWeatherData };
};


import { useState } from "react";
import axios from "axios";
import { withCaching } from "../utils/withCaching";

export const useFetchWithCaching = () => {
const [data, setData] = useState(null);
const [loading, setLoading] = useState(false);
const [error, setError] = useState(null);

const fetchData = withCaching(async (url, params = {}) => {
setLoading(true);

try {
const response = await axios.get(url, params);
setData(response.data);
} catch (error) {
setError(error);
} finally {
setLoading(false);
}
});

return { data, loading, error, fetchData };
};


I know I can simply use the units parameter on the openweather url but I want to save as much API calls as possible.
>>
>>93694078
Yeah, so the three console logs would come from
1. initial render
2. setLoading(true)
3. setData(response.data);

nothing really to worry about
>>
>>93694118
oh, and setLoading(false) at the end, but setData(response.data) and setLoading(false) would be batched together
>>
>>93694118
>>93694137
Thanks, I've been worrying about this for a good while before realizing I was simply wrong.
>>
>>93693360
it's an old and borderline abandoned project, so the benefits would be a more up to date codebase all in a single repo
>>
>>93693584
>I prefer using just 2 spaces or a tab width of 2
That is wrong. Use 8 spaces or a tab width of 8.
>since the larger it gets the more the code will be offseted
Because you're doing it wrong. Don't nest deeper than two levels. If you need deeper nesting, you're doing a bad job.
>>
>>93689942
>Either host static files
Yes there are many ways to do that for free, but I'm looking to deploy a server side app.

>You can use the free credits from GCP, but that only lasts you one year then they are gone.
Interesting maybe I should look at that. I think my free AWS credits expired but I'm not sure if I signed up for GCP or not.

>Personally I like to rent a VPS, it is 5-10 USD per month. Then you know exactly what you will pay. It is not free, hut for me free cause more headache than just paying $5/month.
Yeah that's what I was thinking.
>>
File: canstockphoto26807912.jpg (104 KB, 800x548)
104 KB
104 KB JPG
Do you guys use rate limiting for your apps in case you're hit with a DDOS or something?

I guess there's Cloudflare but I think you have to own your own domain to register with them? And I would rather avoid buying my own domain.
>>
>>93694963
i'm pretty sure if you use the free cloudflare pages and it comes with ddos protection. And you get a free cloudflare domian, which is like mywebsite.pages.dev
>Pages runs at the edge like a CDN, and Cloudflare’s perimeter is so large that it can handle a DDoS
https://community.cloudflare.com/t/pages-pricing-ddos-protection/317763

i have a couple of pages websites and I didn't have to give them my credit card or anything
>>
File: cloudflare.png (50 KB, 970x365)
50 KB
50 KB PNG
>>93695675
>free cloudflare pages
That would work for a frontend, yes. But I want to protect a backend.

>you get a free cloudflare domian, which is like mywebsite.pages.dev
That's a subdomain right? I think to register a normal site with Cloudflare you need to have your own domain, pic related, see it says example.com. I think I tried before with a site hosted on Fly.io, and it was on a subdomain of fly.dev, e.g. `example.fly.dev`, but it wouldn't work because you have to point your domain's CNAME record to Cloudflare or something. And I don't own the `fly.dev` domain.

Maybe I should just build rate limiting into my backend for the moment.
>>
People talk like no one is using Java anymore but actually it 's used more than C#

Why does everyone trash talk Java so much? It's not that bad honestly. I feel worried about investing time into something that everyone seems to hate and says will go away soon. But it's what my workplace uses, and I don't really have the energy to pickup a 2nd framework on the side so I'm thinking I'll just Javamax.
>>
>>93697039
I"m pretty sure their "pages" websites have ddos protection by default, because you're using their platform to create and host the website, as opposed to just routing your traffic through them as you would with an external website. They do have workers for backend stuff, but they're pretty basic and it's hard to do much with them. Probably easier to do your own rate limiting by caching ip addresses or something i guess
>>
>>93697074
Java is REAL TIME, sir
>>
File: 3907812.jpg (47 KB, 765x430)
47 KB
47 KB JPG
Sirs im learning aws and a common example topic is marketplace.

For example you can use aws firehose to buffer order transaction before storing to a file in s3.
This is just a simple example without real world application, right?

I really, really doubt that even a global marketplace like alibaba receives 500+ orders each second. No fucking way people buy some much.
>>
>>93697074
Java is pretty fast and solid, but it's so fucking verbose
>>
>>93697074
Hobbyist dont tend to use java since for simple projects you can use python to save time developing. Although, entrepises use a lot of java. I work with java.
>>
File: 234234.gif (826 KB, 473x205)
826 KB
826 KB GIF
>Living with parents
>Used to give me shit when I didn't study at high school or college
>Now they give me shit because they say I study too much and I'm losing my grip on reality

Fucking midwits.
>>
>>93697097
>I"m pretty sure their "pages" websites have ddos protection by default
For frontends yes. I need to find a way to secure a backend though. Maybe I will just add some rate limiting.

Also Cloudflare Pages says they have unlimited bandwidth anyway so I wouldn't even care if someone DDOSed the frontend.

>They do have workers for backend stuff, but they're pretty basic and it's hard to do much with them.
Fair. I guess I could never be bothered with serverless functions like this. I'm not sure how portable the code is between different providers. If I just make a monolith, like an Express app, then I can port it to run basically anywhere. Even if I have to rent a cheap VPS.

>Probably easier to do your own rate limiting by caching ip addresses or something i guess
Yes probably.

>>93697281
Losing your grip on reality how? Because they think you should get a job instead of spending so much time studying?
>>
>>93697315
>Because they think you should get a job instead of spending so much time studying?
I already have a job as web developer, I just want to become a great programmer.

>Losing your grip on reality how?
Because I sleep like 6 hours and for the past weeks all I did during my waking hours is work, study, lift and read Don Quixote or Moby Dick.
>>
>>93697389
they want you to go out and get a gf, get some friends, enjoy life. Stop being a bug.
>>
>>93697415
They only way I know of enjoying life is doing whatever the fuck I want, and now I want to do this.
>>
>>93697281
>sleeping 6 hours
I wouldn't recommend this, most people need 8 hours. Lack of sleep can lead to serious health issues. Be safe brutha.
>>
>>93697450
I'm working on it, when I study a lot I have problems switching off.
>>
>>93665046
Is lua a good basic bitch backend for webapps?
>>
>>93697471
Godspeed anon.
>>
>>93697558
not really. people mostly use openresty with lua and that is not something you would want to develop mvc webshit with, it is suited for edge services with minimal handlers
>>
Where can i yoink some good website globohomo blocks for normie websites?
>>
>>93697558
rails is good for that if that's what you're looking for
>>
File: 243423.jpg (59 KB, 725x720)
59 KB
59 KB JPG
>>93697281
>he doesnt know you need to either be always chasing girls or just pay one to pretend she is yours gf
>call others midwits
>>
>>93697558
It can be done, but I don't really recommend it.
t. work with lua on the backend
>>
File: 1258103888827_f.jpg (53 KB, 500x375)
53 KB
53 KB JPG
Anyone know a vs code extension that will save your code as a pdf exactly how it looks in VS code?

I'm making a lot of dev notes for various different things whilst learning react and it would be good to put all of the pages together in separate pdf files so i can refer to them when needed.
>>
>>93698951
Never mind found this
https://marketplace.visualstudio.com/items?itemName=robertz.code-snapshot
>>
>>93677504
I picked wagtail, what do you have to say against it?
>>
is there a native way for node/express to send a response to multiple clients? or are you stuck using sockets?
>>
>>93700615
i just realized i could create a json resource and have the clients fetch it automatically on an interval but that seems excessive
>>
I fundamentally have no idea how to set up Visual Studio to do what I need. I just want to be able to train using the environment I will actually be working out of when I'm finished, but I cannot figure out how to configure VS to allow me to do that.

The environment I'll be working in is ancient and incredibly basic, it's on .NET 4.5.2, uses only generic C# handlers not ASP.NET stuff, and they have it set to debug by launching html documents in IIS Express server and testing the API calls there. Super, ultra basic shit.

I cannot figure out how to create a new project in VS 2022 that matches this environment. I don't think I want an ASP.NET project. There's no entry point on our project -- it's all just API calls, but all these templates have an entry point and triggering the debug triggers that entry point, not the html document you're on. And none of the other project templates seem even remotely similar to what I want.

The most frustrating thing is all these training tutorials are set in VS Code and they can set up this environment in literal seconds but I can't seem to find a way to do it at all inside the tool I'm actually going to use when I'm done. Sure, I could switch to those, but half the point is to learn the IDE I'll actually end up using at the same time as learning the languages / concepts.
>>
How do I convince TypeScript that a property of an object is not undefined?
>>
>>93701253
Tell it then you'll beat it up if it doesn't comply
>>
>>93698951
Use something like Joplin or Obsidian/Logseq. All of them support tagging and syntax highlighting.
>>
>>93701766
I just wanted something that would export my code as a pdf but this is fine >>93699098

It saves as a png instead, but I can always compile all my png files into one pdf.
>>
>>93701921
>but I can always compile all my png files into one pdf.
nta, but smart anon, there's always a way
>>
jQuery is clearly the future
unrelated, I had people almost laugh at me when I said I pirated series, their laughter stopped once I told them that I watched them on opening day and on high quality full hd
>>
>>93683151
you can define the api in the same folders as where the pages where now
>>
>>93694963
Yes, I use cloudflare + rate limiting rules for login pages.
>>
Im working as a fulltime webdev for a few months now but ever since I got hired my mentality has basically been "fuck coding unless I'm getting paid for it". I actually quite like coding, but unless the project idea sounds alluring enough to me I'm just gonna doomscrool on tiktok and yt shorts all day long on my freetime.
any project ideas that aren't just different variations of calculator apps?
>>
>>93702653
build a tic-tac-toe
>>
>>93702231
JQuery is the future?
>>
>>93702673
bro c'mon, anything that can't be done in just 2 hours
>>
>>93702684
no, it's my troll-post of choice
>>
>>93702653
Timed one-time password app. Build every aspect of it from scratch.
>>
>>93702783
what's the point of the app after you authenticate?
>>
>>93702884
Stay idle until you need to authenticate again.
>>
File: channels4_profile.jpg (9 KB, 176x176)
9 KB
9 KB JPG
>>93665046
The best German /wdg/ channel started uploading videos in English now
https://www.youtube.com/@thenativeweb-en/videos
I've been watching his videos in German for a while now, it's probably top 3 web dev content on Youtube. I'm pretty sure it will blow up in English too. Better subscribe now, so you can say you where one of his first 50 subscribers.
>>
File: 1684680323121543.png (12 KB, 323x570)
12 KB
12 KB PNG
const root: HTMLElement = document.getElementById('root')

two seconds later TS be like
>NOOOO YOU CANT DO THAT WITH ROOT IT MIGHT BE UNDEFINED
>>
its time to switch to ws
>>
I DON'T KNOW WHAT TO DO
I DON'T KNOW WHERE TO START
FUCK DO I USE THE FREECAMP PYTHON TUTORIAL I'VE GONE THRU FOR?????????????
>>
>>93704468
doing it this way instead should work
const root = document.getElementById('root') as HTMLElement
>>
>>93704737
I know but I just find it funny how it feels like TS is barely useful at all and the vast majority of the time you're just appeasing its autism.
>>
>>93704824
sorry, i deleted my original comment because it had an error

yeah i think the first way was a type annotation and with the "as" is a type assertion, so they're slightly different
https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions
>>
>>93701253
Either use a type intersection:
let o = (some object) as Whatever & {x: number}
o.x = 1234

Or use a guard:
let o = (some object)
if ("x" in o)
return o.x
>>
What exactly is the point of having vendor-provided object-relational-mappers like Hibernate, etc. underneath the Java JPA? It confuses me.
>>
I am making a little react app and I want to have a sub nav bar kind of thing that renders a different pdf document to the screen depending on what nav button you click. I got the PDFs to render fine, but I am retarded and can't for the life of me figure out how to dynamically render and hide the docs I want to render, or how to change which doc is being rendered. Any suggestions?
>>
>>93705071
You used vite instead of the shit broken create-react-app right?
>>
>updated handlebars
>it broke everything
t-thanks
>>
look at all this shitty javascript code that both fetches data and manipulates dom attributes

absolutely disgusting
>>
>>93705281
I did not. I am very new to react as a whole. All my webdev experience is php and I would like to no longer use PHP because it's actually the worst shit I've ever had the displeasure of using
>>
>>93703925
you can do better than this
pathetic
>>
File: 1685021690323267.gif (3.08 MB, 422x436)
3.08 MB
3.08 MB GIF
>>93705919
look at all this awesome javascript that creates the entire document, fetches data, manipulates the dom and does everything
>>
File: image.png (25 KB, 322x206)
25 KB
25 KB PNG
Absolutely DISGUSTANG
>>
File: clarkdave.png (81 KB, 647x433)
81 KB
81 KB PNG
https://github.com/Microsoft/TypeScript/issues/21295#issuecomment-362894445

is this man an angel sent from the heavens?

why do they do fucking cutesy shit like this anyway? no one has ever wanted to have their terminal cleared fucking faggots
>>
>>93707912
all numbers in javascript are 64bit floats and NaN is a float in any language that implements floats correctly
>>
>>93709737
>all numbers in javascript are 64bit floats
Except when they are BigInt

>and NaN is a float in any language that implements floats correctly
NaN is a float when the float implementation follows the IEEE 754 standard.
That's not the only way to implement floats, as this standard is pretty terrible at representing monetary values.
>>
>>93704824
Imagine using a type system and then complaining that the type system is detecting type errors.
>>
>>93702653
general AI
>>
>>93665046
i couldn't find the home server general so i am writing here. i entirley fucked up my nginx config (mainly because of certbot and bad bot blocker) and i can't fix it. should i just copy my config files and remove ngnix or is there another way
>>
>>93713202
>Except when they are BigInt
BigInts aren't the number type, they're a separate `bigint` type
>>
>>93715879
for what purpose

your nginx config would only be what's in "/etc/sites-enabled/xxxx", just move the file somewhere else and put a working config in there
>>
File: 4375608.jpg (683 KB, 2218x2216)
683 KB
683 KB JPG
Do you plan to always be an employee programmer, or do wish to be self-employed, working on your own web business?
>>
>>93717890
my configs are fine. i tried to remove all the configs in /etc/nginx/sites-enabled/ and restart nginx but it still doesn't work i get the following error:
server nginx[1182125]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/asdasda.org/fullchain.pem"[\code]
>>
File: 1685275513831.jpg (112 KB, 500x667)
112 KB
112 KB JPG
Keep having interviews but I'm not getting a job, which is making me freak out that I might be too autistic and weird to be hireable
>>
>>93718747
are you getting any feedback about your interviews
>>
>>93720280
Both times I got cucked by people with more experience, to be fair the other one was a weird situation where they suddenly couldn't hire a junior anymore
>>
Got a job at the company of a friend of a friend, then got strung along for a month and a half waiting for them to sign some new contract so I could start working and now I've found out through the grapevine that they're probably gonna stiff me on the job altogether. Feels great guys real great
>>
>>93720571
>they're probably gonna stiff me on the job altogether
ESL here, what does that mean
>>
>>93720865
I won't get the job despite it supposedly being a done deal.
>>
>>93721028
should've refused to stay without a written contract
>>
I can't manage to find a solution for Garbage Collection in firefox.
My game runs smoothly in chromium browsers but it's all jittery in Firefox.
I tried to implement pooling and to change the FPS of the game but without success.
The game runs in a 2D html5 canvas.

Any idea?
Here's some firefox profiler if someone wants to look: https://share.firefox.dev/45wiE8B
>>
>>93718118
Probably a permission issue
>>
how do people make their website rank for any kind of search i type in? so to be clear it takes the search and runs it through their website, shows the results, and that result page shows up in the search engine
i will take any advice and i want to take it to the extreme with a lot of domains to test
>>
>>93721028
you got paid though, right?
>>
Making a project that has a lot of statistical calculations and shit being done on the backend so I'm using python for that. I think it'd be easiest if I use a python framework for the rest of my API as well. I have experience with django but I'm wondering if I should use fastapi or something else entirely. Frontend would be next js. Would I get some advantage from using a different backed in regards to next?
>>
>>93721112
>>93721340
nope they left me blowing in the wind and would push the deadline for me to start working by 2 weeks every time id contact them. yes, i should have bounced a lot quicker but it's very difficult to find a job right now and this position had a lot of unique benefits. end up looking like a dumbass regardless though
>>
I want to fuck around with some small project using websockets in a SPA. Should I use a js framework or is vanilla ok?
>>
Any of you used Wasm? I've seen things saying it's faster than JS so maybe it's worth trying?
>>
>>93722009
FUCK js frameworks
>>
>>93722037
it's not faster unless you're trying to implement a game engine from scratch.
>>
>>93665046
Why aren't you learning three.js+glsl? I made an audio visualizer with it and I am WINNING so much with it.
>>
>>93723199
https://litter.catbox.moe/hgmrgm.mp4
>>
>>93723199
no idea what tranny js and that other thing are
>>
>>93723199
>Why aren't you learning three.js
Because it's not a priority for me. Most websites don't use 3D animations. So learning it wouldn't open many jobs for me. And my current side-project ideas don't require 3D animations either.
>>
File: Cloudflare_Logo.svg.png (61 KB, 2560x862)
61 KB
61 KB PNG
What is your solution for DDOSs and restricting bandwidth usage?

Do you use Cloudflare? Or some kind of rate limiter? Or do you not bother, and just hope that nobody will spam your website with tons of requests?
>>
I have a Parser folder that contains list.txt, parser.js, and output.js
It's just a simple script that outputs a simple API(?)
I want to include it in the GitHub with the Nextjs project
Should I put the Parser folder in the src directory or outside of it?
I do need to import { whatever } from my list.txt
>>
>>93723600
sorry bud this one falls square in the figure it out yourself column
>>
>>93723600
create a separate project, publish it to npm and install it in your next.js project.
or just add it to your lib folder inside src
>>
>>93723547
i think it will make your resume look good tho
>>
>>93723627
But I am not familiar with file structure convention
It does make sense to put output.js in the src directory, but the other two is what my basic script needed to make output.js, which I will import my data from
(I meant to say output.js in the last line from previous comment)
>>
>>93723681
Good point. I think lib would make sense now that you said it. It is for preconfigured stuff after all
>>
>>93723690
Specialization is a thing, just look for companies hiring for that kind of thing. But I believe that's more of the UI/UX/design field
>>
Please please tell me if it is a good practice or not to have multiple services connect to the same database. I have such a hard time making the descision.

Should I keep my current design of having multiple lambda functions and servers connecting to the same database, or should I only have one server connecting to it and let the others speak to the db through this server?
>>
File: 1665716339289515.png (29 KB, 280x551)
29 KB
29 KB PNG
>adds another extremely useful and simple debugging tool to your browser
thank you based ff
>>
>>93725093
I'm pretty sure I'm the reason they added autcomplete for CSS in the stylesheet view.
I took a poll I sugested it and they added it shortly after.
>>
>>93725040
It shouldn't matter. but I like to only have one connection. It's better for security and you can do caching
>>
>>93725515
But then why is the database per service pattern constantly being recommended?
>>
>>93725645
for security and you can do caching
>>
I dont want to do web dev anymore
>>
What are your guys' education level?
I am 14 units away from transfering to a university with an Associate in CS
But I see people getting jobs in webdev with no degrees at all and I just want to join the workforce asap
>>
>>93726539
> I see people getting jobs in webdev with no degree
where did you see that?
>>
>>93726632
youtube
>>
Whats the usual workload of a junior web developer? In literal terms. Whats would someone like that do in one day?
Im asking people who got through the experience.
>>
>>93727775
it depends, but they're usually pushy, in my case it was do much but even more important do solid shit that will work 100% of the time
>>
using sequelize with typescript is so aids
>>
Nobody ITT has actual job?
>>
>>93728670
Nope
>>
>>93728714
:(
>>
File: 1419886341338.png (54 KB, 480x535)
54 KB
54 KB PNG
>>93728670
we're all neets here
>>
>>93728670
not me
>>
>>93727775
>what does a web developer do?
>it couldn't possibly be that they develop websites, could it?
>>
>>93727775
don't have a job but I've had interviews where they told me what they'd expect me to do initially which is fixing small bugs that they leave for juniors to do as part of the onboarding process
>>
>>93728714
>>93728923
>>93728939
Dont worry bros you are all going to make it.
2 year wagie here.
>>
>>93729092
The job market was completely different 2 years ago.
>>
I am generating a bunch of stable diffusion images. I haven't touched web stuff in years. I am aware of things like Angular, Node, Typescript, but would likely get it wrong on what they do if questioned. I wanted to build a simple tagging library with a web interface. I would normally throw the data (binaries) included into postgresql and write SQL calls to fill tables and decode pictures out of the DB. I feel like this is the wrong approach. I had a site in Django, but it feels like a bad fit for something that is fairly dynamic. If I tag something I would like to avoid a full page reload. I know there are ways to accomplish this is Django, but I feel it isn't a strength of the technology.

What is a reasonable modern stack to tag a bunch of files from a file system.
>>
>>93729126
Maybe I got lucky while being a massive cuck.
My biggest regret is not getting a job earlier because I was too afraid of the interviews and embarrassing myself.
I am sure most people have heard it already, but no matter how much time you 'prepare', you will learn more in 1 month in a real job, than 'learning' and preparing on your own for a year.
>>
>>93702564
Do you have your own domain then? Because I'm pretty sure you need one for Cloudflare right? E.g. you can't just host on Fly.io and then give your `thing.fly.dev` URL to Cloudflare because you'd need to have control over the `fly.dev` domain.

Maybe I should just buy a domain
>>
>>93729397
I'm not good enough to get interviews
>>
File: 1621438317084.jpg (475 KB, 456x628)
475 KB
475 KB JPG
Why is my code not working?
I'm learning js with freecodecamp and I have this exercise:
>Return the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.
>For the purpose of this exercise, you should also capitalize connecting words like the and of.
so I wrote this code:
function titleCase(str) {

let arr = str.split("");

for(let i = 0; i < arr.length; i++)
{

if(arr[i] == " ")
{
i++;
arr[i].toUpperCase();
}

else
{
arr[i].toLowerCase;
}
}

let result = arr.join("")

return result;
}

titleCase("I'm a little tea pot");

And it's not working at all, it reaches the if statement at line 8 but the call to .toUpperCase does nothing, I put a console.log after it and it show the letter still in lowercase.
And this has happened before, I write code that seems sound but does nothing at all, even copying the solutions that fcc gives to me and nothing. happens, is it something with javascript, the enviroment fcc uses to run their tests or the fact I use firefox?
>>
>>93730399
You're splitting on an empty string, so it's splitting into an array with one character per index, not one word per index. Can't speak to the rest, but that's definitely a problem.
>>
>>93730399
this is a classic programming exercise, it's good
solve it with loops THEN solve it with just regex afterwards, that way you train 2 different knives
>>
>>93730795
That's intentional, I wanted the loop to go through each letter of the string.
>>93730980
I know but regex are so painful.
>>
>>93730399
So, you've got three bugs here, and two of them are the same thing just in a different way.

The first is that you're not actually calling toLowerCase -- you left out the parens, so it's outputting the code of the function instead of calling the function.

The second and third are happening because you're treating a value type as if it were a reference type. So review your bootcamp's sections on value and reference types, then come back to this. Remember, strings are value types, unless you're a weirdo and create it as
new String('text')
>>
>>93731349
>The second and third are happening because you're treating a value type as if it were a reference type
Okay read about it, it was a necessary refreshment. Changed the code a little and now it works.
Thanks. I should ask for help more often.
>>
How difficult would it be to create a geo-locked torrenting site plus private bittorrent tracker?
The site would be only available in my country (that way I avoid the gaze of the 15 eyes).
Traffic would be around 10k users per month.
>>
>>93724960
UI/UX/design don't know how to code
>>
>>93731810
Nice, glad to see you got it figured out. Also, have a fun alternative doing it per word instead of per character, like the other anon suggested:
function titleCase(string) {
let words = string.split(" ");
for (let i = 0; i < words.length; i++) {
words[i] = words[i][0].toUpperCase() + words[i].slice(1).toLowerCase();
}
return words.join(" ");
}

console.log(titleCase("I'M a lItTlE tEapOt."));
>>
>>93673853
Design consistency and nothing is entangled to something else, so when you come back to change a design later you know exactly what's going on.
>>
File: 1672781071273775.jpg (62 KB, 976x850)
62 KB
62 KB JPG
>>93665046
I hate css so goddamn much
>>
File: ahh.gif (2.9 MB, 306x640)
2.9 MB
2.9 MB GIF
I DONT WANT TO DO WEB DEV ANYMORE. I DONT WANT TO DO WEB DEV ANYMORE. I DONT WANT TO DO WEB DEV ANYMORE.
>>
>>93734388
Yet you must.
>>
>>93733529
Get in line
>>
>>93733529
How the fuck someone got filtered by css? It's not that complicated
>>
>>93734388
it's true
>>
Is there a good non-hack way to allow font switching without JavaScript? All I really want is an option for a dyslexia mode and my site is otherwise JavaScript free.
>>
>>93739425
Javascript isn't a bad thing anon.
It's not something you can do with css.

It is just one JS function and a click event on the button to toggle the font class.
>>
>>93665046
Tell me /g/, what WordPress plugins will help me create a generic application process with user accounts to track progress?
>>
>>93739917
No of course JS isn't bad, I was just pondering the options I have. At the moment the site is fully written in OCaml and that would have meant adding in a new language for a singular function. There's a library called Js_of_ocaml that I might try for generating JavaScript out of OCaml code.
>>
File: 1685362270459.jpg (55 KB, 705x585)
55 KB
55 KB JPG
:: 4chan archive search ::
dev:: anon
tools:: vanilla JS
link:: https://4search.neocities.org/
repo::
progress:: Removed dead archives and boards and added some new ones
>>
babby's first backend project suggestions?
>>
Which cloud provider do you use, /wdg/?

Or do you run your websites on your own hardware?
>>
>>93736901
>dunning
> kruger
>>
I give up. I'm going back to my shitty wagey job
>>
>>93742230
how far did you get
>>
>>93742424
had 4 interviews, was unsuccessful in all of them at various stages. I'm mostly giving up because I don't spend much time learning or programming anymore, I'm not saying I'm really good but I don't think there is much more I can learn on my own so my time would be better spent earning some money

I'll still apply for jobs but I do feel like I'm checking out now
>>
>>93742230
>>93742496
What wagey job do you do? You prefer it to web dev?
>>
What is the convention on naming directories (namespaces) in php? I mean, singular/plural. Services/Controllers/Entities(Models) or Service/Controller/Entity?
>>
>>93742565
>What wagey job do you do?
construction.
>You prefer it to web dev?
In some ways I do, but web dev is a lot better because I'd get more free time, more money, and an actual career. Apart from the long hours and mediocre pay construction isn't all that bad actually but I can do better
>>
>>93742588
Usually plural
>>
>>93742588
there's documents descriving all of that, something along "php naming conventions" or something like that
>>
What's the best static site framework?
>>
>>93742132
Just a normal VPS

>>93743469
11ty
>>
>>93743469
Astro
>>
How do I become extremely wealthy as a web developer?

Zuckerberg did it, so it's possible, right?
>>
File: 1526784448413.jpg (60 KB, 960x720)
60 KB
60 KB JPG
>>93718747
this
>>93720349
>>93742496
AND THIS
I'm a recent graduate, the last professional experience I had was my internship as a FullStack Dev. My Resume and my job application clearly state that I am looking for my first job.
So why do you schedule 4 interviews with me, in the span of 3 weeks, only to say at the end "we went with a candidate who has more experience".
holt shit this is so frustrating, what am I doing wrong? Am I too autistic? Do I talk weird?
>>
How can you actually develop professional web dev skills? I have thought about looking at whatever is on cert programs and learning all that / getting the certs.

If I had to setup a website from scratch, or even project from scratch, I wouldn't really understand how to do it. I understand how to program and add new features to something but not really the bigger picture of programming lang, web server, etc architecture. I have actually been able to hold a job with this skill but I want to get better.
>>
>>93745155
>"we went with a candidate who has more experience"
it's hard to enter, once you enter you farm "experience", and then everyone wants you

the thing is they want "a junior with 2 years of experience" aka, a mid with the salary of a junior
they're scum
>>
With React, is it best to keep all methods in main.js and pass the as props to the components or should you leave all the methods in the component files?
>>
>>93745155
Idk man. Maybe just wait it out until tech is easier to get into, idk what else to say
>>
File: 1280px-AdSense_Logo.svg.png (36 KB, 1280x185)
36 KB
36 KB PNG
Any of you integrated AdSense into any of your sites?

If so, is it easy?
>>
>>93745155
>>93718747
>>93720349
>>93742496
I had exactly one interview and got a job. And I'm a 31 year old, fool who is probably gonna get his degree when he is 35.

either you're very dumb and the employers realized just that... or you tried to get into FAGMAN for no reason.

Just fucking apply in your neighborhood.

I do react with TS by the way. React is ok, TS is a mess. But I also have *very* good knowledge of vanilla html/css/js and that is always good.
>>
>>93748001
>I got incredibly lucky so you're a retard
yeah ok thanks
>>
File: 00003-741108458.png (678 KB, 704x704)
678 KB
678 KB PNG
>>93665046
I'm quite confused about how to integrate non-React elements with React.
Should everything every class used with React be a subclass of React.components if you are not allowed to change state outside of React?
>>
>>93748001
I think TS is alright
>>
>today was my first internship day
>yo anon, you're gonna be working on he frontend for our app
>Sure thi-
>We're gonna need an interactive svg map where you can zoom in on different regions and can apply different data analysis tools on it
>That will be for the map, finish that part and we will tell you which part you will work on next
>Alright, dont forget to send us your figma designs by tomorrow evening

What the fuck did I get myself into?
>>
File: FUCK YOU LEETCODE.jpg (54 KB, 1120x427)
54 KB
54 KB JPG
Good morning sars. Just wanted to say leetcode can suck my dick
>>
>>93750047
nvm I figured it out, I forgot to delete one of my console.logs.
>>
Do you guys know of tools, tips, tutorials or anything that could help me create an interactive timeline page?

There is a multitude of tools that create these little timelines for corporate projects and stuff like that, but they are very limited. I'd like to create something clean and customizable with html/css/js.

Say for example I have a database with bands and their albuns, I could just type "beatles" and see which albuns were released in which year throughout the timeline. Anyone have any experience with that?
>>
>>93749568
How did you get an internship if you don't even know that?
>>
Why is Firefox JS engine (Spidermonkey) so stupid?
function doThing(n) {
if (n > 0)
return n * 10
if (n < 0)
return n * 5
return 0
}

is more than twice as slow as this more complicated code that has extra functions and function calls
function timesTen(n) {
return n * 10
}
function timesFive(n) {
return n * 5
}
function doThing(n) {
if (n > 0)
return timesTen(n)
if (n < 0)
return timesFive(n)
return 0
}

(actual code not shown but it's almost that simple)
On Chrome there is no difference in performance.
This is for something that has to be done dozens of times per pixel on large images, so it needs to be fast.
iOS Safari and Firefox have similar (incomprehensibly slow) performance whereas Chrome is predictably good.
>>
>look at Japanese web dev community on twitter
>get absolutely mogged
For a country being memed for being so old and archaic in tech they sure have a lot of great devs
>>
>>93665046
i cant fucking take writing HTML anymore. its shit. CSS is shit. Working with JS is shit
>>
>>93748241
Well, you *are* a retard if you try to get into FAGMAN.
>>93749216
It's a pain in the arse, with completely misleading errors getting thrown, completely insane interpretation of "type checking" and zero real benefit except for annotations in your IDE.

It actually lets you do insane shit and you think that you are save, because types, while in reality shit hits the fan.
>>
>>93751253
>Well, you *are* a retard if you try to get into FAGMAN.
Any company that doesn't immediately reject my application eventually rejects me for someone with more experience. I wish it was easy as you said but I feel like I don't have any real chance as a self taught guy with no CS degree. I'm just too much of a gamble when there are so many people to choose from

Or maybe I do suck ass and I don't realise it. Not sure how I guage that but it's possible
>>
File: 1669685658570521.jpg (126 KB, 1920x1541)
126 KB
126 KB JPG
Help a brainlet out. I'm building my react website and setting up blog posts using react-router and gray-matter/marked to use markdown files for the blog posts.

Is it better to use gray-matter info from the .md files to iterate through posts, or make a separate JSON file for that.
Just using info from the .md files would probably be simpler, but I'm worried about the overhead. Or maybe a separate JSON file would be simpler since it's easy to iterate.

What to you guys think? I am retarded, please understand.
>>
i have experiemce with embedded and low level programming in general. C, C++, java and python. There is a posibility for me to get a job on web dev (i've hardly ever writen 50 lines of js). How hard will the transition be ?
>>
>>93750502
Breh I spent the whole day trying to render a geojson that, for some godawful reason, renders perfectly fine on any preview website, except when I ran it in my own app.

        <ComposableMap>
<Geographies geography="/map.geojson">
{({ geographies }) =>
geographies.map((geo) => (
<Geography
key={geo.rsmKey}
geography={geo}
/>
))
}
</Geographies>
</ComposableMap>


This is literally the barebones example they offer on the website for react-simple-maps and it refuses to show me anything other than a big ass square. No errors, no nothing.
Yet the same geojson works perfectly fine if I paste it on someone else's sandbox. But if I open that person's sandbox, take their geojson file and replace mine, then my app works.

What the literal ass fuck is going on? Spent the whole day just trying to work this out...
>>
NEW
>>93753383
>>93753383
>>93753383
>>93753383
>>
>>93751737
You should ideally be using a SSR framework (like Astro or Next.js) if you're going to be rendering out markdown files, so that the client doesn't have to download the markdown parser and render out the contents.



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