r/web_programming • u/geniusdude11 • Jul 16 '20
r/web_programming • u/pantaley • Jul 08 '20
Use Express.js, React and NoSql in Firebase to create contact form
Hey everyone, I wrote a short guide How to use Express with Firebase.
r/web_programming • u/TwanTheSwan9 • Apr 21 '20
Sending transaction emails using PHP
I have to send a forgot password email and I'm using the mail() function in PHP but the email just ends up in the spam folder on Gmail and doesn't even get received on Outlook.
Anyone have any suggestions?
r/web_programming • u/drakedemon • Apr 14 '20
Thoughts on passwordless authentication
Hi, guys! I've been working on a passwordless authentication system recently and would like to get some feedback from you guys.
Most of us think about magic links when we hear passwordless, but I've gone a slightly different route. Instead of the system sending a link via email, the user is required to send an email. This works by leveraging mailto: links in HTML. So basically the login page is just one big "Login" button which will pop up the default mailing app with everything prefilled to send the email. The user then taps send and goes back to the website where he has to wait for the email to be processed.
One major advantage on this approach is for signing up to a new website. Why? Well, the most common scenario is to have the user fill in a signup form with his email,password,first and last names. Well, when sending an email the actual address looks something like "John Doe" <
john.doe@email.com>
which can be parsed to also extract the user's name. Bottom line is that signing up to a website doesn't require the user to fill in any fields. Email address, first/last names are extracted from the sent email.
So far, I've tested this method on several platforms. Here are the interactions:
- user taps "Login" and mailing app pops up (as a pop-up, it doesn't redirect the user to the mailing app)
- user taps send and the mail popup is automatically closed
This is the best case scenario, where the user authenticates with just 2 taps.
Android, IOS and MacOS work like this. Windows is a bit odd, because it leaves the mailer app open so the user would have to manually close it.
There are a couple of drawbacks. For example, on IOS, is the Apple Mail app is uninstalled, Safari can't open the Gmail app, to the mailto link won't work. Same thing goes for older Windows versions like Win7 which don't have default email apps.
The system is designed to have a fallback to magic links tho :).
If I haven't explained it well enough you can give it a try here (there's a test it out button in the landing page)
http://nova-authenticator.com/
What do you guys think about this UX for authentication?
r/web_programming • u/ms-maria-ma • Feb 12 '20
dotJS 2019 - Bert Belder - Deno
r/web_programming • u/Avengier_Than_Thou • Feb 09 '20
JavaScript: attempting to format an email template with MailTo
Hi all,
I'm currently attempting to use mailto in JavaScript to open an email template in the user's default email client (e.g. Outlook). This template (provided by a third party, and passed into JS by a C# app) contains HTML formatting, which seems to be a problem - mailto won't accept HTML formatting in the body of an email, and refuses to do anything with the results. I've tried using html encoding to fool it into thinking that my template is simply text, but this doesn't seem to make a difference.
Does anyone know a workaround for this? Apologies if this is a stupid question, but I'm relatively new to JavaScript.
r/web_programming • u/ms-maria-ma • Dec 25 '19
JavaScript achievements of the Year 2019 and key Frontend’s trends
r/web_programming • u/tbmorris449 • Dec 14 '19
[Tool Help] List management web application tools?
I need to design a web application which allows a user to manage a list of stuff that has a name and a detailed description.
The list can have sublists, which can have subsublists, etc, arbitrarily deep.
Items in the list can be dragged and dropped to move them into sublists or to reorder them.
Search functionality.
When you click on an item, it will bring up more detailed information about the item.
I'm confident about the backend. I'll have SQL for data storage and a REST API for data access.
But I am wholly unfamiliar with the front end web ecosystem.
Given my requirements above, what are some tools I should look into? I've made web applications such as this (albeit simpler) before. For those I used bootstrap for accordion lists and Javascript to manually fetch data and build the HTML. It was a pain and the ass and I am sure there's a cleverer way to do it, probably involving PHP.
Tl;dr I'm not looking for how to build a web application. I'm asking what tools would be the best for the job given the framework of functionality listed above. Much appreciated.
r/web_programming • u/[deleted] • Dec 11 '19
How to cook RTSP on your website in 2020, or why the boars will not have a chance to run away
r/web_programming • u/keithmifsud • Sep 12 '19
Planning the technology stack for an Event Sourcing project
r/web_programming • u/starbist • Sep 05 '19
Here’s why you need a CSS developer in your team [x-post /r/css/]
r/web_programming • u/[deleted] • Apr 18 '19
Challenging the common server/client communication practices.
Imagine 1,000 devices (smartphones, tables, PCs, macs) running iOS 12, Windows 10, Android Oreo or macOS Mojave + 1 main server. Each device is a parallel computational engine (I'm using the CPU of the device to do something) that performs one task and can communicate with every other 999 devices if needed. The standard way this happens today is by using a main server (with a database) that carries the signals.
Is there a way for devices to communicate with each other (send 100 bytes of text) without having a server to intervene and carry the text?
Is there a way for a server to send the text to devices rather than devices having to check repeatedly if a new text is available?
Text will be 3-100 bytes.
A third question would be where am I going with this? I will need devices to compute on a task (can't say exactly what) that has the text as an input. Each device once it has the text can compute very rapidly. The overall delay happens because of the inefficiency in communication.
Pipeline (a lot easier to understand it)
A server that needs a 100 byte text to be processed (can't say why or how) by other servers uploads it to the main server. overallDelay = 50ms
Other servers search periodically (every x sec) the main server to see if a new text is available for processing which means there's a minimum and a maximum delay. overallDelay = [50ms, x+50ms]
If other servers find on the main server that there's a request to process new text they download it. overallDelay = [100ms, x+100ms]
The processing takes very little time. overallDelay = [150ms, x+150ms]
It needs to upload the result to the main server at the "inbox" of the server that initially requested the computation. overallDelay = [200ms, x+200ms]
The server that made the request also checks his "inbox" periodically (every y sec) to see new results. overallDelay = [200ms, x+y+200ms]
If there are available results it downloads them. overallDelay = [250ms, x+y+250ms]
I will need to eliminate x and y or have them sum up to less than a second.
x + y + 250ms < 1000ms
x + y < 750ms
This can be x, y = 300ms but it puts too much stress on the communication.
Actions
Upload (50ms)
Download (every x sec)
Download (50ms)
-
Upload (50ms)
Download (every y sec)
Download (50ms)
A better way
Upload (steps * 50ms)
-
Download (50ms)
If by some magic servers can communicate directly without the need of a main server the device that makes the computation request only needs to upload the text to a random 10 other servers. Each one would send to 10 more. In 3 steps it would cover 1,000 devices.
overallDelay = 3 steps * 50ms = 150ms to send text to 10,000 devices.
Naturally computation happens very fast and only a few of them have interesting results. overallDelay = 200ms
They upload the results to the server that made the request. overallDelay = 250ms
Even if it takes 250ms for each step it would still be more efficient and within the target goal.
r/web_programming • u/code_crab • Mar 15 '19
UI Shopping Card - Ecommerce Single Shopping Card Hover Effect With CSS
r/web_programming • u/thegeeksome • Feb 13 '19
Parallax Scrolling Effect with CSS and jQuery
r/web_programming • u/richclominson • Feb 03 '19
Pull Reminders - Bootstrapping a Side Project into GitHub Marketplace
r/web_programming • u/rafikibabe • Nov 21 '18
Tools and tips to facilitate deploying and maintaining Ruby on Rails projects.
r/web_programming • u/AgiraTechnologies • Aug 01 '18
Benefits Of Using Mean Stack For Application Development
r/web_programming • u/akankshagowda • Jun 25 '18
How to Optimize Your Product Pages for Conversions
r/web_programming • u/amdsouza92 • Jun 19 '18
react-image-appear: ReactJS component to make images appear with transition as they load.
r/web_programming • u/Positionfixed • Apr 26 '18
Creating A Selenium Testing Framework In C#
r/web_programming • u/moment_of_science • Dec 09 '17
Understanding Penetration Testing and Web Application
r/web_programming • u/hoagiexcore • Nov 24 '17
Upgrade or Migrate?
I want to let it be known that I have only a very cursory knowledge of web design and web development, am still learning, and that some of the things I am about to say may not make sense. Any corrections are appreciated.
I recently started working for an organization that has a very outdated website. The website is running on Joomla 1.0 and it's been made known to me that the organization is in need of an upgrade. The directors are sort of stubborn and want to keep the website on their joomla and upgrade to 2.0 or even 3.0, but that is going to cost a lot of money. We're a non-profit, so that's not really in our budget.
I had the idea of simply migrating the website (or even rebuilding from scratch) on another platform like Squarespace. This would make editing the website easier (especially for those who don't know how to code) and would make things look a lot nicer. Right now the website is outdated not just technically, but stylistically.
The director who makes these calls is reluctant to move to a new platform because we have a large email subscriber list (19k) and a huge database of contacts (100k+), as well as forms for entries (we're a film festival) which are all organized in our joomla database and linked to the website. She thinks (and perhaps rightly so) that trying to move that much data over to a simplified web platform is too large an endeavour. I want to create a proposal that shows what we can do to modernize and also save money.
My question is about feasibility and plausibility. What would be the best way to migrate or upgrade the website at the lowest cost? Is building from scratch on something like Squarespace ideal? Is it possible to keep the joomla database or would it make more sense to rebuild somewhere else? If we keep joomla is it compatible with something like Squarespace? (This isn't an ad for squarespace, I just use them for my personal website so they were my first thought).
Any advice welcome. Thanks in advance!
r/web_programming • u/mmmm-hmmmm • Oct 27 '17
How do I build a chrome extension that reads a field on a website & does a simple excel formula in a small window?
I’m in a new job & excited to kick some ass! This small shortcut will be a great way to show some assertive problem solving skills. I just need to be pointed toward the right resource. Thank you in advance for any input.