Hacker News new | past | comments | ask | show | jobs | submit | lecarore's comments login

To make sure i don't push temporary local changes to production, I used to have a github workflow that rejected code that contained the word "TODO" or "console.log". This way, i could add TODO comments that actually need to be done before deploying. Now i'm usign github less but my deploy script does the check, and you can probably make a pre-commit hook with this, or pre-push


I've set this up for my parents, they have a small bed and breakfast in the countryside, and they love it. It's much more responsive then their past WordPress install when editing, because their desktop is faster than a cheap PHP hosting. Some things are needlessly complicated in publii though, I'd like to make a more minimal version one day


Ditto, I've used this for my mother's website. She probably could use something even simpler but mostly I'm pretty happy with it.


I use this at work (Enterprise SAAS web software) and we had to implement a backup "polling every 5 seconds" for clients that would not support it. It's quite rare though. We assume that some caching proxy might be waiting for the GET request to be fully done to cache it and then give it to the user or something like this. The SSE would then never get updates, while every normal HTTP request would work


I've read that this does indeed happen with some HTTP proxies. In some environments that includes HTTPS because some environments intercept HTTPS traffic too. It's enough for me to consider SSE too unreliable to use if my application needs to be reliable with events, and it's the first thing I thought when I saw the SSE spec the first time.

Back beore SSE, I recall seeing some server-to-client event protocol specification inserted extra padding bytes after events in the middle of an HTTP response stream, just to convince some HTTP proxies to forward the event in an incomplete HTTP response, but I don't recall which protocol now. It was never entirely clear how much padding would be enough, or if any amount would be.

When cometd and the Bayeux publish-subscribe protocol was designed, this is why long-polling was always used, instead of streaming partial responses inside a single HTTP response. With correctly designed overlapping long-polling requests, it's possible to get event latency very similar to SSE, without this issue of lost events due to proxies. So that's a good, reliable choice, if you don't use WebSockets. In fact it's more reliable than WebSockets (which can also get stuck at some proxies), so if you value very reliable event delivery long-polling or just periodic polling are the way to do it, but with much higher overhead.

In theory SSE provides the option for mobile device power saving described at https://html.spec.whatwg.org/multipage/server-sent-events.ht... Using more active protocols almost certainly defeats this. In theory a mobile network and network stack (modified inside the mobile browser where cleartext is available) could implement that power saving strategy for mostly-idle WebSockets too, which is another argument for WebSockets.


I keep thinking something must be "wrong" with my scrollwheel, as all those experiences are super annoying but keep getting published by some people. I think it's not as bad if you're on a Mac or something. Anyway, I agree, it's just bad ux


Worked great on Linux/Firefox/Intel graphics with a trackpad for scrolling.


Funny how they went through that much effort to render everything client side, but then restrict the whole thing to a (quite frustrating) one dimensional control with the scroll wheel. In the end, a pre-rendered video would have worked much better for this UX. Many WebGL "experiences" I see fall into this trap, they want full control of what's shown, wasting their technical effort.


I initially thought that and then i realised i could move my mouse and look around. You are still on a rail, but you can free-lock.


I was able to look around using my phone, but it was still on rails.


Good point ! I'm on firefox on linux, and after 1 min of loading the thing it barely could run on my machine, so I didn't explore every possibility. If you can look around I guess it could be replaced by a 360° video but those are really heavy, probably more than the 3D experience itself.


I would have enjoyed this way more as a game/walking simulator where you can explore this magnificent place at your own pace and discover its secrets.


Hi HN, I made this as a fun little side project, you can learn more about it on the corresponding blog post https://lecaro.me/picnic-end-to-end-encrypted-collaborative-...

I'd love for someone to check the crypto part, I exposed my approach in the Readme https://github.com/renanlecaro/picnic


As a JS dev, I have no idea what I'm looking at. Maybe add a description at the top of the readme telling what the framework is for, in layman's terms ?


Thanks for the feedback. Will improve the readme and add some examples/screenshots so it makes more sense at first glance.

Thanks for at least trying to understand it!

It's just an ETL pipeline like similar to what you can do with airbyte or etleap. or a custom python script or whatever.

Just an experiment for now, will try and improve it.

Probably calling it a framework is a bit disingenuous at current stage, as it is very barebones proof of concept. Sorry for that.


Much better than what I expected to see. But i'm not sure what the use case here. Who wants to see absolutely all comments posted in real time ? I didn't really see a login button, or filters. At least it's (very) compact


I use the main page to view New Stories, Top, and Hot stories without needing to refresh the page. Latest Comments are nice to have on the side to see what people are discussing. Hide columns if you are not using them. I think the main feature though is the Story view, I like collapsed top-level comments and clicking on comment body to easily expand/collapse (works well on Mobile), and getting notified with link to new comment while in Story view. You can leave the page open and come back later and see new comments. I just added new feature: tab title gets updated with new comment count so you can see how many new comments while in other tabs

Login was going to add if people like the page. From what I understand there is no HN OAuth, so people would need to enter username/password which is a negative. There is a nice search feature but it is hidden, I want to integrate it better with the site. Feedback is appreciated


Agree. I really like the dense/space saving presentation. It reminds me of these stock exchange screens.


I didn't completely hate the abuse of JavaScript in this. But still it's not as enjoyable as a simple responsive page of static HTML and images you could scroll.


How exclusive are those resources ? Like, the 8k icons are all unique ? Or is it just recycled open source work being sold ?


Exclusive? May be useful for a starting point for someone. But not exclusive. On a first look, layouts and overall design feel is generic.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: