Web Development

  • When to use a server side framework?
    by /u/sctilley on October 7, 2022 at 4:55 am

    So I'm new to web development, trying to do self taught stuff in my spare time. So please correct me if I get any of this terminology wrong. My first major project I did by myself was a full Django app with a database and users and everything. But now I'm trying to get better at the basics, focusing on css and responsive websites. So to do this I'm making a lot of simple single page websites, but then I wanted to make something a little more complex and add some internal links to other pages. I realized with just html files I can't use the templating system that Django has, and I have to literally add the header/nav bar and link the css, etc for each page. But if it's just like 5 pages should I just do that? or would you use a framework like Django or Node.js? Is there a line in the sand somewhere for projects that do need a framework and those that don't or are their guiding principles or what? submitted by /u/sctilley [link] [comments]

  • I signed up for an online web development boot camp in order to further improve my skills and stay up with the game, and within less than one week, I managed to raise my score and rank 1st 🤓
    by /u/Khalid_Soufan on October 7, 2022 at 4:49 am

    submitted by /u/Khalid_Soufan [link] [comments]

  • Dark mode of my previous Shopping App UI Design. Opinions are appreciated
    by /u/Redcell_Visualz on October 7, 2022 at 4:21 am

    submitted by /u/Redcell_Visualz [link] [comments]

  • Best dark mode website designs?
    by /u/zxyzyxz on October 7, 2022 at 3:05 am

    What in your opinion are the best dark modes implemented in live websites that you've seen? I like Linear and Radix UI, looking for others. submitted by /u/zxyzyxz [link] [comments]

  • Why does chrome translate my lorem ipsum text into "the internet of pain"?
    by /u/Entercheesynamehere on October 7, 2022 at 1:36 am

    As the title says, when I put some placeholder text for a webpage, google translated it to "the internet of pain", which I thought at first was the actual translation before I remembered a.) Lorem Ipsum is nonsense, and b.) There's not really a Latin word for internet. Is this a weird joke from Google or something else? submitted by /u/Entercheesynamehere [link] [comments]

  • Best way to restrict clients from communicating to a back-end?
    by /u/Time_Terminal on October 7, 2022 at 12:23 am

    I want to secure a backe-end (BE) API so that only a specific web-client and a specific 3rd party API (webhook) can make calls to it. Otherwise it should return a 403. There are no users and no user authentication, just a simple public facing website. FE For the FE should it create a randomized username and password string, and send it to the BE using the Basic Authorization header? And should the username and password be saved in environment files within both the FE and BE? 3rd party API And for the 3rd party webhook, do I just create a randomized string Bearer token and have them send it in every request? Do I need PKCE? Is that different than Basic Authorization? submitted by /u/Time_Terminal [link] [comments]

  • Is there a way to require ID verification to signup for storefront account to be able to purchase products?
    by /u/mta1741 on October 6, 2022 at 11:49 pm

    Is there a easy way to do this on any large e-commerce store like Shopify, or square space etc? Or would I have to get it custom built? For example: you need an account on the website in order to purchase items, but in order to get an account you need ID verification from a company like stripe etc. Any info appreciated. I have googled this extensively and haven’t found any solutions. Thanks. submitted by /u/mta1741 [link] [comments]

  • Practical approaches to partial success / soft errors in REST?
    by /u/TheDPQ on October 6, 2022 at 10:57 pm

    Working on an old system thats being refactored into REST. So that means while I have control over the new endpoint I don't have control over existing data. We can't require all the fields we want: Non-critical fields weren't required before so we have a lot of empty data. Ff we require it they will be blocked from modifying a more essential part of the record. We can't validate the types of fields we want: opps 10 years of the phone number allowing any data into it means people use it for other things so I can't even restrict what characters go in it because maybe our client's system relies on it for special logic in their system when they integrated to us. Fixing it manually isn't an option: Too much data, we don't own all of it, and I started logging 'shadow require' rule just to see had bad a problem it was on a single resource type and yaaaah the impact would be huge if we had turned on that rule. Not every bit of bad data deserves to have the request blocked but I want something that helps us clean up our data. So throwing a hard validation error is not really possible, it blocks them on doing the changes THEY want have no direct motivation in helping us make our data more consistent. There are a couple of other reasons I want a partial success and the soft-errors is part of that. We can let them know their request was successfully processed but I want to return soft errors of all the things we are unhappy about. Any resources into insight a good approach or why this is a terrible let me know. My initial search was just a bunch of 'it depends and solve it based on your needs' but beyond arguing about the HTTP codes didn't see any examples offhand, just people asking and non-answers on how to get started. Do I just tack on a "soft_errors" field to my dataset? Do I still return a 200? I remember how absolutely awful things were before REST and status codes used properly (ie: HTTP 200 but only an error is returned so you have to check THAT to determine if it was successfully or not by parsing the payload) and I don't want to give someone cause to curse me in a few years. submitted by /u/TheDPQ [link] [comments]

  • I made websites 15 years ago, and I have a new idea. Can you help me translate it to modern tech?
    by /u/biluinaim on October 6, 2022 at 10:44 pm

    Back in the day, I made pretty complex stuff with PHP and MySQL (plus HTML and CSS of course). Now I have more experience coding software (C++), and I've dabbled in several languages but I don't know much about JavaScript (I'm learning!). I've not looked web development in many many years. I'm not looking to make a career, but I'd like to be able to build my own websites - nothing too complicated. So now I'd like to learn modern web dev as I go with a new project, a directory site with user registration. So my mind goes instantly to PHP and MySQL. Is that still a good way to do things? I have seen that Node.js can also communicate with MySQL, and I can make it do that, but I don't know yet how to integrate Node.js into a webpage, I'm just making standalone .js files. I have also read a bit about MongoDB, but I'm familiar with PhpMyAdmin so I'm thinking of sticking with MySQL. Is it better for me to learn JS or stick with PHP? Advice and reading materials much appreciated! submitted by /u/biluinaim [link] [comments]

  • Quality Is Systemic
    by /u/fagnerbrack on October 6, 2022 at 10:05 pm

    submitted by /u/fagnerbrack [link] [comments]

  • Lightweight Avatar Generator. Runs on server and browser too and most importantly returns avatar unique primary colour.
    by /u/mugendee on October 6, 2022 at 9:25 pm

    submitted by /u/mugendee [link] [comments]

  • 3d Infographic... How do I get something like this going?
    by /u/donsalametti on October 6, 2022 at 9:22 pm

    So I saw this multiple times now. My favorite one here: https://www.filancore.com/ when you scroll down there is this " circuit" thingy which can be hovered and it explains kind of a work flow. ​ Where do I find people who can create one for me and how do I implement this in my website? any help appreciated! I have no idea where to statrt submitted by /u/donsalametti [link] [comments]

  • canvas parallax effects ?
    by /u/Reddet99 on October 6, 2022 at 9:06 pm

    I was browsing the web for new websites to be made and i found that amazing parallax effect that i don't know how this works , can someone with experience knowledge tell us how this is made or is there any tutorials out there can you share them with us : https://sougen.co/ https://genesis.sougen.co/ i know they are made with three.js and canvas but how is that possible on making something like this , its amazing , is there something i can learn to make something like this and what should i need to learn to do something like this ? submitted by /u/Reddet99 [link] [comments]

  • How do you store your session ids in redis?
    by /u/Red3nzo on October 6, 2022 at 5:36 pm

    Currently I’m writing a session based authentication micro-service for application & came across a puzzling crossroad & that is whether to store the “session_id” as the key with the “user_id” that session is associated with as the value. I don’t know which one would be ideal I’m currently using the session_id as the key which I thought was a better choice since I can easily look that up & check which user is logged in What are your thoughts 💭? submitted by /u/Red3nzo [link] [comments]

  • I can already see Im going to get attacked for this, but out of curiosity. Why has no one made an alternative to WHMCS using wordpress?
    by /u/Jordz2203 on October 6, 2022 at 5:36 pm

    I can see I am going to get downvoted for this even though it is just a question out of curiosity. Why has no one made a wordpress plugin/theme to use as an alternative to WHMCS? submitted by /u/Jordz2203 [link] [comments]

  • 13 web games from JS13K to play, fork, hack
    by /u/lee337reilly on October 6, 2022 at 5:29 pm

    submitted by /u/lee337reilly [link] [comments]

  • I am looking for a light CSS "framework" that I can use with vanilla JS and html
    by /u/Nkrth on October 6, 2022 at 2:09 pm

    I don't struggle with CSS but I would like to lighten the CSS work I need to do, but without using heavy JS frameworks like Bootstrap. Of course, it can contain some js but I prefer a vanilla CSS framework/library. Have a good day Edit: It needs to be light enough I can remove it without having to do much rewriting. Edit: Its been only five hours and I already got a lot of good responses and help. I would to thank all of ya. I will keep read future comments and later I will try to write a little post detailing my experience with proposed solutions/libraries. submitted by /u/Nkrth [link] [comments]

  • webRTC (UDP) Vs webSocket (TCP) ? UDP is faster but why does websocket appear more popular?
    by /u/dromance on October 6, 2022 at 1:42 pm

    I have a friend that wants to build a real time platform. It appears websockets or libraries like socket.io are the most common application. However from what I see UDP is faster (webRtc). Is there any reason webrtc is not as popular or implemented as often? Perhaps websocket is easier and the webrtc increased difficulty of use is not necessarily worth it's advantages? ​ Thank you submitted by /u/dromance [link] [comments]

  • Looking for a report I read a while ago from some big company like walmart claiming more sales for every 100ms reduction in page load speed.
    by /u/Jordz2203 on October 6, 2022 at 1:19 pm

    I cant remember who it was, but Im looking for a report I read a while ago from some big company like Walmart claiming more sales for every 100ms reduction in page load speed. Or something along those lines submitted by /u/Jordz2203 [link] [comments]

  • How to Safely Share Your Email Address on a Website
    by Lorenzo Bonannella on October 6, 2022 at 12:54 pm

    Spammers are a huge deal nowadays. If you want to share your contact information without getting overwhelmed by spam email you need a solution. I run into this problem a few months ago. While I was researching how to solve … How to Safely Share Your Email Address on a Website originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.

  • Don’t Overwrite Visual Labels With `aria-label`
    by /u/speckz on October 6, 2022 at 12:52 pm

    submitted by /u/speckz [link] [comments]

  • Collective #732
    by Mary Lou on October 6, 2022 at 11:43 am

    State of CSS * js13kGames 2022 winners * Use cases for CSS comparison functions

  • Static page and a form
    by /u/nwatab on October 6, 2022 at 11:10 am

    When you make a static page that requires a form, but doesn't require a CMS, how do you make it? Either a server or headlessCMS sounds overkill. Do you know any good solution for free? Thanks, submitted by /u/nwatab [link] [comments]

  • A Guide to Python Lambda Functions, with Examples
    by Ini Arthur on October 6, 2022 at 9:00 am

    Learn how to recognize, write and use Python lambda functions — a handy option for one-liner functions, IIFEs, and functional programming. Continue reading A Guide to Python Lambda Functions, with Examples on SitePoint.

  • If something is achievable either with only CSS or by using JS, which one is better to use?
    by /u/Notalabel_4566 on October 6, 2022 at 8:00 am

    I am quite experienced with CSS/CSS3 and now I am learning vanilla javascript and I was wondering that. submitted by /u/Notalabel_4566 [link] [comments]