HNHacker News
TopNewBestAskShowJobs

mrozbarry

366 karma · joined May 22, 2018

submissionscomments
mrozbarry··on _hyperscript: A jQuery and JavaScript Alternative
I think this should expose something like `_hyperscript.on(domElementHere, 'your hyperscript string')` and that could resolve the co-locality concern.
mrozbarry··on Syntax Highlighting in a Webpage Without JavaScript
There are pros and cons to highlighting on the client vs the server.

If you highlight on the server:

pros: no javascript, can cache

cons: might be a way to inject scripts into everyone's browser, since the client has to trust the html from the server

--

If you write it on the client:

pros: server can't distribute injected scripts, server stores less things

cons: more javascript, every client has to do work

--

All software choices are weighing the pros and cons. Do the thing that lets you work quickly and safely.

mrozbarry··on SQLite: Code of Ethics
I'm going to throw the unpopular opinion in the ring: I like their statement. I like that their team is able to have common beliefs among themselves, and can share those beliefs. There used to be an internet where people could share what they believe, and if you hated it, you just ignored it.

While I am a Christian, I don't agree with 100% of this set of rules. For a small sample,

> Chastise the body.

> Recognize always that evil is your own doing, and to impute it to yourself.

> Daily in your prayers, with tears and sighs, confess your past sins to God, and amend them for the future.

> Obey in all things the commands of those whom God has placed in authority over you even though they (which God forbid) should act otherwise, mindful of the Lord's precept, "Do what they say, but not what they do."

That is not biblical (well, those could be in the Catholic bible, not 100% sure) at all, but that's fine. Now we all know where they stand, and what they find important.

mrozbarry··on SQLite: Code of Ethics
So, I'm reading two things, and please let me know if I'm wrong in boiling them down.

1. Someone on the internet has a different opinion than you, therefore they are wrong.

2. Someone on the internet has a closed community (ie codebase that does not accept outside contributions), therefore they are terrible leaders.

--

Don't conflate a project's opinions with their technology. Consider this; do you think the team wrote this code of ethics to offend people, or to demonstrate their opinions on certain topics? I do honestly believe that the sqlite team believes these things, and is that wrong that they choose to believe this?

mrozbarry··on Outrun: Execute local command using processing power of another Linux machine
Just noticed in the readme:

> No need to first install the command on the other machine.

and

> It must be installed on your own machine and any machines that you'll be using to run commands. On those other machines you must make sure to install it globally, such that it can be started with a command like ssh user@host outrun.

Not sure if the readme is just out of date, or if I'm misunderstanding the initial statement about the _other machine_.

mrozbarry··on Buttergate: Why are Canadians complaining about hard butter?
I live in Ontario, Canada, and I'm about 30min outside of what most people would consider "civilization." As a result, and also a result in living in a heavy minnonite area, the only heating we have is propane, and that is super expensive. To heat my home at 16 degrees celsius , it costs about $400 for the month. It doesn't help that it's an old house that I'm slowly renovating to improve the insulation and structure, but for the time being, my wife and I keep it at 10, using a wood stove in the living room, and wear a sweater.
mrozbarry··on Beej's Guide to Network Programming (1994-2020)
Similar experience. In my case, they wanted a video course on a library that wasn't finalized or published, and was still in an obvious beta with frequent breaking changes. On top of that, I was in a 12hr timezone difference, and only wanted to communicate with me regularly at 11/12 at night on week days, which didn't work well. Oh, and they only wanted to use skype, an app I never use normally. I was promised promo codes and release on multiple websites, and I got a single weekend promo code, and only published on two websites. And the icing on the cake is now 100% of the people I worked with don't work at Packt any more, so I don't even have a person I can contact any more to work on promotions or updates.
mrozbarry··on Beej's Guide to Network Programming (1994-2020)
Agreed. I published a video course through Packt and the whole experience was absolutely awful.
mrozbarry··on Garuda Linux
I totally get your point, I'm not trying to be difficult, but I think your conclusion of my argument is much more extreme than what I'd recommend people to do with arch.
mrozbarry··on Garuda Linux
Alright, you're correct, but it definitely shouldn't be a footnote. So I guess it's arch linux plus a few gui tools that other linux distros don't include by default, and maybe geared to gaming? I guess at this point, I'm confused why this isn't just a "configured arch" wiki to optimize for gaming, and maybe mention custom aur packages. I don't really understand repackaging arch linux, the whole point is to tinker and customize.
mrozbarry··on Garuda Linux
I agree, but for different reasons. In comparison, the GoboLinux post ( https://news.ycombinator.com/item?id=26002251 ) links to the homepage that immediately tells me "this is what this distro does." In comparison, Garunda doesn't tell me this, all it does is prompt me to download it. Even their about page is "well, these people worked on it." I don't care who is responsible, I want to know why this exists, what problems it solves, etc. So then I go to their forum, and there's a pinned faq. Go there - still nothing, just more things prompting me to download their version. Get this out of here.
mrozbarry··on PeerJS – Simple peer-to-peer with WebRTC
I'm not anymore, because it was incredibly frustrating to test locally. My original goal was p2p, for two reasons. I didn't want a backend if I didn't need one, and I wanted to maintain a lot of privacy features for users. So now I just have a websocket relay server instead, which isn't my favorite, but it does the job.
mrozbarry··on PeerJS – Simple peer-to-peer with WebRTC
Sure, you can do all that, but then I think you're in docker-land or something similar, and you are essentially building a system that works the way you think it does, and it may not reflect reality (arguably that is most testing).

And I think if someone is to build this containerized system for testing, it shouldn't necessarily be some app developer like me, it should be someone like the chromium or firefox team that know exactly how the browsers expect to communicate

mrozbarry··on PeerJS – Simple peer-to-peer with WebRTC
Audio and video would have been a nice to have, which is why I was going this route. I also wanted the data to never touch an external server so users could know their data is as safe as the people they share it with. The data for this app, by nature, isn't important to have a history, so just being able to share data immediately was all I needed, and p2p seemed like the optimal first step.

I cut out audio and video from my features, and for the most part, things are working just fine.

mrozbarry··on PeerJS – Simple peer-to-peer with WebRTC
I tried PeerJS in a pet project a few months ago. The one thing that became immediate is peer to peer over browsers isn't great. You can basically throw testing out the window, there is no good way to emulate p2p locally. Trying to test my PeerJS project involved having two computers, and occasionally required one to be connected through a VPN. Problems I found was connecting over LAN was really flaky. Most times, Chrome to Chrome was fine. Chrome to firefox was also mostly fine. Firefox to Firefox had a pile of quirks - connections only worked if I completely quit firefox, and started it again with just my two windows, and even then, sometimes that connection failed.

The ICE/Turn server stuff is also a mess. I ended up installing and hosting a coturn server on digital ocean, and it was a pain. Documentation wasn't great, stackoverflow/forum questions were typically old, and there didn't appear to be any obvious alternatives.

I also tried simple-peer by feross, which seemed to be fine, and most quirks remained as browser issues.

I ended up ditching webrtc and went with a server with websockets. With peer to peer, I'm stuck using a server somewhere, so I'd rather use a websocket server. Webrtc just introduced too many unknown variables. Is there a problem with an ICE/Turn server? Is there a LAN issue? Can browsers vendors properly do p2p to each other without a bunch of "if firefox, do this, if chrome, do this, if something else, panic"? The websocket server took 100% of these concerns out of the equation.

I'd love to be able to use webrtc confidently, but with the current tools for implementing and testing, I don't think I can say it is for myself.

So I think the TLDR is that webrtc peer to peer isn't really consumer-ready. The browser support seems a little hit and miss, testing through a LAN appears to be very flaky, and testing via node/some other framework is spotty at best.

mrozbarry··on EU pushes for 'right to disconnect' from work at home
Here are some simple rules to keep working at home sane:

1. Work in a place that you don't normally use to relax when you would get home from work. Maybe a spare bedroom, maybe the kitchen with a stool. 2. Start work on time, and keep your schedule as non-pandemic-y as possible. Don't sleep in until a minute before work, but get up and pretend to do your commute. Make sure you make your coffee early, too. 3. When your done work on the clock, STOP ANSWERING EMAILS/SLACK/WHATEVER IS WORK RELATED. Now you're home for real.

I've worked on and off remote in software, and has saved my sanity every single time. The biggest thing is people are afraid to say no, but in reality, if your boss asks you to do work after you're done your day, either ask for overtime or don't even answer it. It's not your responsibility to work when you're off the clock. If your work would force you to work after-hours even before the pandemic, then there are a few problems: the bosses don't understand the work you do, they don't respect your time, and/or you enable them by working beyond your hours.

mrozbarry··on Mozilla/web-ext: A command line tool to help build, run, and test web extensions
Global packages are harder to maintain. Let's say you installed foobar version 5 globally last year. This year, you're using a newer version of the foobar package that isn't backwards compatible. You install it globally, which replaces the old version 5. Now if you go back to the old project, your use of foobar is broken. Depending on the package, it might be fairly invasive/difficult to simply update.

For myself, I always install global-recommended packages as dev dependencies. It can be a little painful, but it also means there are no special install instructions, and it _just works_ (tm).

mrozbarry··on To find great remote employees, prioritize candidates with strong writing skills
It's not just writing, good communication skills in general, and this applies to non-remote, too. This is just common sense. Don't hire someone that can't or won't communicate well with you and your team. Writing is a good start, but I think a lot of people are using audio and video calls for work.
mrozbarry··on Covid vaccine: First ‘milestone’ vaccine offers 90% protection
I know you say that in mockery, but I'd rather be in isolation for longer and have a better idea what the long term of this looks like. Most other vaccines have the same process.
mrozbarry··on Covid vaccine: First ‘milestone’ vaccine offers 90% protection
No significant side effects so far tested. I'm always curious what the long term side effects will be, and we won't know that for years.
mrozbarry··on Switching from Vim to Intellij
Oh, I don't mean like you could maintain the library, just the configuration it may expect you to provide it.
mrozbarry··on Switching from Vim to Intellij
Well, some mixed feelings on whether or not it's a point in favor or not. Just like any system, don't install plugins/copy+paste config that you don't understand or can't maintain. I've been able to open tsx files with linting/highlighting/testing plugins and everything works as expected.

On the flip side, if you want easy configuration, then yes, vim/emacs/similar are not necessarily the right choices for you, but I don't think that means they are generally bad options.

mrozbarry··on Algebraic Effects for React Developers
I've stated several times that hooks are awful, and the general response I get is "oh, you just don't get it," but the way they are implemented is not very functional, but I guess the point is that they are side effects.

In terms of other things, JSX has nothing to do with stateless components, it's just a way to simplify writing `React.createElement(yourElementOrTagName, { ...props }, [ ...children ]);`

And for debugging, the absolute best advice I can give is to build smaller components, and use something like storybook to demo/isolate behaviour and tinker with it.

In general, react is a perfectly fine choice, though. I don't think it's any more strange than angular/vue/hyperapp/etc., but it is certainly lower level, which can feel less intuitive.

mrozbarry··on Git Sucks, What Am I Doing Wrong?
Oh, to be clear, I'm not saying that SVN itself backfired, but the process they used, which sounded a lot like firing from the hip for new features.
mrozbarry··on Git Sucks, What Am I Doing Wrong?
> What are we doing wrong?

Let me answer your question with your own quote:

> The thing is, everyone I speak to in the project hates it and not just because it’s new and they don’t like change.

Tech industry is all about change, and since there is so much change, we have to rely a lot of having good processes that can be applied to all sorts of changes. It does sound like your company dropped a bomb of a bunch of changes - they probably could have baby-stepped into code review before also switching to git. Too much change is hard for anyone. But I don't think your company's problem is git.

I used to be the guy that had a single branch project with pushes directly to master, live changes on production, some days had multiple deploys as we discovered bugs. While that was _easy_ from the perspective of "hey, I could just push code, and it was great", it was hard because all deploys were high-stakes, and could mean spending hours debugging and redeploying into the after hours of my work day (and this happened regularly).

Just to ask a question back to you, how many times did your company's simple SVN process backfire and cause more work for you?

mrozbarry··on Bible API
This is exactly it. The chunking of chapters and verses was so monks could verify their copies. Imagine a monastery, with 100 scholars who are tasked with copying the entire bible, with duplicates. The best way to verify that it was copied correctly is to do spot-checks where the source and transcribed documents are compared on certain chapters and verses.

At this point, I don't think it's necessary to split them up for making copies. That said, a lot of churches have integrated chapter/verse look ups as part of their service/sermons/bible studies, so it would be very difficult to remove them now.

mrozbarry··on Hyperapp – A tiny framework for building web interfaces
Yeah, I should have split things into a reply and a separate thread for the other stuff. That said, I didn't have any comment on the ecosystem - there's definitely a lack of userland things for Hyperapp, and that's for a number of reasons, the biggest being the latest is still in a bit of a transition period from v1, and as a community we didn't think someone would be posting about Hyperapp and make it to the top of hacker news. That really put us on the spot to try and get on here and explain the state of Hyperapp since we're probably more in a release candidate/late-beta situation rather than a full blown release.
mrozbarry··on Hyperapp – A tiny framework for building web interfaces
While the backend (src directory) is certainly ferp, the frontend (unbundled js in public) is 100% Hyperapp.
mrozbarry··on Hyperapp – A tiny framework for building web interfaces
You are absolutely correct!
mrozbarry··on Hyperapp – A tiny framework for building web interfaces
What code are you referring to? Hyperapp has clear separation of presentation, logic, and side-effects. Of course, developers can choose to keep that a clean and distinct separation, or let a bunch of code inter-mingle.
← PreviousPage 5 of 6Next →