• Breaking News

    Wednesday, April 1, 2020

    TIL: There is a special top-level domain that will always return a DNS error web developers

    TIL: There is a special top-level domain that will always return a DNS error web developers


    TIL: There is a special top-level domain that will always return a DNS error

    Posted: 01 Apr 2020 09:42 AM PDT

    I've been working on a recent project where I need to crawl the web at scale. One of the challenges is testing all of the things that can go wrong. You might already known about httpbin.org for testing HTTP status codes and cool stuff like that, but what about lower down, like DNS errors? That's when I stumbled across the .invalid top level domain.

    Any domain with a .invalid top level domain will always return a DNS error [0].

    This has proven very useful for testing. Try it out:

    > curl "http://example.invalid" -I curl: (6) Could not resolve host: example.invalid 

    I never knew about this and thought I would share it.

    1. https://tools.ietf.org/html/rfc2606
    submitted by /u/aaron_wright
    [link] [comments]

    My Path To Become a FullStack Developer

    Posted: 01 Apr 2020 06:08 AM PDT

    Hi, After much pondering, I have decided to become a FullStack developer as I want to build my own web apps. This is what I already know:

    • Basics of HTTP Request/Response
    • Python
    • Flask & Django
    • Basics of HTML & CSS(I mostly use Bootstrap in a project without much modification)
    • Basic SQL(I rarely work with raw SQL since there are ORMs)
    • Building Rest APIs
    • Basic JS & Jquery
    • Deployment on cloud
    • Edit: I also know GIT & CI/CD tools

    This is what I am going to learn in the next few months:

    • Data Structures & Algorithms (Relearning as I don't remember most algorithms)
    • React & later React native for mobile dev
    • Docker
    • MongoDB or some other NoSQL database
    • Async I/O

    I am wondering if I should learn networking also. I know the very basics of socket programming but haven't gone beyond creating a simple P2P messaging client. Is there anything else you think I should know?

    Edit: I forgot to mention - I currently work as a freelancer mostly backend development and scripting.

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

    How are Traversy Media's videos about HTML,CSS,JS ?

    Posted: 01 Apr 2020 07:55 AM PDT

    Traversy Media or FreeCodecamp which channel should I watch?

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

    CodeJar – a micro code editor

    Posted: 01 Apr 2020 06:55 AM PDT

    Ten years ago I created one of my first web applications; today I released a complete, from scratch re-write using modern practices

    Posted: 01 Apr 2020 10:38 AM PDT

    About ten years ago I started teaching myself PHP. As part of that journey I created two applications, the first, a photo gallery and the second, a web directory lister. I spent several years updating both but eventually languished in updating them due to the pasta like nature of the code. Despite the trickle of updates the latter somehow become somewhat popular over time. Having come a long way since then I decided to rewrite it a few months ago, this time using modern coding practices using updated tools and packages and today I released the v3 update!

    Check out https://www.directorylister.com for more info downloads and let me know what you think!

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

    I dusted off an old side project of mine that I thought other folks who suddenly find themselves teleworking might appreciate

    Posted: 01 Apr 2020 03:09 PM PDT

    Quick and easy linting of PostCSS using Stylelint

    Posted: 01 Apr 2020 02:47 AM PDT

    How can I add google fonts in my CSS?

    Posted: 01 Apr 2020 11:32 AM PDT

    I'm practising HTML with CSS by following along tutorials and making websites. I understand what's going on and I can change things by myself too. But I can't add Google Fonts. What I see is different than the tutorials.

    There's no plus on fonts at my end to copy the font's code to my style sheet.

    Here's what I get.

    Here's what all the tutorials show.

    When I open the font it lets me copy font's weight individually. But tutorials show copying the entire font and then changing the weight to whatever they want in their style sheet.

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

    Should I build a free WordPress boiler-plate template

    Posted: 01 Apr 2020 10:57 AM PDT

    I built around 30 WordPress websites last year, and probably 20 the year before. Over half were themes myself and a very smart coworker made from scratch (coworker is so smart I wouldn't be anywhere in this field without him). Some sites were simple, some sites were huge with all kinds of page builders/custom fields/PHP/Javscript/etc.

    Over the last 3 years of doing this full time I've gathered and compiled a ton of different resources to make my life easier. Some of which being code snippets/styling/WordPress functions (for things like menus, shortcodes, post types with custom categories, etc).

    I'm really big in to using page builders with ACF so I could build a layout system like columns/sliders/recent posts/Instagram feeds/etc. Whatever you guys would want really.

    -I could include the plugins I use with TGM too like media replace/redirects/ACF/safe SVG/etc.

    -I could include a few different headers, like logo left/menu right/mobile hamburger menu. Page options with ACF for logo upload/social media links/etc.

    • I've built many different PHP contact forms from scratch that includes a copy of the email sent to the client + user/redirect to thank you page. Some of these forms were simple and some super complicated. I had to build these forms when Contact Form 7/Caldera Forms wouldn't cut it (like the tour booking system below):

    I've built an entire tour booking system that includes -Account creation (on form submission, password emailed to you) -My account page with password reset/edit account details (account system built in PHP Sessions) This was probably my biggest achievement and probably took around 100 hours of development, not including research.

    I've done so much different shit in WordPress that whenever I build a site now I just cherry pick the stuff I've already done and it's sped up my workflow ten fold. If this seems like a good idea to you just let me know :)

    **Also the stuff I've built with PHP/Javascript/HTML+CSS can be used anywhere, not just WordPress lol.

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

    Setting up my custom CMS to update the admin panel from my server?

    Posted: 01 Apr 2020 08:12 AM PDT

    So I have created a custom CMS in PHP for use with my clients, and I'm trying to find a way to configure it to where my users can update can click a button to update the cms from my website, like how wordpress has that feature. Is there any methods you might recommend to do this? Preferably using server side, as I do not have the most experience with Javascript, as I started as a back end and have transitioned to a full stack.

    I am also trying to make it to where it can detect that there is a new version as well.

    Any idea will be very much appreciated.

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

    image path problem in react

    Posted: 01 Apr 2020 08:30 AM PDT

    Hello everyone newbie here.

    I have a react project with react and webpack. i tried this... but I get error 404 cannot get in the console.

    This is in "pages/Home.js":

    import image from '../img/audi.png' <img src={image} alt="audi"/> 

    this is my webpack config: https://pastebin.com/S6gF0jH5 ,
    this is my server: https://imgur.com/TM8TqNd,
    this is my folder structure: https://imgur.com/JxyEO8m,
    it does show here when I'm running webpack: https://imgur.com/XiGSI0s

    I am used this github repo for starting my project: https://github.com/chawk/bare_bones_react

    Can I get advice on the path issue. Thanks.

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

    Many free Udemy courses during crisis, including webdev courses.

    Posted: 01 Apr 2020 02:24 PM PDT

    https://www.udemy.com/courses/free/

    You can sort by interest.

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

    For anyone with cookie-based SSO, Safari 13.1 now blocks ALL third party cookies by default.

    Posted: 01 Apr 2020 02:06 PM PDT

    How many githubs do you have?

    Posted: 01 Apr 2020 08:48 AM PDT

    As a Web Dev working in the industry, do you create a new github account for each job or is it normal to have 1 account the is yours that joins and leaves an organization? I started with my own account and when i was hired a year ago as a junior dev i was told by a more experienced dev to create a new account with my work email. I've recebtly been layed off from that job and now I have 2 github accounts. should i stick with the second one? maybe change the email if i can and keep using it? or update my personal 1 in preparation to find a new job?

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

    Applied for a full-stack developer position at Toptal, now I have to become a ninja in javascript arrays. I'm pissed off.

    Posted: 01 Apr 2020 09:55 AM PDT

    I've been a web developer for over 10 years. I recently picked up vue.js and I can objectively say that I'm good at my job. I've been creating great web apps and websites and clients have always been satisfied with my work.

    So yesterday I passed the first hiring step at Toptal. Just an interview with a recruiter, non technical, just to check that I can speak English and talk about my career.

    Now the next step is a coding test on the Codility website. At first I was like meh, i'm gonna crush this test, I mean I'm a good developer right? Well you want to know how much I scored on the sample test? 11%! Lol. And my solution worked. I just didn't handle edge cases apparently or my solution wasn't optimised for large numbers or whatever (like a million rows)...

    So I was like OK, i'm going to get good at those tests before I actually do mine in 2 days. So I signed up for an account on codility, and started the javascript lessons. And man.... seriously... it's all about shuffling an array to the right X times, use a recursive function here, use a closure there.... finding the Fibonnacci bullshit out of some bullshit sequence..... Man seriously? Just because I told the recruiter I wanted to do HTML/CSS/JS doesn't mean I'm going to solve those bullshit functions with a timer staring at me!

    I'm pissed off. I'm this close to walk out and cancel my application. Seriously, toptal, you need to rethink your recruitment process, these tests are bullshit. You don't need to be a javascript Ninja to be a good front-end or full-stack developer.

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

    Where can i find some good-free react courses?

    Posted: 01 Apr 2020 03:55 PM PDT

    I have 5 years of experience in web design and now I am looking to focus on react side. Where can I start learning from scratch? Any recommendations?

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

    Should QA be classed as a support or primary role in business?

    Posted: 01 Apr 2020 03:43 PM PDT

    I have recently joined a business company as a junior FE programmer but I am struggling to understand why the business class QA as a primary role. In my head we should move more towards automation of QA and the developers should take over things such as E2E tests. Is anyone able to give me a better understanding of the lines between QA and developers and what the gold standards are?

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

    Need a project for a group of apprenticeship students.

    Posted: 01 Apr 2020 03:41 PM PDT

    Hi, myself and 3 others have just been benched due to the ongoing planet issues, so stay at home do nothing try and keep busy sort of thing.

    We are all apprentice level students with the ability to create frontend and backend web app. .net core/framework and react/jQuery/sass.

    Our manager has suggested that rather than sitting in our pants for days/months on end untill we are called back to the office that we do something useful for the whole lockdown situation.

    I thought that potentially we could create something for schools to use during the current homeschooling issues we are facing.. but I'm not sure in that 1.

    Has anyone got any ideas we could look to do to keep is learning and developing as apprentice's. Any ideas welcome. Stay safe 👍🏼

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

    Hover question on template

    Posted: 01 Apr 2020 03:41 PM PDT

    I'd like to use this template for my blog but I noticed the text is greyed out until you click on it. I believe it's some kind of hover configuration. I've tried to look at the code but I can't seem to find it. I'm not a webdev so maybe that's the issue :D

    It also changes to a blueish green color when you select "Read more".

    Any assistance is greatly appreciated!

    https://btemplates.com/2016/blogger-template-rareti/demo/

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

    Is the "anything that runs browser" advice regarding the question about specs necessary to lern and train web dev true?

    Posted: 01 Apr 2020 08:09 AM PDT

    I was lurking around some threads about how powerful PC do I need to learn web dev. And the general advice there was "anything that can run a browser". Is that true? Because I'm poor and budget is extremly important thing to me. Also a huge reason why I'm trying to get into web dev (and coding in general) is that I'm an unskilled fuck and I'm sick of being paid the abosolute minimum that there is. Please don't judge me for wanting to learn this for money :(, webdev and coding is one of the fastest and best ways to escape poverty, and I find it also fun and interesting

    I have a desktop PC and standard 1080p monitor. My PC specs are:

    older processor Intel Core i5 3350P (older socket, so I also have older motherboard)

    ram 8gb ddr 3

    graphics nvidia gforce gt 710 2GB

    Windows 10

    I want to learn HTML, CSS, JAVASCRIPT, PYTHON and some basic most used libraries. Just for the basics. Is this PC setup enough for that? Or do I need to upgrade?

    EDIT: Thank you guys for answers! That's sounds really amazing that I'll be fine for the basics!

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

    [Advice needed] As lone firefighting dev, how do I make the most of my position?

    Posted: 01 Apr 2020 11:52 AM PDT

    Hello webdevs of Reddit, first of all, this is a long wall of text, and English is not my native language. I need some help with my career.

    Tldr: I am a RPG character in a level up screen having difficulty choosing which abilities to spend bonus points on.

    Here is my story: Half a decade ago, with my prior experience in WordPress and e-commerce gigs, I landed in a company dealing with a heavily customized CMS in a team that was rushing responsive website redesigns out the door.

    Due to tight deadlines, reluctance of other teammates in adopting new technologies, and/or blissful ignorance in general, projects were released with frontends coded in jQuery and vanilla CSS, and then I refactored the shoddy code to performant states reaching 90+ scores in Google PageSpeed whilst ensuring ads and trackers still loaded, all while witnessing new frameworks such as React and Vue.js rise in popularity but with no time allowed to learn them.

    I began to burn out after dealing with increasingly meaningless refactors for so long, I couldn't refactor faster than the pace of new shoddy code coming up. I started looking for new positions only to find almost every exciting opportunity wants experience in React or Vue.js, which I have none.

    The final straw hit me when the shoddy coder (whose code I had to keep refactoring) got promoted, due to number of projects rushed out being more important than user experience improvements (the PageSpeed scores I was improving), and I noped out of the place ASAP and landed myself in a JS developer position.

    The JS was distinctively strange coded with a very dated framework, but the project as a whole was much more proper. Source code control! Automated tests! Proper user stories! My manager understood what I went through and was generally really glad having me around, as it was quite difficult to find a developer willing to work with that JS framework.

    I lasted for one year to the point they were about to start using modern JS tooling, before the whole team withered as the client decided to no longer want offshore development teams.

    Last year, I landed in another rare no-React-or-Vue.js-required development position. Turns out it is in an operational efficiency team consisting of managers of little to no tech background, the position created to write in-house apps which IT and outside vendors were not able to deliver in time. I am to write webapps for their digital transformation projects for user by our own workers.

    To my delight, unlike that place that only cared about shoving ads and trackers to visitors, the projects feel like useful contributions to society, with our team being able to meet users and witness how their work process is improved and how they are delighted to be rid of paperwork.

    Now here comes the problems. I am the sole developer of the new apps. The apps requires access to some Oracle databases hosted on IT infrastructure, so I am to host my web apps on their servers too. The IT team is a Windows shop that themselves had one!! programmer that wrote Windows software and only reluctantly ported some of them to ASP (yep, ASP, not ASP.NET) due to users wanting to use them on their mobile devices.

    I can code my stuff in PHP, but the server has to be IIS on Windows. Apache is not allowed as "they have too many security holes". (They got bit by an audit once for hosting a website on an unmaintained server running an outdated version of Apache).

    I can use MySQL or PostgreSQL in my prototypes but I am to use Oracle or MS SQL in production as these are the only SQL servers their MSP is willing to support. I got away with this by having my projects in perpetual pilot run phase.

    Linux is not supported, even if Microsoft backs it or supports it. No Docker. No Kubernetes. No WSL on my dev machine. Want containers? Go figure out the deprecated Azure Service Fabric instead of Kubernetes.

    No cloud infrastructure is allowed as it is against corporate policy. No Azure, no GCP, no AWS.

    All these technical constraints are limiting my choices in trying modern tools, I have to hand convert .htaccess rules to IIS format web.config files, use frameworks that support Oracle and MSSQL, and don't even think of trying to set up GraphQL (every guide I read seem to want PostgreSQL).

    App so good users want it running 24/7? Too bad, IT needs to apply Windows Updates now and then, the only IT way of achieving 24/7 uptime is buying a hardware based load balancer. I have to mirror my apps on my own dev machine and hand out temporary ngrok links during the downtime.

    Project management is almost non existent. Here is wishlist of features wanted in Project A. You got working prototype of minimum viable product? Now it is the UAT version. Now it is production ready, copy it to the IT servers, ignore the rest of the wishlist and begin work on Project B, while squashing bugs found in Project A now that is it deployed to all users (which is still many times better than the paperwork or shared Excel file juggling they went through before the existence of my apps). Repeat.

    Ironically, in working to eliminate the paper or Excel juggling of other departments, our department's method of visualizing my tasks is a stick-notes-on-whiteboard Kanban board, and an Excel file of todo items of the year.

    The programmer in me wants to stop working on more new apps and go refactor my apps into better shape for better security and ease of use, such as implementing SSO so users only have one set of credentials to remember no matter how many hats they are wearing, or turning my apps to PWAs that can better handle bad internet connections.

    On the development side, a way to work with a more popular stack is to have our users sign documents of liability should any incident happen with non-IT managed infrastructure, as if we are operating as an independent external vendor, but my department head (also of no tech background) thinks this severs our relationship with IT, and we still have to work out with them on how to access their databases securely somewhat, if our apps are not hosted on IT.

    On the project management side, I need some time to get things into shape, like setting up Git and GitLab or something, so that the technical work I have to go through is more transparent to others. But the new projects keep on coming. With the recent pandemic hitting the company hard, getting my projects out of the door is top priority as long as they help the company reduce expenses.

    If this were another company I would have already noped out of this mess, but I like seeing the smiles of the users of my apps, and this position is rare in both having a really short commute and not requiring me to know React or Vue.js, which I always wanted to learn.

    Moreover, management already approved hiring another programmer to help me with my projects, even during this difficult time. I even helped with the interview process.

    Position wise, it seems like management set me on a road to becoming a leader (to my own surprise), which is fine if I am not also the programmer being lead. But now, I am ashamed of getting a new programmer into this messy environment.

    What would be the best way to get my position and career back to shape?

    Project wise, when I gracefully leave (not hit by a bus), the company should be able to easily find a replacement. I would like to get our development process and documentation back to shape so anyone can fit in my role easily.

    Career wise, what skills should I pick in polishing up? As a webdev, the need for me to learn React or Vue.js is long overdue, but I also seem to be able to practice DevOps or promote to manager level here, depending on which of the above problems I focus on tackling.

    Thank you for reading and I look forward to hearing your feedback.

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

    Fix an overloaded server

    Posted: 01 Apr 2020 09:39 AM PDT

    What is your favorite coding environment on the Mac?

    Posted: 01 Apr 2020 05:49 AM PDT

    I need something that I can edit php, html, css in and that has built in support for FTP and github, ideally I'd like to push stuff to github so I can have a versioned backup for my code and then be able to push to ftp to the live site, all from within one application.

    If it helps, this will be me tinkering with a Prestashop store.

    Thanks for any help!

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

    No comments:

    Post a Comment