News for hackers. Stuff that matters.
Re:One line of code that did cost $8k by pie6k on Tuesday May 09, 2023 @09:03AM (#35873727)
https://screen.studio founder here:

Thanks for all the comments.

Why 5 minutes? Well I ask this question myself as well. I think it was bad and risky idea.

You create MVP and you make 20 decisions like this a day. I probably thought "why not" as it was stopping anyway and I released a few versions a day at times and wanted to get feedback and crash reports quickly.

I did change it now to 3 hours.

Why downloading it without user confirmation?

Well - because this is how Electron auto updater works under the hood (checking for update = downloading it) and it cannot be customized without implementing a lot of the logic by myself. I'll soon modify it and do exactly that, but I was creating MVP, got traction and as solo dev I had to carefully pick things to focus on. Electron auto updater works and is battle tested so I picked it knowing this limitation and suboptimal flow.

---

So I understand a lot of critique you're making and I agree with it. It's just I was making compromises, iterating quickly and making silly mistakes.

Re:One line of code that did cost $8k by preommr on Tuesday May 09, 2023 @09:24AM (#35873958)
> Why 5 minutes? Well I ask this question myself as well. I think it was bad and risky idea.

Fair enough people make mistakes...

> I did change it now to 3 hours.

lol

Re:One line of code that did cost $8k by pie6k on Tuesday May 09, 2023 @09:45AM (#35874216)
Shampoo
Re:One line of code that did cost $8k by CyberDildonics on Tuesday May 09, 2023 @10:19AM (#35874717)
Is your response to your app still trying to update too often really just "shampoo" ?
Re:One line of code that did cost $8k by pie6k on Tuesday May 09, 2023 @11:00AM (#35875349)
Not much more I have to say about crying over 500 bytes json fetch request and policing others to make it at most once a day instead of every 3 hours.
Re:One line of code that did cost $8k by nottorp on Tuesday May 09, 2023 @10:57AM (#35875301)
> Well - because this is how Electron auto updater works under the hood (checking for update = downloading it) and it cannot be customized without implementing a lot of the logic by myself.

Yay, one more argument against Electron and the likes.

Re:One line of code that did cost $8k by dethos on Tuesday May 09, 2023 @11:27AM (#35875827)
Comprehensible, very hard to nail everything on the first try, and a person often has to make tradeoffs.

> this is how Electron auto updater works under the hood (checking for update = downloading it)

Electron auto updater seems too raw, for an app that has a decent size.

> I did change it now to 3 hours.

In my opinion, it is still too frequent. Ideally, the user should be able to set his preference and the app should have a less aggressive default (once a day seem more than enough for most cases).

Re:One line of code that did cost $8k by BizarroLand on Tuesday May 09, 2023 @12:39PM (#35876948)
Or you should have 2 channels of updates.

1 for Alpha/dev/beta testing, whatever, and 1 for "stable".

Allow users the option of being beta testers and getting updates every 3 hours, and if they do not opt in, they're put in the weekly update "stable" group that gets the most reliable and solid but up-to-date version of the app at that time.

Re:One line of code that did cost $8k by pie6k on Tuesday May 09, 2023 @04:27PM (#35879956)
What's so big deal in all this 3h vs 24h? It is still downloading it only once anyway and if there is no update the network call it makes is really 300 times more lightweight than opening google.com. I really don't understand this.
Re:One line of code that did cost $8k by undefuser on Tuesday May 09, 2023 @01:21PM (#35877493)
It is understandable that you need to iterate quickly, but that should not be an excuse to not spend just 5 minutes to think through the potential scenarios. Also, you can have a function to query an end point to find latest version available as a string, compare that to a const string inside the build, if they are different then invoke the auto-updater. Simple and light weight.
Re:One line of code that did cost $8k by pie6k on Tuesday May 09, 2023 @04:25PM (#35879933)
What products did you ship last year?
Re:One line of code that did cost $8k by undefuser on Tuesday May 09, 2023 @07:13PM (#35881574)
None. But I also have never costed any of the companies I worked for 8k due to 1 line of code. It was a constructive feedback, but hey take it however you will.
Re:One line of code that did cost $8k by pie6k on Wednesday May 10, 2023 @02:22AM (#35884270)
My previous comment was challenging and aggressive. I'm not sure if I regret it or not.

I believe there is a fundamental difference between working in a company and shipping products on your own as a solo person.

I did have 3 months of savings left and wanted to pursue my dream of creating a start-up.

I did create a fully working desktop app; I did create a high-quality design for it, a landing page, entire deployment infrastructure both for the website, uploading new version artifacts. While doing that, I was also taking care of all the marketing of this. And a lot of other shit I don't even remember. At the same time, you were working at a company where very likely there was at least 1 person working on each of those areas independently, and most of the people did not give a damn if there would be a month delay in some area. I did give a damn as I knew how much time I had.

On top of that, your comment just assumes tons of things as facts in quite an arrogant way, eg. you explain to me to compare version strings as if you've discovered a circle. It is a damn obvious thing, and it, of course, happens. The bug was all about restarting the updater state when your version string indicated there was a new version and checking it as if you never checked it before, even if the new version was ready to install already. I wonder if you ever think how would you feel if your co-worker writes a code review pointing obvious things you actually did, not related to the context of the PR at all and ending it with "Simple and light weight." punchline.

this is really annoying, and this triggered me to write my challenging question.

I really doubt you'd be so "mistakes-free" and "I know it all" if you switched roles with your CTO for a week while all devs will take a week-off. Maybe you should consider that or if you're not willing to do that, to fucking think twice before writing comments next time thinking you're a guru.

I'm not sure if there is any point in me writing all this as I believe if someone is not willing to listen and understand other perspectives truly, it is hard to change from the outside. Looking at the confidence you express your opinion (you actually don't express an opinion, you state your opinion as a fact), I believe there is no slightest thought like "maybe I miss something" or "maybe I'd also do exactly the same thing in this person shoes" and other shit like that.

I admire you for being careful and always thinking through all possible scenarios. On the other hand, I enjoy my life as a founder of a startup that has traction (and all its benefits of it), and I'll risk betting it is precisely because you likely never make such mistakes, and you look at people who do from a perspective of "I know it all, and I'll tell you what you should do." (note: it is possible you simply don't dream about founding a start-up which is totally fine. But even then, I believe it is a fundamental mistake to look at people who do create start-ups from the perspective of full-time-work with focused tasks and projecting your perspective on theirs)