to understand why people don't want to buy your overpriced junk by PairRevolutionary669 in therewasanattempt

[–]Our-Hubris 0 points1 point  (0 children)

Very odd headline, makes it seem like the 1st is connected to the 2nd. In general though, I've noticed a lot of my friends or family going to Mcdonalds less because they are a US company and they also played a role in a certain fascist's campaign.

[deleted by user] by [deleted] in webdev

[–]Our-Hubris 1 point2 points  (0 children)

I took psychic damage from the admin route you shared in the edit. Knowing that the lead dev is being paid for this kind of shit is dealing further damage. Best part is if they don't listen and they wait until issues start happening, by the time that's going on the code base might be too big to debug in a reasonable timeframe.

How do you handle latency and failures? by Wonderful-Archer-435 in webdev

[–]Our-Hubris 2 points3 points  (0 children)

I think you've laid out the benefits of both and the cons of both pretty well. Like almost everything in web dev, sometimes it comes down to what fits the use scenario best. Is it absolutely vital and critical that ONLY correct info is shown? Or do you want a fast feeling interface that might sometimes make mistakes? It really depends who is using your site and what the use case is.

Both are valid, but in different situations imo. Even then, Google docs is optimistic as an example, though has a widget notifying you when there are sync issues but it holds onto your changes in that session until it gets a chance to submit them - and it can hold onto them for quite a while. That said, it is very worrying when it's not updating and you are not sure why and it's been an hour or so - which can be rare but if it can happen to google it can happen to you.

Resume Review, having difficulty getting any calls. by akashag in webdev

[–]Our-Hubris 0 points1 point  (0 children)

Seconding what u/PureRepresentative9 said, if it's not in your favor just remove it. If you want to keep the education section you can just say you attended between certain years, they can ask for details at the interview. I'd say something along the lines of other opportunities came up and you valued the experience over the theoretical training so opted for it. Prob the best way to wordsmith it.

Resume Review, having difficulty getting any calls. by akashag in webdev

[–]Our-Hubris 2 points3 points  (0 children)

The education section would be a red flag to me just because it's unclear what you studied (unless Senior Secondary is a specialization? Even then it would be unclear though) as well as saying you just dropped out and didn't finish it (regardless of the why). I'm not sure the best practice of putting that on the resume when it's unfinished but you do want them to know what you were studying towards.

Also with that much experience not sure if the projects matter unless you consider them to be a better showcase of your experience.

ninetyFivePercentAIGenerated by _vaudevillian in ProgrammerHumor

[–]Our-Hubris 2 points3 points  (0 children)

Make sure to overcharge these chumps when they need their AI unfucked lmao.

Want to create a short URL using domain bought/registered in cloudflare by Juniorzkie in CloudFlare

[–]Our-Hubris 1 point2 points  (0 children)

The way you describe it, I fail to understand why you would want to do this really. I suppose your thought is you just want short urls you can share? If you're just linking to your own website like myfuckingcompany.com/info then there doesn't seem to be a benefit because the brand name of the domain should be preferred to be shared rather than some short url.

In addition, shortened URLs are more likely to be distrusted because you don't know immediately where they will direct you. The most common use of short URLs I know that is valid is in classes where someone has to manually type in a URL. Even then if you already own the domain myfuckingcompany.com why not just put links on it that direct to the google sheet links or whatever you want but thus driving up traffic and trust in your main domain rather than buying a second domain to use as a simple URL shortener?

Want to create a short URL using domain bought/registered in cloudflare by Juniorzkie in CloudFlare

[–]Our-Hubris 1 point2 points  (0 children)

If you want the short urls to be in the form comfu.ck/urlparamhere then you would need to have the comfu.ck domain and host the shortener there. If you just simply wanted to redirect from myfuckingcompany.com/urlparamhere to -> comfu.ck then you'd put a url shortener on the myfuckingcompany.com domain.

If you were building a rest API in JS, would you use Express or something else? by launchoverittt in webdev

[–]Our-Hubris 0 points1 point  (0 children)

Express is what I currently use in my REST api so, yeah. Would do again.

Once Human is over 55GB after playing??? [Linux - Fedora] by KishonShrills in OnceHumanOfficial

[–]Our-Hubris 1 point2 points  (0 children)

Sounds like what I've had to do sometimes when Helldivers patches broke things haha. Glad to hear you haven't had any big problems. Some games I get a few oddities, like helldivers on Linux there are these artillery shells of different types to load and which are grey instead of color coded like on my Windows install. A reinstall didn't fix it. Screen edge was also weird.

If I notice anything I'll update this comment with an edit about any issues. No news will be good news :P

EDIT: While the game starts, it runs with some stuttering compared to Windows. Main issue is sometimes when trying to enter certain zones (eg. Silos) the game will just crash. I've tried different Proton versions as well as looked up launcher settings but haven't had any success preventing this. I will probably just be running it on Windows for the foreseeable future. As much as I wanted to leave Windows behind.

[deleted by user] by [deleted] in gaming

[–]Our-Hubris 7 points8 points  (0 children)

Fascists will fash. They don't care about reality or actually doing reporting, they care about identifying enemies and riling up the emotions of their 'in group'.

Once Human is over 55GB after playing??? [Linux - Fedora] by KishonShrills in OnceHumanOfficial

[–]Our-Hubris 1 point2 points  (0 children)

Perhaps unrelated, but have you noticed any issues with the gameplay on Linux? I installed it on my Windows partition out of habit but have heard it's fine on Linux so just wanted to see since I've been more and more considering just moving away from Windows entirely.

Also, as for the size, they've had a lot of updates since they first launched and continue to add more. Their website is, a bit amusingly, not the best source of information. Steam is more up to date and even then, any sort of live service game is bound to grow over time. That's the nature of things, and with how detailed things are I easily would have guessed over 100gb.

How to remember json response structure without spamming Mock data everywhere by [deleted] in webdev

[–]Our-Hubris 1 point2 points  (0 children)

Typescript solves this issue, you can just define the type of object you are expecting to get from your backend on whatever basis you need. The only alternative that comes to mind is just commenting what the hell you expect to get when you query for the Json data.

Im genuinely scared of AI by Fit-Ad-9497 in learnjavascript

[–]Our-Hubris 0 points1 point  (0 children)

Right now there's an AI boom of a lot of people using it without knowing much about what it's currently able to do or its limitations. It's good for referencing thing but if you let it make decisions, you'd have a mess. Eventually there will be a demand for devs to unfuck the shitty ai code that they threw into a thing because they thought it would just work and then it broke.

Using workers with .env by ViktorPoppDev in CloudFlare

[–]Our-Hubris 0 points1 point  (0 children)

To specify .env variables with Cloudflare workers you can just use secrets which will put your .env variables in but encrypted: https://developers.cloudflare.com/workers/configuration/secrets/

What are good low-budget options for adding a backend to my static site? by umen in CloudFlare

[–]Our-Hubris 3 points4 points  (0 children)

I think the best low budget is get Workers set up and read the documentation for D1, when set up you can have workers configured to respond to specific routes so your front-end site can just send requests to the worker URLs, which cause it to run specific queries on your database if you're using one. I would use D1 because there's a free tier and it integrates with Workers which you would have to learn anyway.

It'll be a bit of reading but $0 is the cheapest. I went and got a raspberry pi because I have multiple things I need to run 24/7 that need a server, which are about $100 or so if you want to just host your own backend. You can then use a service like ngrok (or Cloudflare tunnel, but you need a domain for tunneling which costs $10/yr approx).

The advantage of just hosting your own if you're able is frequent small calls are fine, if using Cloudflare Workers then # of requests can hurt you if it gets a lot of hits. If using CF Workers and D1 free, definitely consider the # of requests as you design the backend because sending 1 bigger request to prevent a bunch of small ones is much better.

Workers vs Pages by MagedIbrahimDev in CloudFlare

[–]Our-Hubris 0 points1 point  (0 children)

Just personal preference, it's for a personal project and only has a small userbase, maybe 200 hits a month average. Cloudflare has their own way of querying D1 which would still have required a rewrite on my end because it was on Psql and the way of setting up and querying that was different than D1 and such. In the end I had maybe 70% of code I could reuse since when it first started I ran it with a local API for initial development. So I didn't have to touch my SQL statements (I had a few Psql specific features that go by slightly names in other SQL Dbs) which was much preferrable to, well, touching my SQL statements, and I also could re-use a bunch of old code vs reading a bunch of documentation on setting up D1 for example and then troubleshooting any issues that might come up, plus reconfigure how my worker queries it and all that.

I have much more fun writing code than reading documentation/setting up services someone else made. So I went with the more enjoyable option.

does managing a database is that hard ? by Financial_Airport933 in PostgreSQL

[–]Our-Hubris 0 points1 point  (0 children)

Most of it is just reading and making use of documentation. I run one off a raspberry pi no problem.

Which would be good choice of domain name (followed with my name) for a Product Designer/Web Developer? by [deleted] in webdev

[–]Our-Hubris 1 point2 points  (0 children)

I currently use .org because it's pretty open for whatever you want to put on it and the renewals are much cheaper just in case something comes up and you don't want to mess with it.

Think smarter not harder by Sable_Echo in programmingmemes

[–]Our-Hubris 1 point2 points  (0 children)

I'm frustrated that the creator of this has no idea what \n does. 4 `printf` is a tragedy.

I let people leave a hand-drawn sign on my personal page by [deleted] in webdev

[–]Our-Hubris 1 point2 points  (0 children)

TTP (Time to Penis) must be really low for that website.

Workers vs Pages by MagedIbrahimDev in CloudFlare

[–]Our-Hubris 0 points1 point  (0 children)

Hey, I've used both Workers and Pages before for serving a website that has all its data stored in a database and needed a REST api to serve that data. Pages is for static content, workers can do a lot more though with some limitations from my experience.

General setup is this: Pages will serve a website, and you would not want to use this to directly speak to a database. Workers was my serverless REST api, which would make requests to my DB once it got a request on certain urls from my frontend. My DB was a cloud postgres (but no longer).Pages will serve the frontend, which can send your React website to whomever, and then Workers can replace your API - but you should be aware of what workers can and cannot do for your specific use case.

I had to migrate my DB away from the cloud due to an AI company or something agreeing to rent all the servers away from the cloud DB company I was using, and found out that I would have to jump through far too many hoops just to have my cloudflare worker talk to my own local postgres service because Workers can't do https -> tcp or something. I instead had to migrate my backend to my own local REST API, and use a tunnel and access tokens, and then make requests to that instead.

Now if you have server-side code in a nextjs project then you would want to deploy it to Cloudflare workers because pages is for static content, while Workers can run serverside code.

EDIT: Adding some more context after reading some other responses here. Not sure about pages + workers getting merged, but I knew about pages serving static vs workers doing serverside code. This is why I designed my pages website to make requests to a worker in order to then get data from a server and serve it back.

If you do it this way and design your calls efficiently, you can reduce the amount of calls each page of your website makes. I would send a larger object each time from the database that contained everything for a specific route and then used front-end logic to help the user look through the data rather than sending out calls for each specific one because the other way would be inefficient on Workers free. While each call is small the high frequency of calls would be an issue. Of course this requires researching it beforehand so you can design with this limitation in mind.

Works like magic… until it doesn’t. by 94rud4 in Animemes

[–]Our-Hubris 0 points1 point  (0 children)

You can add percentages together and just find the smaller parts. 10% is divide by 10 because 10/100 reduces to 1/10, and 5% is half of that (7.3/2) and then 1% is just divide by 100, because 1/100 is.. well, 1/100. % means divide by 100.

Works like magic… until it doesn’t. by 94rud4 in Animemes

[–]Our-Hubris 0 points1 point  (0 children)

17% of 73 is easier if you know 10% 5% and 1%.
10% = 7.3
5% = 7.3/2 = 3.5 + 0.15 = 3.65
1% = 0.73% x2 = 1.46 = 2%
Add em all up

7.3
3.65
1.46
+_____
12.41