• Breaking News

    Monday, November 12, 2018

    Facebook is down. Anyone else feel a weird sense of satisfaction/vindication when major services go down? Look, this stuff is hard, even enterprise level companies screw it up on the regular. Now don't get mad at me when our app goes down for an hour twice a year. web developers

    Facebook is down. Anyone else feel a weird sense of satisfaction/vindication when major services go down? Look, this stuff is hard, even enterprise level companies screw it up on the regular. Now don't get mad at me when our app goes down for an hour twice a year. web developers


    Facebook is down. Anyone else feel a weird sense of satisfaction/vindication when major services go down? Look, this stuff is hard, even enterprise level companies screw it up on the regular. Now don't get mad at me when our app goes down for an hour twice a year.

    Posted: 12 Nov 2018 09:56 AM PST

    web.dev — A website by Google's web developer team with a bunch of guides on how to create a good website, along with a site tester that tells you how to use their guides to improve your existing websites

    Posted: 12 Nov 2018 10:31 AM PST

    Visual Studio Code October 2018 (1.29) Released!

    Posted: 12 Nov 2018 11:10 AM PST

    Vue.js–Getting started in Dart (Part 2)

    Posted: 12 Nov 2018 05:29 AM PST

    Natural Language Processing API

    Posted: 12 Nov 2018 02:32 PM PST

    What is the latest status of autoplaying inline video on mobile?

    Posted: 12 Nov 2018 01:49 PM PST

    (pls disregard your opinion of whether autoplay is good or bad for this post)

    IIRC Mobile Safari allowed auto-playing of inline video in 2016,

    I also read that Mobile Safari doesn't allow auto-play on power-save mode, and Chrome doesn't allow on Android in data-save mode.

    The latest update talks about it here as well but seems unclear - talks about 'best practices' and not what's possible technically.

    Any other latest standards or policies?

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

    Testing your React App, common and advanced patterns

    Posted: 11 Nov 2018 11:07 PM PST

    I created a repo with tests for components of common React patterns. This includes basic components like updating state, dealing with higher order components and creating snapshots.

    The advanced components include usage of browser global variables like window, document and eventListeners and tests for React context and React createRef.

    The repo url is: github.com/mikeheddes/react-testing-demo.

    I hope this can help some of you. Let me know what you think.

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

    CSS / JavaScript Questions

    Posted: 12 Nov 2018 11:07 AM PST

    Quick question about CSS. I've isolated a case where it's doing something that I don't understand and I am hoping that someone can help explain it.

    <!DOCTYPE html> <html> <body> <p id="p1">Grue!</p> <p id="p2">Green!</p> <style> #p1{ color: green; } #p2{ color: green; } </style> <script> document.getElementById("p1").style.color = "blue"; console.log("p1 color: " + document.getElementById("p1").style.color) console.log("p2 color: " + document.getElementById("p2").style.color) </script> </body> </html> 

    So, in this little example, there are two colors. They are both set to Green in CSS, and then the JavaScript overwrites one color with blue.

    The color changes, so to me it seems like this is setting the value that determines the color of the text on the page.

    However, only the color that javascript replaced logs out to the console. The other one seems to be blank, despite the fact that the CSS worked and the text is actually green.

    Log:

    p1 color: blue p2 color: 

    Why? What is going on here? If I want the current value of the CSS, how do I get it? Where is that stored if not in this object?

    If anybody could even point me in the right direction here I would really appreciate it.

    edit:

    I figured out how to get the value. If it's not set inline then you need to use getComputedStyle to see it. i.e:

    <!DOCTYPE html> <html> <body> <p id="p1">Grue!</p> <p id="p2">Green!</p> <style> #p1{ color: green; } #p2{ color: blue; } </style> <script> p1Style = getComputedStyle(document.getElementById('p1')) p2Style = getComputedStyle(document.getElementById('p2')) console.log("p1 color: " + p1Style.color) console.log("p2 color: " + p2Style.color) </script> </body> </html> 
    submitted by /u/Aeium
    [link] [comments]

    How to decide where to put application logic in an AJAX application?

    Posted: 12 Nov 2018 08:10 AM PST

    Hi everyone,

    I'm building a simple AJAX application to load data from a Postgres store using Node/Express.

    The API that I've built returns a single array of many objects containing a huge amount of data that is displayed to the user based on a single user search query. For the application to be valuable to the user, they need to have the ability to sort and filter the data.

    The question that I have, is should the filtering and sorting be handled on the backend, making POST requests for each filter selected by the user, or should I load all of the data into an array within the AJAX logic of my application and sort the data there?

    I'm not sure if there's a right or wrong answer to this question, which is partly why I'm struggling with it.

    I'm happy to post my source code below, but I'm not sure if my question is application specific.

    I'm completely split. Do I keep all of the logic on the server, to make the front end as light weight as possible in case I maybe one day transition to a React front end? Or, do I make the backend in charge of one simple job: to return a large array of objects for the front end to handle?

    The API for my app below is found in "routes/index.js". The AJAX half of the application is located in the "public/js/src/search.js" file.

    There is a very high chance I'll be moving to React.js in the next month or so, so I'm almost leaning towards putting the logic on the server. I'm mainly interested in what a developer would do if they were treating this as a professional, larger web application in a corporate/team environment.

    Source: https://github.com/matthewvolk/healthiestthingat Front end: http://www.healthiestthingat.com/

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

    Service Workies by Dave Geddes (Creator of Flexbox Zombies and Grid Critters)

    Posted: 12 Nov 2018 04:34 PM PST

    Coding Resources - Vol. 2

    Posted: 12 Nov 2018 07:46 AM PST

    Connecting an HTML/CSS/JS front end to a Django application that uses a Flask API

    Posted: 12 Nov 2018 04:14 PM PST

    I have never made a web application using Django, Python, Flask, etc. I am not sure how to even get the directory sorted out. I was going to just write the front end and then figure out how to connect everything to it, but I don't even know where to begin. Here is the prompt:

    Build a Django application that will connect with 3 external weather services and provide an average temperature for a given zip lat/lon.

    The Django application should have a single url route that takes in a latitude, longitude, and a list of external services to filter on. The acceptable filters will be 'noaa', 'weather.com', and 'accuweather'. For example: if the user sends in 'noaa' and 'accuweather' in the filter list, then only those two services will be used to calculate the average temperature for the given lat/lon.

    In order to connect with the 3 external APIs, we have created a simple Flask application that you will run and connect to. This will prevent you from having to actually integrate with three external providers. Please access this application and view the readme here: https://github.com/otterlogic/mock-weather-api

    Although this is a simple application, please use architecture and design patterns as you would for a larger and more complex project.

    Guidelines:

    Use Django

    Create a url route that accepts: latitude, longitude, and filters

    Filter the external providers depending on the user input filters

    The response to the request will be a json response with the average current temperature

    I always have trouble getting started when there's already existing code. I do so much better when I am the one creating everything from scratch. Does anyone else usually have this problem?

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

    Beating hash tables with trees? The ART-ful radix trie

    Posted: 12 Nov 2018 06:30 AM PST

    Facebook is down

    Posted: 12 Nov 2018 10:06 AM PST

    Books from 2008

    Posted: 12 Nov 2018 04:03 PM PST

    Do you guys think that books from 2008 for progtamming languages are worth the time to read due to how old they are?

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

    Newbie Web Developer With .Net Desktop Experience

    Posted: 12 Nov 2018 08:16 AM PST

    I've been a desktop app developer for several years, with virtually no web dev experience. I am essentially starting to learn web development from the very beginning. As for a choice of technologies, I'm very much used to C# for desktop development. Would ASP.Net be a natural fit, given my C# experience, or is there a better fit for a beginner? Thanks.

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

    Vue.js–Getting started in Dart (Part 2)

    Posted: 12 Nov 2018 03:33 PM PST

    Limitrr: Better Express Rate Limiting.

    Posted: 12 Nov 2018 03:21 PM PST

    Listening to DOM changes by Javascript Web API, Mutation Observer (hint: It’s the best practice)

    Posted: 12 Nov 2018 07:49 AM PST

    Is a coding bootcamp worth it in my situation?

    Posted: 12 Nov 2018 03:18 PM PST

    I'm 20 years old and I recently moved to a new city (Charlotte, NC if it matters) and have been teaching myself web development since April after dropping out of college last year and figuring things out. I have been using tutorials on YouTube and other websites to teach myself HTML, CSS, JS, Bootstrap, Sass, and jQuery and have gotten comfortable using some of these technologies. In addition, I have been using FreeCodeCamp to learn web dev. My reason for wanting to go to a bootcamp is so I can have a more structured environment to learn in as well as having people more experienced to learn from and help me out. Most importantly, I want to make connections and be able to network with employers and feel that I wouldn't be able to do that teaching myself. What do ya'll think? Thanks in advance!

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

    While facebook's down, here's a tutorial if anyone wants to get started with GatsbyJS

    Posted: 12 Nov 2018 03:04 PM PST

    GatsbyJS Tutorial | Getting Started with A Blog

    Here's a starter tutorial of how to get started with Gatsby. I explain how to host your first site for free: https://youtu.be/Ho0vOnXqJK0

    Let me know what you think & want to see/learn. Here to help you!! I'll respond.

    - Hays

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

    What is a good (great!) user settings management program/CRM/CMS?

    Posted: 12 Nov 2018 03:03 PM PST

    We have a program that enables users to use some of our scripts, like mailchimp integrations and stuff like that to use in their Apps. However, for some scripts there's more info needed and now we want to store that for them, like API keys and such, which they now send as a POST request to us which is no longer needed when we have that data for them on file.

    Our users are in MySQL, we use PHP (getbootstrap theme (old setup)) and a Wordpress website (latest setup) to facilitate this. They copy a JSON code and put it on their website/in their App for it to work.

    We're thinking of making it easier by letting them enter some data with us, so we can give them better scripts, such as Paypal payments for a specific purpose (in App payments).

    So, long story short: what would be a smart, nice looking interface for them to select a feature from a menu and then enter their data needed to be able to use that service. They need to be able to enter it and edit/remove when needed. If their data is there, we can just get it from the dbase when needed based on their license key/email combi.

    I hope this makes sense and that you have some (good) suggestions. I'm drawing a blank. I did have a look at several Envato Backend/Admin themes and they look nice, but I'm uncertain if they actually do what we need. They look like they just spit out forms and graphics. Initially we started building all our scripts with the old bootstrap setup, but after 25+ integrations, it got pretty annoying without a CMS, hence the new WP setup.

    Cheers Reditters.

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

    Tips and tricks for scalable CI/CD flow

    Posted: 12 Nov 2018 08:56 AM PST

    Postmortem on the read-only outage of Basecamp on November 9th, 2018

    Posted: 12 Nov 2018 02:51 PM PST

    No comments:

    Post a Comment