• Breaking News

    Tuesday, June 22, 2021

    [Rant] I can't stand developing for Safari anymore web developers

    [Rant] I can't stand developing for Safari anymore web developers


    [Rant] I can't stand developing for Safari anymore

    Posted: 22 Jun 2021 03:51 AM PDT

    In the last few years, I've seen Safari slowly fall behind Chrome & Firefox. It wasn't exactly a brillant browser before, but it's now completely outdated.

    No modern APIs

    First, Apple don't give a fuck about any modern APIs. PWA, streams, who the fuck needs that? Well, dear Apple, a fucking lot of web devs need that nowadays.

    On iOS, all browsers are just skins of Safari

    We all know why they don't implement those features - they want to keep the control on their closed ecosystem. But seriously: during the Epic VS Apple case, they had the guts to say "If you don't want our 30% fees, just write a web app".

    Seriously? On iOS, you cannot install another web browser. Well, you can install an application named "Chrome", but it's only Safari with another skin. Because Apple forbids creating a web browser on iOS.

    Then, how are we supposed to write web apps on your legacy browser, which is the only available browser on mobile? Fuck off

    The bugs

    Oh my god. Even when they implement an API, it's riddled with bugs they never fix. Or they do it fine, then break it later. Just look at Service workers, or IndexDB.

    How are we supposed to keep up with this? Isn't Apple one of the richest company in the world? Invest in your fucking browser.

    It's installed by default on Mac

    Just like IE was a pain in the ass because it was the default browser, Safari is here to stay. Just because it's conveniently the only browser installed when you get your Mac.

    Hey, but it's only normal for a company to preinstall its browser on its OS

    Well yeah, it's fine if your browser works fine. Even Microsoft understood that, and switched to Chromium because they didn't want to cripple their users with a shitty default browser.

    No automatic updates

    Oh yeah, nearly forgot this one. If Apple implements a feature you've been waiting for, well don't expect you'll be able to use it anytime soon. Safari doesn't automatically update itself. It's the only modern browser where most users lag a few major versions behind the stable release. Have fun waiting!

    What can we do?

    Well let's do what we do best: write articles, blog posts, reddit comments showing how stupid their browser is. I've got a bunch of side projects, with ~200 visitors per weeks.

    I'll add a banner asking the user to switch to a more modern browser, like Chrome or Firefox, if he's on a Mac. Just like IE.

    We need to raise awareness on this issue, because it's been a pain in the ass for years, and the recent events show that Apple will not make a move in our direction if not forced to.

    /rant

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

    HBO Max blames the intern. Really the intern's fault or creating a system that allows an intern to mistakenly email blast all your customers?

    Posted: 22 Jun 2021 12:23 PM PDT

    Your "functional" SASS emails are still spam

    Posted: 22 Jun 2021 05:50 PM PDT

    I was doing some work when I check my inbox. I see two emails from a company I've never heard of called Gusto:

    May 1 - "[Action Required] Help CLIENT pay you for your hard work" May 4 - "[Action Required] CLIENT needs to pay you for your services" 

    Weird. I've never interacted with this company. I don't see any related messages from my clients but I open the email anyway and follow the link. I end up being stopped from entering the Gusto system because I don't reside in the USA. I send the relevant client a message (Turns out they were just trying out a bunch of payroll systems) giving them a heads up that this service doesn't work for international workers and that's the fateful end for this unwanted email. No complaints from me. Or so I thought.

    It turns out that this amazeballs service has a state-of-the-art CRON email system. Likely ingeniously fueled with blockchain, machine learning AI & quantum serverless waterfall technology that re-sends the exact. same. email. every 4 days with no possible way of unsubscribing anywhere. In the email itself, the website, or otherwise.

    This was it. The wet dream of many coked-up marketers. Is it a mirage? No. It's a continuous, unstoppable email loop.

    One early morning, I responded with extreme forethought to the latest spam email:

    "STOP EMAILING ME EVERY 4 DAYS" 

    After a pleasant customer service response asking me what email I'm receiving, I told them which one, begged it to stop, and also asked them to please let the relevant party know that they are violating CAN-SPAM. Their reply was the following:

    "Our email system is automated to ensure that employees and contractors can get paid on time when they are onboarding with a new company ..... These emails are different from generic advertisements."

    For anyone like my good friend Gusto here that doesn't see what's wrong: CAN-SPAM (USA), CASL (Canada), and other international spam laws include ALL COMMERCIAL emails. Not just advertisements.

    To break it down: If your system sends emails to people that have never interacted with your service before. Just like Gusto, you're breaking spam laws.

    What laws? That can depend on not just where your business is, but what country the recipient of the email is located in as well.

    If you're a developer that is worried about sending emails then just don't:

    1. Send emails to people that have never used your service
    2. Allow a user to sign up 3rd party emails to receive continuous spam with no confirmation on their part (The law wants no emails at all to a "3rd party" ie. strangers email)
    3. Send emails that have no way of being unsubscribed/stopped

    Existing users follow different rules, even including exceptions like very important emails that can be sent as a notice. ie. A change in the privacy policy.

    If we're realistic, email spam laws are broken all of the time. If you have a feature that skirts the line or even crosses it a little: It's an almost non-existent risk of being penalized. The only thing you need is an easy, fast way to make sure they never receive this spam again. In almost every case, someone won't pursue the matter legally if they can just get you to fuck off.

    If for some reason you're a unicorn that's trying to be compliant, then in this situation specifically give your users a link that they personally send to the target. Allow emails/people to opt-in and/or establish the needed legal relationship to send whatever email in question.

    Finally, if you're in Canada and get spammed by someone. Even without a lawyer, you can and should report CASL violations here. Or just forward the spam email to [spam@fightspam.gc.ca](mailto:spam@fightspam.gc.ca)

    Don't be like Gusto. You wouldn't walk into a stranger's house, shit on their floor, and walk out. So don't send unstoppable spam emails and make it the receiving person's mess to figure out.

    If anyone's going to be a law-breaking email thug, just give people an easy way out.

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

    Interactive CSS layout builder for grid and a great learning tool

    Posted: 22 Jun 2021 09:14 AM PDT

    I hand curated 1150+ remote job openings from Hacker News who is hiring - June

    Posted: 22 Jun 2021 07:15 AM PDT

    Here I would like to share more than 1150+ remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.

    https://remoteleaf.com/whoishiring

    ✅ 100% remote full-time jobs.
    ✅ Each and every job is manually curated and verified.

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

    I made a twitter result bot as my final year project using Node.js and Puppeteer

    Posted: 22 Jun 2021 01:25 PM PDT

    Created a modern encryptet secret sharing as Saas. Also, possible to self-host. More features to come.

    Posted: 22 Jun 2021 01:48 PM PDT

    PSA: Add dark mode to your sites, or at least let the browsers do it for you

    Posted: 22 Jun 2021 07:14 AM PDT

    PSA: Add dark mode to your sites, or at least let the browsers do it for you

    For those who don't know, browsers recently added the color-scheme meta tag which allows you to automatically state the color-scheme of you webpage either dark or light, mode and have the browser automatically apply the theme, so, it can change the background color, text color, button/form styles, as well as the scrollbar color all for you without you needing to create custom css for a dark or light mode.

    Video displaying a theme change

    You can use it by adding

    <!-- The page supports both dark and light color schemes, and the page author prefers dark. --> <meta name="color-scheme" content="dark light"> 

    Or

    /* The page supports both dark and light color schemes, and the page author prefers dark. */ :root { color-scheme: dark light; } 

    to your website.

    Read more about color-scheme on web.dev on https://web.dev/color-scheme/, when developing sites I personally think every site should add this property to their site

    One thing to note is that color-scheme, is supported by all browsers except Firefox.

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

    Does every company use code challenges in interviews?

    Posted: 22 Jun 2021 04:08 PM PDT

    I'm going to be starting interviewing soon for junior webdev positions. The thought of coding in front of the interviewers is stressful to me but I imagine that is pretty much industry standard these days?

    submitted by /u/Cold-Fan
    [link] [comments]

    Morning! Everything alright? Could I be given information regarding affordable Front - End certificates (online ). Thanks in advance☺

    Posted: 22 Jun 2021 07:01 PM PDT

    I am studying self-taught and been told in order to get a job it is better to have some certification. Maybe someone here can be of help. Thank you!

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

    Apple APIs?

    Posted: 22 Jun 2021 03:15 PM PDT

    Hi everybody, I couldn't find much information about this topic so I thought I'd turn to Reddit for some help.

    I'm writing an app where users can create events for their job and I'd like to sync these events with their preferred Calendar. Google Calendar integration was smooth: the API is easy to work with and the docs are ok. Here comes the tricky part: does Apple have a public API to access and modify data on users' calendars? I thought that with a simple Apple sign in and the relative permissions (similar to what I did with Google Calendar), I could find an easy solution for this, but it doesn't seem like it's possible.

    Could you help me in any way? Thanks in advance!

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

    Storing data in a user's session between API request? I need to store 500mb/1M+records at a time.

    Posted: 22 Jun 2021 06:51 PM PDT

    Tldr: what's the best way to work with a 500MB+ data in a users session?

    I have a mongodb instance with 1billion records and need to perform a query which will return millions of results to a webpage. I need to be able to select large amounts of records shown on that webpage, then send a subsequent request to elastic search, which returns the final result to the webpage.

    Obviously with that number of records I will to have pagination, which I would typically use a mongodb cursor for. The page will also need to be able to sort, search across the records and different data points and then submit then to Elasticsearch API.

    How should I store the data that is returned initially from mongodb so it can be manipulated in browser and passed to a secondary API? Should it be done with a json file, or?

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

    Are there any emerging ideas or technologies for a trustless or decentralized alternative to TLS Certificate Authorities?

    Posted: 22 Jun 2021 06:34 PM PDT

    I know this is probably not even that useful or demanded since the current structure works and works well and Let's Encrypt exists. With that being said, I am really curious on if anyone is aware of any technologies or proof of concepts out there for an alternative to TLS certificate authorities that is decentralized and/or trustless?

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

    Help multi-sorting a large array by an array of "field/direction" objects, integrating Intl.Collator for special chars

    Posted: 22 Jun 2021 06:31 PM PDT

    I want to sort a large array by multiple based on a 'sortBy' array containing objects of field and direction, like this:

    const sortByArr = [{ field: "Title", direction: "asc"}, { field: "Value", direction: "desc"}]; 

    The goal being to sort the large array in a loop by the first object in the sortByArr, then the second, etc.

    I must also account for special characters so, for example, Émile-René Ménard should sort with the e's. I think Intl.Collator might work but I'm not sure how to implement it.

    I can use lodash if that simplifies it. Here's what I have so far which doesn't work right. This is a vue method.

    sortCurrentResults() { this.curSortByArr.forEach((obj) => { this.currentItems = this.currentItems.sort((a, b) => { console.log(obj.direction); console.log(obj.field); if (obj.direction === "asc") { return a.fields[`${obj.field}`] > b.fields[`${obj.field}`] ? 1 : -1; } else if (obj.direction === "desc") { return a.fields[`${obj.field}`] > b.fields[`${obj.field}`] ? -1 : 1; } }); }); this.generateRandomKey(); }, 
    submitted by /u/kirkbross
    [link] [comments]

    Browser extension's content script running only once when iframe is loaded on background page, any suggestions?

    Posted: 22 Jun 2021 06:22 PM PDT

    I'd like my extension to run some code in the content script only when it loads on an iframe that's included in the background page. The iframe is an external web resource not contained in the extension assets. What approach would you suggest that could accomplish that?

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

    Is CorsOptions.AllowAll bad for a SignalR hub?

    Posted: 22 Jun 2021 06:10 PM PDT

    I'm working on an ASP.NET project and saw this in the SignalR startup class:

     public class Startup { private const string HubPath = "/signalr"; private const string AuthToken = "auth"; public void Configuration(IAppBuilder app) { app.UseCors(CorsOptions.AllowAll); //rest of code ommitted } } 

    Is this bad? I understand if a user was logged in to our app, and stumbled upon a malicious website that had JS running to connect to the SignalR hub, all that could happen is that that malicious site would receive messages from the server, with no sensitive information.

    Is there anything else that could happen that I'm not thinking of?

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

    Nothing fancy this time but might be helpful: Ambient sounds with a Timer

    Posted: 22 Jun 2021 12:03 PM PDT

    I'm new to React Hooks so as I was learning myself I wrote this tutorial. Hope it helps someone out there (it covers useState, useEffect, useRef, useCallback, useMemo and making your own hooks)

    Posted: 22 Jun 2021 10:13 AM PDT

    FreeBSD Devs... What Tools Do You Use?

    Posted: 22 Jun 2021 05:04 PM PDT

    Interesting community here, I've had some good reads.

    I've been learning web development (mostly frontend) and have tried different approaches on Windows 10, Fedora 32-34, and FreeBSD 13.0. I've really taken a liking to FreeBSD (XFCE), but Atom won't work unless I sideload for Linux, and VSCode is currently deprecated for Py2 reasons; nothing serious, it still works fine.

    If I want to consider sticking to FreeBSD alone, where do I start from the WebDev angle? I want to use tools that do the job. I know the Unix philosophy mostly applies to software development, but I can see it for WebDev. I do want to go 100% FreeBSD if I can. Is it possible to be a decent developer of the web? I'm not trying to shoot for a six-digit job, just want to strike out on my own to support my family in my down time. And no, this isn't for show. I legit want to make the web designer/developer journey. I must plan accordingly. And I will finish what I started.

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

    Not Another Gradient Generator

    Posted: 22 Jun 2021 10:21 AM PDT

    Not Another Gradient Generator

    You know what the internet doesn't need? Another gradient generator. So I decided to make another one. Sorry.

    It does have some novel (i think) features though:

    You can layer gradients to make complex ones:

    So Complex!

    It optionally adds colors in between your chosen color stops through a human-friendly color space using HSLuv:

    https://preview.redd.it/3pgv981cnu671.png?width=600&format=png&auto=webp&s=dd6ce4d4477c01c39e6e3fd57ec068432e3e6450

    It also does some other stuff but it's probably best just to play around with it and see what you can do. Here it is: https://doodad.dev/gradient-generator

    Let me know if there's any features you'd like me to add.

    If you make a cool one send it my way and I might add it as a preset with your permission. Here's some I made earlier (they're added as presets to the tool, so you can play around with them)

    Lens Flare — I think you can add this as a layer to a css background-image, haven't experimented with that yet.

    You can make nice chilled ones

    and really gross ones too

    That's all folks!

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

    Handle team managemnet with Auth0?

    Posted: 22 Jun 2021 12:24 PM PDT

    I'm working on a SaaS app and I want to allow users to invite people to their teams. I'm using Auth0 as an auth provider. Currently users can choose email/password or Google oAuth to login, might support LinkedIn or FB too. By default (and it seems rather difficult to fix) if a user logs in with a different auth source (email/pass, google, fb) a separate account is created for each even if it's the same email.

    Now I'm trying to figure how to implement the teams/invites setup in this scenario. My initial thought you could put in someones email to invite them to your team. If they already have an account they'd see the invite on their dashboard. If they don't have an account they'd create one and once they login, if the application sees the email has pending invites, they'd see it on their dashboard.

    But now I'm concerned about the implications of multiple accounts potentially having the same email. Do both get to join the team? Only the first that accepts? If they accept then what happens if they link/merge their account with another that has a different email/userId?

    It just led to a rabbit hole of confusion. So I'm wondering how anyone here has tackled this?

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

    How do you guys/gals learn new technologies ?

    Posted: 22 Jun 2021 10:44 AM PDT

    Do you use Udemy ? How do you consider yourself knowing a framework/library, for example you've been working with React and you want to learn Angular. Do you learn for job's sake, if the job makes you learn Angular or any specific frameworks, or you learn on your own (libraries too) ?

    And, when do you consider knowing framework/library/queries such as GraphQL

    And, what happens and how do you deal when you apply for a job that needs some front-end, back-end, database technology that you haven't touched yet ?

    TIA!

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

    Building secure low-code webapplications

    Posted: 22 Jun 2021 02:20 PM PDT

    Very Confused - This codepen worked perfectly 20 mins ago but now it completely cuts the top of the div off the page, what am I missing? I am completely lost as to why this is happening

    Posted: 22 Jun 2021 10:29 AM PDT

    See codepen here - I have no idea why the view is being cut, everything seems to be in the right place

    :( any ideas?

    The code is here: https://codepen.io/brilliantscarcity354/pen/GRWaLGW

    edit: solved - I was defining the body attribute twice, codepen is updated but leaving here in case this helps anyone else!

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

    No comments:

    Post a Comment