• Breaking News

    Thursday, December 3, 2020

    TIL (by accident) you can use a div id as a JS variable without initializing or assigning with getElementById / querySelector web developers

    TIL (by accident) you can use a div id as a JS variable without initializing or assigning with getElementById / querySelector web developers


    TIL (by accident) you can use a div id as a JS variable without initializing or assigning with getElementById / querySelector

    Posted: 03 Dec 2020 12:29 PM PST

    <div id="testers"></div>

    <script>
    testers.style.width = 50;
    console.log(testers)
    </script>

    Common knowledge? Recent update?

    *EDIT* Thanks for the comments.

    TL;DR: This is deprecated and bad practice

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

    What's the best software developer resume/portfolio you've seen out there?

    Posted: 03 Dec 2020 11:30 AM PST

    I want to change jobs from a junior front end to full stack and feel like I'm not selling myself well enough on LinkedIn, etc and need some examples to see where I'm messing up.

    Are there any resumes/portfolios that blew you away?

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

    If you are working on a personal website do you use any template or start from scratch?

    Posted: 02 Dec 2020 11:03 PM PST

    Edit: thanks a lot for your time and providing your insights fellow redditors. Really appreciate it.

    So I want to practice my grid layouts and design in general, so if I make like 5-6 websites for practice do you guys start from scratch or does it make sense to use a template for like the header and navigation design, and manually work on the bulk content.

    Thanks.

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

    Every year we get to choose our own side project for Xmas, here's our Snowman illustration contest... thing. (Laravel + React)

    Posted: 03 Dec 2020 04:51 AM PST

    25 Years of JavaScript History

    Posted: 03 Dec 2020 07:13 AM PST

    I'm new to WebDev, should I start by designing for desktops and scale down or design for mobiles and scale up? Reasons for the question are outlined in the post

    Posted: 03 Dec 2020 12:22 PM PST

    I've done 2 very basic web pages to practise CSS and HTML, like most people do I designed them for desketop. But I've been reading about mobile first design and the articles made some good points.

    First, that most people (myself included) browse the internet on their phones, and this trend is only going to become more pronounced.

    And secondly, when you design for desktop you make a more complex, advanced website. For example, you have more features, hover animations, etc. Whereas when you design for mobile first, it's a simpler design with less complexity, and then you can add features as you scale up for bigger screens.

    I have been reading a lot about design and projects as a beginner but I haven't seen anyone talking about building mobile websites, any thoughts, ideas or opinions?

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

    Senior web dev working from home

    Posted: 03 Dec 2020 12:06 PM PST

    Video linkGreetings all, I am a senior web developer that spent years working from an office with hundreds of colleagues. Now I'm working from home... and I'm adjusting as such.

    Made a short video documenting my daily rituals, and hope to start posting web dev tutorials, along with other web dev 'liftestyle' content.

    I hope my efforts entertain and possibly inform are successful.

    Thank you 🙌

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

    JavaScript can exploit Copy to Clipboard in the Browser - This could be a huge Security Issue

    Posted: 03 Dec 2020 01:54 AM PST

    FakerPHP provider for nice stock imagery placeholders using https://picsum.photos

    Posted: 03 Dec 2020 08:35 AM PST

    How do you guys memorize and remember all codes from any tools or programming language ?

    Posted: 03 Dec 2020 02:30 AM PST

    So, I'm starting out to learn web dev. I was wondering how do you guys memorize and remember such long codes (HTML,CSS,JS,Python,C#,C++, tools like Sass, Stylus, Pug, Meteor)

    Thank you in advance!

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

    Just enough inversion of control to perform?

    Posted: 03 Dec 2020 07:11 AM PST

    I'm having a hard time nailing down the concepts of IoC and/or dependency injection especially since all the guides I'm trying to follow just abstract any of the actual learning behind a library they've included.

    I think I understand the main points. Objects should be loosely coupled and I shouldn't need knowledge of how to instantiate class A to instantiate class B

    However I have reached a point in my project where class A needs class B to do it's job. I've created an interface for B so I don't have to use any solid definitions but am still hazy on how to actually build the objects.

    Creating B and passing it into A's constructor seems off to me. Obviously I can't create B inside A's constructor anymore. Is it enough for me to move B's instantiation into a method on A which I could then mock later for testing?

    Please help!

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

    What makes for a good pull request?

    Posted: 03 Dec 2020 09:50 AM PST

    I'm wondering what are some of the ingredients of pull requests that you reviewed and really liked. Examples: code simplicity, covered functionality, plenty of tests...

    Thank you in advance!

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

    The Odin Project vs. Freecodecamp.org? Pros and cons?

    Posted: 03 Dec 2020 06:03 AM PST

    Can anyone offer insight into advantages or disadvantages over starting one or the other? I recently left a job in pursuit of a career change into web development and just started TOP hardly a week ago. I've seen musings that Freecodecamp.org is supposedly more beginner friendly. Long story short, I'm trying to weigh my options before getting too deep into one or the other and I have a heavy suspicion the most practical answer is "don't overthink it, pick one, and just start coding."

    Thoughts?

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

    Tailwind adds 4.5MB to my page weight. Am I missing something?

    Posted: 03 Dec 2020 05:43 PM PST

    I just checked the tailwing CSS file for my project and its 4.5MB. Am i forgetting to compress something?

    Bootstrap is only 1.6MB. I think I am going to use that for my next project.

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

    Web site builder that has form for uploading content?

    Posted: 03 Dec 2020 09:46 AM PST

    If you were a offering services as a video editor and building a web site to promote your business, how would you have used deliver the videos?

    Is there a web site builder that includes a form element/upload functionality like that?

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

    What is the best coding language to work with?

    Posted: 03 Dec 2020 05:07 PM PST

    Which language would you say is the "best" to work with? In terms of usability, least frustrating, easiest, most fun?

    I've been learning JavaScript, CSS, and HTML. JavaScript is alright but sometimes it's just really hard for me to figure out how to fix something or pinpoint the problem in a program. I don't know if I'm bad or if it's just like that haha.

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

    JWT - Clarification on the purpose/workflow of refresh tokens

    Posted: 03 Dec 2020 04:52 PM PST

    Hi all, Here's my understanding of the purpose/workflow of refresh tokens, is it correct?

    1. When we generate a JWT or an access token, we have the option if it should expire or not. Regardless when a user receives a token, it will be stored in the browser's localstorage.
    2. To keep our users safe, we would need to make the JWT expire often (in the case someone steals the JWT). But if we do so, that means our users will be logged out often.
    3. To counteract this, we use refresh tokens. Without the user noticing, we will generate a refresh token with an API call such as "/token' that stores the refresh token on a database and on the browser's localstorage. If the user refreshes the page or visit another page that needs the user to be signed in, our site will check if the localstorage's token is similar to the ones in the database.
    4. On a last note, because refresh tokens are queried often, we should index our refresh_token column in our database.
    submitted by /u/badboyzpwns
    [link] [comments]

    Best method to host user-uploaded videos 5-30 seconds long? S3, Youtube API? etc?

    Posted: 03 Dec 2020 12:37 PM PST

    Hello, I'm developing a cooking web app where people can create share recipes, and add images and short videos showing different steps to complete the recipe.

    First I was thinking to simply host all the media (images and videos) inside AWS S3, but after looking at the data transfer costs, it could get quite expensive. Also you need to deal with compression, convert videos to streamable format, setup a webplayer, etc.

    So I'm looking for other alternatives to host these videos.

    I thought maybe I could create a youtube channel where all the videos will be unlisted, and the users will upload the videos straight to that channel through the recipe app using the youtube API. Then just store the youtube link and just use the youtube player to display them.

    Does anyone see any downside with this workflow or problems that might arise? Do you know of any website that does anything similar?

    Do you know of a better way to host user-uploaded videos?

    Thanks!

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

    Load Your Images Faster with the Next-Gen AVIF Format

    Posted: 03 Dec 2020 04:15 PM PST

    If I create a website with html,css,javascript or even react...what is used to create or connect some interface through that the owner of the website can edit the content without editing the code?

    Posted: 03 Dec 2020 04:13 PM PST

    Is it like some backend like node.js? Or somehow connecting wordpress?

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

    Best Stack for Property Directory Website?

    Posted: 03 Dec 2020 12:17 PM PST

    For a hobby project I want to build a property directory website (think Zillow, Rightmove, etc.)

    What would be the best tech stack?

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

    Chrome 88: Digital Goods, Lighting Estimation in Augmented Reality, and More

    Posted: 03 Dec 2020 12:02 PM PST

    AWStats installation help for Windows 10 :(

    Posted: 03 Dec 2020 03:15 PM PST

    Hello world. I'm wondering if anybody here uses AWStats? I'm hoping someone could help me with the installation process. I have zero knowledge about this, about Perl, Apache, etc. I have a user in my company who's requesting to have this installed on his computer. We are using Windows 10. I've tried following a couple instructions I found online but no luck. Thanks in advance to those who can help.

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

    ASP. NET Core hosting

    Posted: 03 Dec 2020 03:11 PM PST

    I'm planning on making a website which I intend to commercialise and make money from - I'm most familiar with asp. Net core so that will likely be my tech stack. I'm in need of the best routes to go in terms of hosting. The project will hopefully be plentiful in users and user generated content including images. Will likely use EF Core with sql server. I've heard services such as aws and azure offer a year on a free plan, but any recommendations would be great as I'm not so familiar with hosting large ASP .NET Core projects, only developing them.

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

    No comments:

    Post a Comment