• Breaking News

    Friday, April 3, 2020

    You Really Don't Need All that JavaScript, I Promise web developers

    You Really Don't Need All that JavaScript, I Promise web developers


    You Really Don't Need All that JavaScript, I Promise

    Posted: 03 Apr 2020 05:44 AM PDT

    My new project I was working on this week. Mouse trails with vanilla JavaScript

    Posted: 03 Apr 2020 10:16 AM PDT

    Chrome - Temporarily rolling back SameSite Cookie Changes

    Posted: 03 Apr 2020 02:32 PM PDT

    [Showoff Saturday] I made web app to watch YouTube's videos (synchronized) and chat with friends

    Posted: 03 Apr 2020 03:14 PM PDT

    4 CSS Grid Properties (and One Value) for Most of Your Layout Needs

    Posted: 03 Apr 2020 07:22 AM PDT

    Demand for Web Developers

    Posted: 03 Apr 2020 03:28 PM PDT

    hi, pretty unfamiliar with the world of web development, but I do find it interesting, and seeing as how the internet probably isn't going anywhere anytime soon and much of what we do involves interacting with websites, it seems a pertinent skill to have. I would also think it to be a relatively specialized area of knowledge to have. So, one would assume demand for web developers to be robust, notwithstanding our current situation of course.

    Having said that, I'm sure I'm not the only one who has thought this, and as such many people might be considering pursuing this skill. The government labour market projections in my country are "fair", meaning that upcoming job openings will be pretty much equal to the number of job seekers. I don't find this particularly enlightening, so any wisdom you can offer is appreciated:

    -is the burn out rate high? do people often burn out after a short time in the field?

    -is the turnover high? do people frequently switch out of the field after a short time?

    -what sort of differences are there in the market depending on freelancing vs working for an organization?

    -is it difficult to break into the market with little or no experience?

    and etc! Thanks!

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

    [showoff saturday] Virtual Hugs! I built a site for sending virtual hugs as we cant hug in person at the moment

    Posted: 03 Apr 2020 03:02 PM PDT

    How do I care less about what i will learn the next day? Because i think i am getting crazy.

    Posted: 03 Apr 2020 02:39 PM PDT

    Okay, so i started programming in general two years ago, just messing around, and about a year ago i started learning it seriously. Since than i have learned ton, i also have a stable entry level job as a fullstack developer, with normal salary in my country. But, every day, once i finish my job, i instantly start working on my own projects, watch programming related courses, videos,. Read books. I find them fun, but also one of the main reasons i do them is because i want to have a good job in the future. And i am also scared that if i lose my current one, i wont be able to get new one for a long time. I want to know basically everything and i am spending hours after work to learn stuff.

    One of the worst things is that, even tho i work on my own projects, i almost never finish them. Again, mostly because i think that working on finishing them is just really tedious because most interesting stuff had been already done at the start of the project.

    I would say that main reason why that is happening to me is because i want to learn a lot in the short period of time. I want to become financially stable soon, i want to get better job, i want to know more. And i also set for my self really dumb "deadlines", mostly impossible, and when i fail them, i feel like i have wasted all that time. And those deadlines are coming out of nowhere. I am constantly thinking which chapters i will read the next day, or what features i will implement, but whenever i dont, i feel like a total dumbass for spending that time chatting or watching youtube.

    Also, i would say, funniest thing about my situation is that i am 19 years old, still in my first year studying CS, i know, i have a lot of time ahead, but i am thinking like i am grown up adult who has to learn asap in order to "survive".

    I am enthusiastic about game development, but again, funny thing is that i dont do any, because i am so invested into web programming in order to gain enough knowledge for financially stable jobs that i am freaking out. If i spend next year "mastering" most of web dev fundamentals and also some tools, i will be able to get a good job, but at the same time, game development and dream to become full time indie dev will get delayed by a year or so.

    So could anyone help me out with this situation? How do i stop overthinking and doing those stupid mistakes over and over again?

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

    I feel like this is a stupid question, but I have no idea how to resolve these issues within github

    Posted: 03 Apr 2020 12:07 PM PDT

    I was notified that some of the files in my yarn.lock need to be updated. I have no idea on how to do that. Is this something I do with git or do I need to install something else to update these or modify the file?

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

    Looking for Examples of User Access System design

    Posted: 03 Apr 2020 01:57 PM PDT

    I've been looking online for a while but I can't seem to find anything that would help me out so I'm wondering if maybe you guys would know.

    The system I'm working on right now needs to lock certain things behind user credentials. so for example:

    User A cant see something that User B entered, but User C can because User B shared it with them. Right now we have some SQL columns labels "Owner" and "Shared". Shared is comma delimited (which I dislike, but it works).

    The issue comes in when we expand this to various other systems in our product that are linked to each other. For example:

    File 1.txt is part of Project A, We want all users with access to Project A to see file 1, but not all people that can see file 1 should be able to view Project A.

    With out current system is seems rather clunky, and like theres redundancy in having each part with its own SQL columns designated to access. So I'm looking for examples on alternative ways to do this. i don't know if a single SQL table handling access would work, or if there needs to be more things like SQL Triggers added into the DB.

    Does anyone know of any resources where I can find examples to this? or have any experience designing something like this?

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

    SSL on a local hosting?

    Posted: 03 Apr 2020 01:57 PM PDT

    I am running a socket server on localhost with port 3000.

    I have done port forwarding and am using NO-IP to get a domain name for the server.

    How is it possible for me to generate a full, chained SSL certificates for my local server to be available to people who aren't on my network?

    I need it in order to make SSL communication with my client, which is secured with SSL on a different domain

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

    SCSS function to generate semi-transparent color that matches an opaque one when over background?

    Posted: 03 Apr 2020 11:22 AM PDT

    I tried looking for an SCSS function which, when given a desired final color, a background color, and an opacity value, would generate a partially transparent color that would perfectly match the target color when over the given background.

    It took me a while, but I eventually came across this LESS mixin, which I translated into the following SCSS function:

    @function alphaOverBG($target, $alpha, $bg: #fff) { $targetR: red($target); $targetG: green($target); $targetB: blue($target); $bgR: red($bg); $bgG: green($bg); $bgB: blue($bg); $resultR: ( $targetR - $bgR + ($bgR * $alpha) ) / $alpha; $resultG: ( $targetG - $bgG + ($bgG * $alpha) ) / $alpha; $resultB: ( $targetB - $bgB + ($bgB * $alpha) ) / $alpha; @return rgba($resultR, $resultG, $resultB, $alpha); } 

    However, the returned color doesn't match the target color when over a corresponding background. Can anyone spot what's wrong with it, or give me a whole different solution, please?

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

    Web Design vs Web Development?

    Posted: 03 Apr 2020 10:45 AM PDT

    I am currently pursuing a CS degree with a minor in GDN, and I am not sure whether to pursue web design or web development. Is the salary pay a big difference between the two? Is one career better than the other statistically speaking? Higher in demand? Make a better living? What are your thoughts on this? Which is the better career choice? How is it for you now that you are one?

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

    Anyone know of an open source/paid version of Rap Genius, or something very similar?

    Posted: 03 Apr 2020 04:29 PM PDT

    Any other webdev hobbyists not interested in a career?

    Posted: 02 Apr 2020 05:31 PM PDT

    I've been interested in webdev for a little while now and have been utilizing a bit of extra free time (pandemic...) to really learn and practice a lot more. I just had a realization that I have no purpose for learning any of this. I have no career aspirations in this field and I don't have a use for a personal website, I just enjoy learning the concepts as a hobby.

    Any other hobbyists out there who aren't interested in a career in webdev? I'm interested to hear who you make websites for, what you do with your skills, etc.

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

    Should I write a simple ecommerce site from scratch or use something existing like WooCommerce?

    Posted: 03 Apr 2020 01:20 AM PDT

    Hello,

    I am doing a job for a friend that needs a simple ecommerce site where the person can put up products which people can buy. I have extensive experience in web development but I have never used any bigger project like WP or WooCommerce but have always written the work I've been doing from "scratch".

    I am thinking of doing it in Django but my friends current hosting solution is a shared hosting space with php. It feels like the task of learning WP and stuff like WooCommerce is a daunting task, bigger than simply writing my own system but I am aware that it will probably be much more inferior than a tool used by millions.

    Do you think I should give up on the idea of rolling it myself? The thinking is that I would do it kind of modular so that I could use it for other clients as well. This one I am not being paid for in money, but it's rather an exchange of help and is my first freelance client.

    I have years of experience with both php, javascript, java and other languages. Not that much with Python and Django but I want to transition into Python development and it feels like Django is a good fit since it's very modularized which hopefully means I can reuse whatever I write. If you know any extensions/plugins to Django that can be used for this kind of work I gladly take advice.

    Pros:

    • I have complete control of the code and the environment

    • I don't have to worry about security vulnerabilities as much

    • I can write it in any way I want

    • It will be very performant, no need to worry of some shitty plugin ruining the day

    Cons:

    • I have to write everything from scratch

    • I can't use the thousands of plugins available

    • I have to help the client with hosting, it may be a bit more expensive.. maybe.

    What are your thoughts? Thanks in advance.

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

    Super simple php question (my first day learning!)

    Posted: 03 Apr 2020 10:54 AM PDT

    Knowing PHP is like a steroid injection when using WordPress, and I decided to learn it. I have two questions:

    1. With the following if statement, what would be the syntax to insert a span or div before the post's custom message? <?php if(empty( $post->custom_message)) { ?>
    2. What would be the right thing to Google so that I can find the answer myself next time? I've tried things like "multiple actions for if statements" and "action plus echo text in if statement", and nothing useful is coming up.

    Thanks!

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

    Free-lance developing jobs using Content Management Systems?

    Posted: 03 Apr 2020 01:23 PM PDT

    (I posted this same question in r/cms)

    I have a job as a web/software developer. I primarily use python/django or node/mongo/vue.js stacks.

    I've decided to start pursuing some (very) small freelance webdev jobs aside from my full-time work, and it seems that beginning with 1 specific CMS would allow me to "dip my toes" into the free-lance world.

    My question is, does anybody here do this? The only CMS platforms I have looked at are Wix and Wordpress. Wix has a section on their site that lets Wix developers advertise their services, so obviously some people are making money doing this sort of thing.

    Any advice on this? Any reasons that testing the free-lance webdev waters via CMS is a bad idea? Any particular CMS platforms to look into?

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

    Showoff Saturday: Any successful community portals?

    Posted: 03 Apr 2020 12:32 PM PDT

    This is not a showoff, as I'm seeking pre-production ideas. But it's also not dev related, so here I am posting on Saturday.
    I've acquired a .biz domain for my county name. Anyone have any success monitizing a local community website?

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

    Recommended resource for leveling up my OOP PHP?

    Posted: 03 Apr 2020 06:30 AM PDT

    Just been furloughed at my place - with full pay though - boss is making up the rest. Which is nice.

    Decided to use this time to level up my OOP. Any recommended online resources for OOP PHP?

    Current job is backend dev. Heavily PHP based, with some minor Vue. I get by, but would really love to get a much better understanding in OOP.

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

    Registration with Facebook scenario

    Posted: 03 Apr 2020 12:27 PM PDT

    Hello guys, I have an application, where I want to add a feature for sign-in/sign-up with email.

    I have no problems with Facebook API, and this question is not about it, but about the whole registration and login processes.

    Here are possible scenarios

    1) User-created an account with email and password, and want to login via Facebook.

    In this can, I received user email from his Facebook account, and if I have a user account with the same email, and if this is his first login with Facebook, I asking him for the password and linking his account, and for the next times he can log in via Facebook without password entering. I have no problems with this scenario, this is looking pretty clear to me.

    2) User doesn't have an account, and he wants to create an account with Facebook

    This is the case, where I have no idea what I have to do. What if the user doesn't have an email address in his Facebook account, do I have to ask him to enter email and password to create his account? If so, then there is will be the same form for him as for the users who want to register with email/password.

    Please help me with the advice, I myself invented the problem and these are normal scenarios and it should be so, or this is not the way how it's should work?

    Thanks in advance

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

    What is the best domain/hosting/ssl company? Basically, what company are most of you using for these services?

    Posted: 03 Apr 2020 12:21 PM PDT

    I currently use GoDaddy for my domains, hosting, backup services, ssl certificates, etc...

    I've searched around for alternatives, and found quite a few options: BlueHost, HostGator, etc.. but wanted to ask here to see if there is a general consensus on a "go-to" provider.

    For reference:

    • I will be hosting multiple sites with SSL certs, including WordPress sites.
    • Obviously, I want all my sites to load fast (which is something I've been unhappy with at GoDaddy)
    • Price is not necessarily the make-or-break factor for me. For instance if there is a provider that is slightly more expensive than GoDaddy, but they provide faster and more reliable service, that would be a consideration. If there is a provider that offers both a cheaper price and faster, more reliable service, then even better.

    I'd like to switch everything over to a different company as soon as possible, that's why I wanted to reach out here on Reddit and get some feedback from other developers.

    Thanks in advance.

    Edit (these are my current site structures, future plans, and what I'm trying to achieve):

    • I currently host one Wordpress site, which is an e-commerce (WooCommerce) website with account management, tons of plugins, hundreds of pages, etc...
    • The other sites that I host are smaller sites that I create using Brackets (HTML, CSS, and JavaScript). Then I purchase and add the corresponding domains to my hosting account, setup FTP accounts and then upload the site files through FileZilla. These sites do not have database/account features, they're just web pages with content. Most the sites are under 20 pages.
    • I would like to provide web development services to future clients and host their sites (both static and WordPress) on my hosting account. So I want extra resources available for when that time arrives.
    submitted by /u/ilevatate
    [link] [comments]

    Coding bootcamp in Virginia?

    Posted: 03 Apr 2020 12:18 PM PDT

    I'm new to the field and want to learn Java html and coding. I can get lazy with no motivation and living in a house with 4 demanding dogs but I'm only earning 35k and need a higher salary for me my dogs and aging parent. Are there any good ones online or in the Dc or VA ar area? That doesn't cost too much.

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

    "Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture" even when event is initiated by click.

    Posted: 03 Apr 2020 12:11 PM PDT

    I hate to bring a stupid problem like this to the Reddit community, but I'm flummoxed and unable to get a straight answer on whether this is part of a new autoplay policy or whether i'm making a fundamental mistake, despite some hours of googling.

    The problem:

    I'm working on a project that requires a custom Vimeo player. I've done similar projects in the past with great success, however it's been a few years.

    Using the Vimeo javascript API and I'd really prefer to continue doing so (vs bring in a different third party player library), it is incredibly simple to initiate a new player and then interact with it, including of course playing and pausing the player. The problem is, even with the audio muted,I'm unable to start the video with a custom button click using Javascript, until a click is made inside the Vimeo iframe. Once I've clicked in the iframe, I am able to start and stop the video with javascript.

    I've tried several variation of their default suggested code with the exact same results. Here's the dumbed down current example I'm working with:

    <div id="myButton"></div> <div id="myPlayer"></div> <script src="https://player.vimeo.com/api/player.js"></script> <script> var options = { muted: true, id: 382629466, width: 640, loop: true, controls: false, autoplay: true, autopause: false }; var player = new Vimeo.Player('myPlayer', options); player.setVolume(0); player.on('play', function() { console.log('played the video!'); }); document.getElementById("myButton").addEventListener("click", function(){ player.play(); }); </script> 

    Other things I've tried:

    Using an existing player with autoplay flag set directly in the HTML, setting the background option to true (which should mute the video and remove controls, things I'm doing manually in this example), using the player API to set volume to 0, serving this page from secure vs insecure host, using jQuery to trigger the click instead of pojs, and quite a bit more.

    All result in the same thing: If I click within the iframe, and then click #myButton the video plays just fine. If I JUST click #myButton upon loading the page, I get the error from the subject:

    "Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture"

    So, anyone know if this is this impossible now or am I making some bonehead mistake? Thanks for any help.

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

    No comments:

    Post a Comment