News for hackers. Stuff that matters.
Re:Hidden work when launching a SaaS by dalfonso on Monday February 12, 2018 @03:11PM (#16361604)
Yes, these are the "features" that really bog down the excitement when trying to launch -- user invites, user profiles, billing, transactional emails, password reset, file upload, PDF conversion, free trial capability, coupon code capability, shared accounts, PERMISSIONS, etc. Then you get to the next level -- search, caching, deploying.

Not exactly in the same vein as the others, but I've never seen soft-deletes done really well either i.e. the user can "delete" something but it still lives in the database. It's one of those features that sounds good but when it comes time to implement, it ends up being more trouble than it's worth.

Re:Hidden work when launching a SaaS by Klathmon on Monday February 12, 2018 @06:17PM (#16363287)
Another point I didn't see mentioned was "support and documentation" (not necessarily SaaS specific, but still applicable)

I was the lead developer of a greenfield new b2b web application that took several months to develop the MVP for, then another almost 2 years to develop support tooling and systems for.

We would get calls that it didn't work with no other information, calls that it didn't work with "my older samsung", emails with pictures taken with another phone of the login screen with no other information, users that didn't know the name of the company they worked for, or even their username in the application.

We found suprisingly that there was a subset of our users that couldn't even tell you if they were on iOS or android! But quickly we learned that it's not their job to care about that, it's ours. We spent the next almost 2 years writing in debugging code, shipping logs back to our servers, writing code to send errors back to us to avoid having to ask the user on the phone to "please read out exactly what the error message says" only to find out that it happened to them last week and they don't remember... We wrote code to be able to "playback" what a user is doing in the app before they have a problem so we could identify UX issues, and redesigned UIs to include important information so when users sent us screenshots or pictures of the device we could get useful information from it from anywhere in the app (like app version, os version, username, company, etc...). We wrote documentation for how to enable camera permissions that they may have inadvertently denied for several android versions and flavors and iOS versions because we found that some users would be confused if the images and names were slightly different.

If you asked me today what makes our app better than all of our competitors, i'll tell you that it's hands down the "support" capability of the application, and that if a user has a problem, we can track down what they were doing when it happened and figure out a fix (either procedural or technical) sometimes before they even call the problem in!

Also, it's a sure fire way to deflate the ego of the hotshot lead developer that thinks he's made the best thing since sliced bread when the most important part of the application is a glorified log shipper!

Re:Hidden work when launching a SaaS by jamesvandyne on Monday February 12, 2018 @06:43PM (#16363450)
Spot on. That's something that's next on my roadmap: building out a help and documentation site/portal. There is so much more that goes into building and launching a SaaS app than just the app itself.

I'd to love to hear more about how you identified UX issues from pure logging data. Do y'all write anything up about this online anywhere?

Re:Hidden work when launching a SaaS by Klathmon on Monday February 12, 2018 @06:56PM (#16363537)
No, we haven't really written anything up. I've always wanted to start writing about stuff like this, but never get the time (because I spend it all writing stupidly long comments on websites like this!)

But one example of how we use logging info to clean up our UX was just kind of "watching" what the users were doing by just following absurd amounts of logging (logs like "clicked x button" are short and cheap, as long as you can filter them out when needed, they are immensely valuable). Our application does a lot of barcode scanning, and we noticed just from browsing around individual paths in our log-shipping system that if some users had an error with the camera (lowend android cameras are a lot buggier than i would have imagined!), they would go into the settings, select the option to change the scanner to a wireless laser attachment, then change it back to the camera version before going back to what they were doing.

Overall the process took them a good 15-20 seconds, and when they should be scanning about 1 carton a second in the app, that added up in both time wasted and in user frustration. We added a "retry" button to the error screen, and instantly the long workaround stopped happening. Then we took it a step further and would attempt to re-grab the camera in the background before showing the error to the users, which cut down on the number of those dialogs significantly.

It was a matter of getting an alert that this "camera not readable" error was happening commonly enough to trigger an alert, and from there was about 10 minutes of browsing the "breadcrumbs" for a few users to see the pattern, maybe an hour of adding the "retry" button in the dialog box (and testing), and another hour to do the auto-retry a few days later.

3 hours of work when it's all said and done (of course, after the timesink of developing it all), and the product is better off. And that's something that i'm almost 100% confident that we would have never found out about without this kind of logging and reporting.

We use sentry.io [0] for a lot of this error logging, and we have found it incredible at being able to "walk in the user's shoes" for things like this.

[0] https://sentry.io

Re:Hidden work when launching a SaaS by yread on Tuesday February 13, 2018 @06:30AM (#16366344)
I had a similar issue just yesterday - my app can produce xls files with links back to the app. However, if the stars don't align correctly when user clicks the link, the browser won't send user's cookies so they are always just shown the login screen. You can implement a server workaround to refresh="0" and when the refresh happens cookies are sent again

https://stackoverflow.com/questions/2653626/why-are-cookies-...

Re:Hidden work when launching a SaaS by gm-conspiracy on Monday February 12, 2018 @09:50PM (#16364361)
I really appreciate your comment.

I have been pushing hard for our team to implement sentry.

I have implemented JS logging for all of our AJAX interactions, but having sentry 'coalesce' everything into a single view, as you know, is immensely useful and actionable.

Re:Hidden work when launching a SaaS by Klathmon on Monday February 12, 2018 @10:21PM (#16364484)
Well if it helps, sentry is incredibly easy to implement on a basic level, and the free tier is more than enough to play around with for quite a while before you need to step up to something more.

For us the process started with just including the script and getting a few crashes or exceptions here and there, and once most of us were comfortable that some time investment here would pay off, we really wired it in and the benefits just skyrocketed.

Now we even have it running on our server side code in one case because it's just such a damn good tool.

I will say that the downsides are that the search is fairly poor unless you self host and have access to the database, and forget about using it for any kind of reporting over time periods (it's actually really hard to see things like "number of times this error happened in the last week").

But overall it's a very easy system to layer on top of just about anything. I know nothing about your company or product, but see if you can get the approval to spend an hour or 2 to just try it out. As long as you don't have any PII its a pretty risk-free thing to try.

Re:Hidden work when launching a SaaS by jamesvandyne on Tuesday February 13, 2018 @09:46PM (#16373002)
Brilliant. Thank you for this response.
Re:Hidden work when launching a SaaS by mooreds on Monday February 12, 2018 @10:06PM (#16364430)
Please tell me you are evaluating saas tools like zendesk and intercom. Depending on your app and your user sophistication, these can be great solutions. (If your username is expecting code examples, I'd look elsewhere.)

They have startup pricing and we've used both. It wasn't great to pay a monthly fee, but it was far cheaper than anything I could have put together myself.

Re:Hidden work when launching a SaaS by btown on Monday February 12, 2018 @03:31PM (#16361792)
Soft-deletes are highly expensive technical debt until properly wrapped with an API. Until that happens, every developer/consumer needs to remember to check for archived=false.

One solution I’ve sometimes used is to move deleted records into a separate NoSQL database at delete-time. Keeps data around if you want to implement “see trashed/archived” later, can be migrated back in under an archived flag once you have that API, but in the meantime everyone else (including, crucially, the analytics team) can pretend that everything in the database is live. A kludge, to be sure, but sometimes a necessary one.

Re:Hidden work when launching a SaaS by saurik on Monday February 12, 2018 @05:57PM (#16363161)
Create a view and have everyone use the view. Name the original table something like "table_with_deleted_records" to make it stupidly clear what is going on.
Re:Hidden work when launching a SaaS by jamesvandyne on Monday February 12, 2018 @03:50PM (#16361988)
author here. You’ve hit the nail on the head.

We actually have soft delete in Kwoosh. We’re using Django on the backend. The way we went about implementing it was with a flag on our core data-type (Apps, Screens, Discussions, Tasks etc... all share a common parent class). Then we used an custom Manager class (Django’s name for the bit that lets you set default filters for models) that sets the default filter to only show active items.

If we want to query all objects including archived items (like for viewing them as read-only) we just change our code from Task.objects.filter() to Task.all_objects.filter().

We also have another flag for controlling visibility directly. This makes it manageable to remove a parent task, hide the children tasks, and restore into the expected states.

I should write a more in depth post on this for workshop. Maybe someone would find it helpful.

Re:Hidden work when launching a SaaS by sbov on Monday February 12, 2018 @03:32PM (#16361803)
+1 on the soft deletes. It potentially adds a corner case to everything you do with that record. It's a permanent tax on your productivity.

If you can get away with it, its much better to just delete it out, perhaps moving it into some archive table incase you change your mind later.

Re:Hidden work when launching a SaaS by jimjimjim on Monday February 12, 2018 @07:07PM (#16363602)
soft delete aka flag delete is a very common thing in databases. If it's a customer account that is being deleted then just set a flag on the record or change the user's status. The last thing you want is to try to resolve a dispute where all the details have been removed from a database.

safety first. record everything.

Re:Hidden work when launching a SaaS by bungie4 on Monday February 12, 2018 @04:51PM (#16362634)
I usually use a date as a soft delete. If it's non-null, its deleted, and, you get to record the actual date of deletion.

I've never found it to be a problem. In fact, I find it's more of a problem to physically delete. You just have to design that way from the get go. Not added on after you've realized ppl leave.

Re:Hidden work when launching a SaaS by Rapzid on Monday February 12, 2018 @05:39PM (#16363039)
Yeah, I find the sentiment that this is hard to implement without it being YOOGE tech debt odd. There are so many ways to get it out of the way, including just querying through a view if you can't come up with an app-side solution.
Re:Hidden work when launching a SaaS by jessaustin on Monday February 12, 2018 @06:19PM (#16363302)
The technical debt might be proportional to how many ad-hoc queries you have buried in various modules before you realize that some things do need to be deleted as of a particular date. But as you indicate, with a real DBMS, naive queries can just be pointed at a view.
Re:Hidden work when launching a SaaS by bungie4 on Tuesday February 13, 2018 @07:50AM (#16366713)
Also, how to deal with down the road queries wrt; churn when you have deleted the data. I'm calling self inflicted technical debt because of shortsightedness or, dare I say it, lack of acumen. :D
Re:Hidden work when launching a SaaS by wolco on Tuesday February 13, 2018 @12:28AM (#16364966)
Using a framework like laravel makes soft deletes easy. Great for prototyping.
Re:Hidden work when launching a SaaS by xstartup on Tuesday February 13, 2018 @01:45AM (#16365216)
-> user invites, user profiles

Not needed

-> transactional emails

Most transaction email services offer same old SMTP interface.

Re:Hidden work when launching a SaaS by jacobwyke on Tuesday February 13, 2018 @04:35AM (#16365877)
These really depend on the product. Kwoosh, the product in the article, is a team based project management tool and so requires a way to add other team members.

As for transactional emails, we have found that its the planning, writing, designing, producing content for them that takes time and not the actual sending process.