• Breaking News

    Wednesday, January 8, 2020

    The End of Indie Web Browsers: You Can (Not) Compete web developers

    The End of Indie Web Browsers: You Can (Not) Compete web developers


    The End of Indie Web Browsers: You Can (Not) Compete

    Posted: 08 Jan 2020 07:09 AM PST

    Three years after the W3C approved a DRM standard, it's no longer possible to make a functional indie browser

    Posted: 08 Jan 2020 11:24 AM PST

    What is one hardware that you would buy to make dev life better? (besides an extra monitor)

    Posted: 08 Jan 2020 07:04 AM PST

    I work at a byoc place and with one external monitor. But I feel like something is missing. It's not quite comfortable. What is one thing that I can get that would make it a little more comfortable? Do you have a must-have keyboard or mouse? Seat cushion? Fidget spinner with blades?

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

    Chrome form controls are getting a new UI and touch support

    Posted: 08 Jan 2020 12:40 AM PST

    API Security Best Practices MegaGuide

    Posted: 08 Jan 2020 06:46 AM PST

    How to make your first JavaScript chart with JSCharting

    Posted: 08 Jan 2020 07:03 AM PST

    How do you respond to recruiters/companies that are requesting a very heavy tech interview?

    Posted: 08 Jan 2020 01:32 PM PST

    I'm a senior software engineer with 12 years experience, and I've recently been looking at making a switch after 4 years at my current company. I've had recruiters reach out from a few companies that looked interesting, but lots of them say they have coding exams first to test your CS fundamentals, big O time, space complexity, algorithms, etc. A few of them are even using the same 3rd party vendor for these assessments, Karat.

    Now I've seen this discussed on this subreddit before and I know I'm not alone in my position, and although I have a CS degree, I have never once used those concepts in my actual work. The way one recruiter even phrased it he even seemed to suggest that this was purely an 'interview game' and to grind leetcode for a few weeks first.

    I'm not against coding tests either, I've been on the other side of hiring and I like to give out quick projects that take no more than an hour or two, to see if someone really can code in the stack we're hiring for. But this is very basic stuff like creating a java spring boot API with a couple very simple endpoints.

    But why do these companies insist on testing you on things that have practically zero job applicability? And how do you respond to them? Do you just say no thanks, I'm pursuing other offers? Do you give them candid feedback on how ineffective you think these kinds of tests are? Or is this really just the state of the industry now and I need to suck it up and brush up on these topics and make sure I can ace these assessments as well as white board stuff?

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

    Where can I learn to code buttons that are positioned like this?

    Posted: 08 Jan 2020 08:08 AM PST

    Understanding CSS Grid: Creating A Grid Container

    Posted: 08 Jan 2020 12:29 PM PST

    Building an e-commerce website advice and tips needed

    Posted: 08 Jan 2020 06:53 AM PST

    Hello all,

    I have heard all sorts of scary stories about building an e-commerce website. Would it be hard to implement a concept such as:

    • Consumers
    • Sellers
    • Services

    1. I have heard that the payment process is a headache. What payment processors could I use? (Stripe for example looks pretty neat) What do they cover for me, and what do I need to work?
    2. Should I bother building a site of this sort from scratch?
    3. I'm confident in database basics and a bit of advanced databases. I've done dotnet, react, am relatively comfortable with mysql. How long would it take me to build it? (I have around 100 hours a month to work on this. I have 9 months max to complete the project.)
    4. What stacks/technologies are best to tackle this?
    5. Would I be fucked for security?

    I'm asking for a lot of information, so thank you for your reply if you do in advance!!

    **** More information even though not absolutely necessary ****

    I'm a computer science student, I haven't even finished my degree yet. Most of this journey will be me teaching myself stuff, trying, failing, rinse and repeat. I am working for a company now (yes before I finish my degree), and the boss has asked me to build this for him, and he has given me 9 months and does NOT want wordpress.

    ***EDIT 1***

    Thinking of a FRONTEND -> react / boostrap and BACKEND -> node.js, express, mysql, gatsby, stripe. Am I mixing things up?

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

    Anyone know a website for placeholder products?

    Posted: 08 Jan 2020 12:42 PM PST

    I'm learning Wesbos' Advanced React course where it walks you through how to build a ecommerce store that sells shoes. I learn by doing so I want to create my own ecommerce store so I wondering if there are any libraries that have well organized photos of furniture, clothes, tech products etc.

    If all fails, I'll just copy from an actual eccommerce store or something.

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

    Draw/annotate on images in browser?

    Posted: 08 Jan 2020 12:35 PM PST

    I'm developing a simple, intranet-only browser application to assist our Accounts Payable in their workflow.

    One step of the workflow will be having department managers view images, then be able to type and draw on those images.

    I'm a fairly well-seasoned web developer with a heavy background in Linux, and so feel reasonably confident in everything else I need to do, however I have never before needed to load an image into a web page and allow the user to draw and type on it, so I'm unfamiliar with any libraries or baked-in browser technologies that would allow for this.

    To be clear, I'm hoping to explore free/open options before looking to fancier, more robust, paid options such as DocuSign, RightSignature, etc.

    Grateful for any suggestions, thoughts, or feedback anyone is able to offer - Thank you! 🙂

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

    Validation errors for API

    Posted: 08 Jan 2020 04:13 PM PST

    I have to create a new resource Book via a REST API that has many attributes like book_id, genre, etc which can have its own validation error which gets sent along with a 400 Bad Request.However, I need to add a new attribute to the API which is an array of hashes

    characters: [

    {"role_id": 13, "character_scope": "main_role", "books": [45, 28]},

    {"role_id": 13, "character_scope": "temp"}

    ]

    This isn't the exact resource I"m trying to build just a analogy. So please bear with me.

    This new attribute has a lot of validation like role_id is mandatory and must be greater than 0, books must be present if the character_scope is "main_role" and so on.So a single hash can have multiple validation errors and each entry could have a validation error as well.

    So if I send an API response with validation errors like" role_id is invalid, it should be greater than 0". it's going to be confusing to the user since they'll have to figure out which hash in the array has this failure. In case of success, I'll send only a 201 and not individual success message for each character.

    How do you think I should handle the validation message for this attribute since I feel just saying characters attribute is not well-formed might be confusing for the user. And sending individual validation error for each hash in characters might be verbose and confusing too as it'll be hard to figure out which hash has a validation failure since there are no unique columns in each hash.

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

    React Native or Python next?

    Posted: 08 Jan 2020 12:26 PM PST

    So I'm a Full Stack Dev looking for my first role. I have experience with JS, CSS, HTML, React, Node.js, Express, MongoDB and SASS.

    Looking for a Front-end or Full Stack Role.

    Should I learn React Native for mobile dev or Python to add an extra language/backend power? More so to interest employers, I'm going to learn both in the end. Just right now curious which one would improve my chances of getting those callbacks?

    Or should I learn SQL next?

    Thanks for the advice!

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

    AJAX - Talking the talk

    Posted: 08 Jan 2020 03:59 PM PST

    Hello!
    So I just froze up while on the phone with a recruiter when he asked if I had any AJAX experience. I have no idea what AJAX is except that it has something to do with sending/receiving data. I told him no and that my last two personal projects involved using API endpoints to get JSON data from the source (how do i say this properly?). And then I "think" he asked 'whats JSON?', and I just said Javascript Object Notation followed by a few seconds of mumbling as I failed to explain how my 2 web apps utilize JSON data from servers.

    1. Ok, I figure I'd just google 'AJAX' so I'll sound less of a dumbass later, turns out AJAX is a means to get data from a server, how does it differentiate from what I use (Axios within my Vue.js webapps).
    2. Whats the proper way to say I get data from a server? I usually say, "I get data from an API" or "...API endpoint" but that sounds all types of wrong.

    I know how to do the work, but I don't know how to explain what I am doing. I guess that's a downside to being self taught with zero developer friends, but to be fair, I have only worked with APIs twice. Another thing is I don't have anyone to talk webdev with, which is why I am asking here!

    Please help me!

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

    Is there a way to view the Debug Console for iOS Safari with no Mac computer?

    Posted: 08 Jan 2020 09:52 AM PST

    I am developing a webapp for my company who use Apple iPhones and Windows laptops. I've run into problems with the app that only happen Safari so I need the debug console, but have no Apple computer to connect it to. Thanks!

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

    Recommendations on visual HTML editors?

    Posted: 08 Jan 2020 03:42 PM PST

    I'm currently writing my first project, coming from an android dev background. On Android, UI design is a pretty simple process of editing an XML file, with a drag and drop visual method if you prefer, and then linking those visual elements (buttons, images) to your java code. I'm looking for a solution with a similar workflow for my web dev projects, but I can't find anything. Is there some sort of API or framework or something such that I can best transfer my skills?

    Thank you!

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

    I am building an educational platform for web developers (focus on full-stack) and will be streaming conception -> production-ready through Twitch. Would appreciate feedback and suggestions.

    Posted: 08 Jan 2020 03:37 PM PST

    SAD to see downvotes on an education initiative! Shame on you downvoters.


    I will be streaming as much of the development as possible on Twitch so others can follow along from conception to production-ready and beyond, which could be a great learning experience for some. https://www.twitch.tv/stackweaverlive I will try to stick to a consistent daily schedule. Currently building the web app (Phoenix/Elixir with Vue frontend) and working on initial data model (db is PostgreSQL) and then user/auth and onto meatier features. The background workers will be in Elixir and Go, I'll be using RabbitMQ for messaging and Kubernetes for managing the containers, likely host is Digital Ocean or GCP (don't have the experience with AWS as yet).

    Background:

    I dropped out of high school before even finishing my exams and after a few years fell into programming. I taught myself through picking up small freelancing projects (on Rentacoder and Elance/UpWork) for about 5 years. Slowly got bigger and bigger projects and eventually got a job full-time for 3 years. I then packed up my stuff 2 years ago, left my country/job and returned to contracting. I moved to part-time so I could pour value into a project I can do right instead of always having silly deadlines where everything is a rush and quality/testing/refactoring are the first things my boss/client throw out the window.

    I had a false start with an uptime monitor which I couldn't see myself sinking more years of my life into (already spent 2 years on it). It was kind of demoralising to let it go but I've learned that passion in what you're building is essential to carry you through long-term. This is the industry I've lived every day for the last 10 years, and I intend to be here in another 10.

    Suggestions or feedback will not be in vain. I will be listening to everything and everyone. The idea has been brewing for 2 years (while working on my other project) and picking up 150+ tickets/epics on Trello. I am in no rush to half-arse something. Your thoughts and opinions will have a real effect on the direction.

    Whether you're just starting or have been around a while I would greatly appreciate any suggestions, especially if you've used sites like freecodecamp, codementor, udemy.

    It is really difficult to navigate the whole of modern web development, especially as a beginner, and I intend to build something that can greatly help with that. If you want to see some of the planned features or follow along see this reddit post I setup: https://www.reddit.com/r/Stackweaver/comments/elxtfp/stackweaver_is_an_educational_platform_for/

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

    Creating landing page for my web agency, need inspiration

    Posted: 08 Jan 2020 03:33 PM PST

    I am getting serious about my freelancing business (I do web development in python/django) and am about to create a site for it. I was thinking about copying the design from one of my project sites (deepsteg.com or datafix.io) but I was told these sites look like product sites more than agency sites.

    Can you guys give some inspiration by linking some of your favorite web agency design sites?

    Thanks in advance

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

    Need help with a coding solution to determine a users electric transmission rate

    Posted: 08 Jan 2020 05:17 AM PST

    Hi all, i've built a web app for bitcoin miners, called the "Bitcoin Cost Estimator" that I would like to adapt for use in solar power. Unfortunately it's only half baked. It uses the NREL API to pull a users electric generation rate based on their address, but without pulling their transmission rate, it's only one half of the true data. I do understand there are intricacies involved here, not everybody pays the same rate for their electricity... utilities charge more if you use more, and it depends on time of day... i just want to get a more accurate number. It does have "estimator" in the title, but as of now it has no way of calculating the transmission charges, only generation... Can anybody help me find an API or an algorithmic method that would allow me to grab the transmission rates by address, zip code, latitude longitude... or some other criteria?

    Before someone says something like "just input your rate per KwH" let me tell you, I meet 2-3 people per day who have no clue what their true electric rate is. I sell solar power, and i look at a lot of electric bills, let me give you an example.

    Im looking at an Eversource bill right now, displaying a generation rate of 8.53 cents per kilowatt hour, this customer used 1310 kilowatt hours in a month, and has an electric bill of 247.38... if you do the math, 8.53 cents * 1310 does not equal 247.48, it equals 111.74, so often times I'll walk into a customers home and they say "what are you offering for an electric rate? Because I pay 8.5 cents" and i have to explain to them that with a $247.38 bill, at 1310 kilowatts, their electric rate is closer 18.88 cents. (247.38/1310 = 18.88) if i deduct the connection charge (23.75) we get 223.63, which would actually be a better number to do the math on, because you will always pay a connection fee regardless, even if you unplug everything and use no electricity for the month, you will always pay a service charge just to be connected to the grid. sooo... 223.63/1310 = 17.07 cents/KwH.

    Looking over countless bills, I can tell you that number is always somewhere between 17 and 20 cents here in my state, so that's the degree of accuracy i'm looking for... its not 100% accurate, its a spread, but it's far more accurate than doing the math at 8.5 cents. The delivery rates (at least here in CT) are also broken down by kilowatt hour. When i look at the number of people who think their electric rate is something other than what it is, it gives me pause looking at bitcoin mining calculators... How many CT residents are looking at a bitcoin mining calculator and entering 8.5 cents per KwH instead of 17-20 cents per KwH? (I mean obviously nobody is mining bitcoin in CT but still...)

    when it comes to delivery the customer on this bill pays the utility company...

    2.6 cents/KwH --- transmission charge

    3.4 cents/KwH --- distributed charge per KwH

    .13 cents/KwH --- Electric system improvement

    .2 cents/KwH --- revenue adjustment mechanism

    .015 cents/KwH --- CTA charge per KwH

    1.08 cents/KwH --- FMCC delivery charge

    1.02 cents/KwH --- combined public benefits charge

    (These are the pieces missing from my code)

    These combined add around 8.5 cents/KwH to his total electric rate... 8.5+8.5 = 17 cents. The connection charge is the only part of the bill not directly linked to KwH usage.

    I don't know what the structure is for other bills in other utility districts, but I assume the dataset exists, cause i'm looking at it on my bill, and I look at it on my customers bills every day.

    I do have a brute force solution, which would involve looking at a utility bill for every district in the country, and hard coding all of those charges i see from sample bills into the algorithm... the obvious problem with this is that as utility companies raise their rates, I would have to stay on top of that and frequently edit the code...

    My algorithm is to collect the users address, convert it to longitude/latitude for my API to digest, then make a get request to the API for the generation rate (not transmission rate) at those coordinates.

    Then the bitcoin math... Not to go too in-depth, but it pulls the hashrate, calculates how many KwH needed for any given miner to hash enough to mine one bitcoin (hashes to mine 1 block divided by 12, I understand bitcoin are mined by the block, it's an abstraction) etc etc.

    The point here is to build something idiot proof... there is a large population of people who are incapable of entering their price per kilowatt hour into a calculator, because they literally do not know what their price per KwH is...they just think that they do. They think it's half of what it is. This demographic makes up about 50-60% of people I meet who want to go solar. (This may be unbelievable to coders, but not to a solar salesman)

    I know bitcoin miners are smarter than your average Joe, but people who want to save on their electric bill are generally not well versed in electricity, and I would like my algorithm to have applications beyond the crypto space.

    Furthermore, there's a million bitcoin mining calculator that ask you to put in your price per KwH... the idea here is to build something different.

    Not interested in answers along the line of "can't be done" or "why not just input your price per KwH like any other bitcoin calculator", so if that's all you've got for me, please save your keystrokes.

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

    How to make multiple replacements automatically on html files in VS Code?

    Posted: 08 Jan 2020 02:57 PM PST

    At my job, I make a lot of html emails. I always take a couple minutes after I'm done to check the copy and replace special characters (apostrophes, quotation marks, long dashes, trademark symbols, registration symbols, etc) through a regular ctrl+h.

    Is there some sort of customozed command I can use in VS Code that can automatically make the replacements for the same 10 or so potential characters to help eliminate the need to do it manually?

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

    How to begin building an alternative to Bandcamp?

    Posted: 08 Jan 2020 02:53 PM PST

    Hey there! So long story short, Bandcamp has been removing music uploaded by musicians based on their genre tags (extreme metal subgenres, to be specific). We'd like to create a little alternative. Ideally, it would mock Bandcamp's layout - with grids of album art, music players, and artist profiles. Can anyone point me in the right direction for best site builders, templates, or any other advice for a project like this? Any and all suggestions are appreciated. Thanks in advance!

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

    How to move up from CRUD?

    Posted: 08 Jan 2020 12:28 AM PST

    A little bit of background - I've always had interest in programming, dabbled in editing simple PHP scripts when I was a kid. Almost 2 years ago I took my first real programming job - junior front end, where I am confident to say I gained a solid knowledge and understanding of VueJS (I'm also comfortable with vanilla JS to a large degree). 8 months after I started, I quit and joined another company as a junior fullstack dev (node with express + vuejs). Right now, I'm the sole dev for a few different REST services and one internal website (backend + frontend).

    As much as I'm still not an expert in what I'm doing, I also want to dabble in new things, so I guess my question is how would I go about moving up from simple REST+CRUD? I have my eyes on a Udemy course titled 'Node JS: Advanced Concepts', which apparently deals with Redis, worker threads and clustering - would that be a good bet?

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

    No comments:

    Post a Comment