Better HN
topnewbestaskshowjobs
Log inSign up

rubyist5eva

1,522 karma · joined Aug 31, 2020 (6y ago) · 1,230 submissions

Submissions

comment 5y ago · link · parent

good to know

comment 5y ago · link · parent

You can include BSD licensed code in GPL code, but not the other way around right?

comment 5y ago · link · parent

I'm guilty of the odd shitpost or troll, or forgetting that there is an actual person with feelings on the other side of a heated internet argument - but this thread gave me pause and kind let me re-center myself. Something that's been difficult given the circumstances of the passed two years.

I'm going to try to be better.

comment 5y ago · link · parent

That sounds horrific. I hope you found a doctor and medication that works for you.

comment 5y ago · link · parent

I will keep that in mind. I'm up late working a lot lately, maybe a night to just watch a stupid movie instead and sleep in is just what I need.

comment 5y ago · link · parent

I had my son right before the pandemic. Caring for my new son during Toronto lockdowns in a tiny apartment was pure hell. He is the one thing keeping me going (and my wonderful wife, of course). My one hope is that we can put COVID-19 behind us soon enough so that he has no real memories of it and can live somewhat of a normal life. I want him to be able to meet people in public and see faces without masks. I want him to play with children his age and make friends in the neighbourhood and have sleepovers and playdates. I want to bring him to the toy store and urban playground without ridiculous rules about distancing. What is "normal" going to be post-COVID-19 even? Questions about the future and overall uncertainty keeps me up at night.

I ended up buying a house in my hometown. I work permanently remote now. It's a healthcare company, so it's very busy, stressful, often chaotic - but it is rewarding work and I feel like I am making my own small difference in the world.

My wife wrote a letter to my son about out life during the pandemic yesterday. We will give it to him one day when he is old enough. It made me think that I should create an email address on my server that is specifically for him and write him letters like this so that he can know what life was like and everything he went through. I just want to do everything I can to do right by him. I pray that he will forgive me for any mistakes I may have made while trying to keep him safe during this pandemic.

It means a lot that HN has been so kind to me. It's hard to find kindness these days. People are afraid, angry, in completed despair...but kindness is what we need. Thank you.

comment 5y ago · link · parent

Thank you, and I like the idea of watching a dumb but harmless movie to kinda forget about things for a couple hours. It’s been a while since I’ve been able to do that. Thank you.

comment 5y ago · link · parent

Thank you kind stranger

comment 5y ago · link · parent

> Manners!

No, they've been doing this crap for decades. They don't deserve any respect or courtesy. It needs to be called out for what it is when they just brazenly think they can do whatever the hell they want because they somehow own the computer because it has their software on it.

comment 5y ago · link · parent

As someone that was on medication that made me think about comitting suicide regularly, and I've learned to cope and overcome it somewhat...I thought I could read this...but this was like stepping into another reality where I was gone and this was about me. :S :S. and now I'm sitting at my desk bawling my eyes out...just wanting to hold my son and never let him go.

comment 5y ago · link · parent

They are removing the option to be able to even set the protocol association. This has nothing to do with protecting users and everything to do with protecting their telemetry gathering.

When I set a default browser, if the OS needs to open a web page I want to it to open in that browser. If Apple can do this properly, so can Microsoft. Tired of the excuses and corporate double speak bullshit.

comment 5y ago · link · parent

If Spotlight on macOS can use your configured default browser, so can Windows. I’m tired of Microsoft’s bullshit excuses.

comment 5y ago · link · parent

Even macOS isn’t egregious enough to just disrespect the user this brazenly. What a joke.

Embrace freedom. Use Linux.

comment 5y ago · link · parent

Ignoring tree shaking for a second.

If I have a library that needs to handle a bunch of general cases, but I only need 1 or 2 of them - it's probably less code to just write out those cases myself.

As a trite example, look at the source code for `is-even`. It imports the is-odd package, and the is-odd package has a bunch of error checking (and imports a library "is-number" to check errors too!) before it returns `n % 2 === 1` to is-even just to be negated.

Now blow this insanity up to all your packages of various sizes and you have a tonne of useless code that nobody needs.

comment 5y ago · link · parent

> If it were true YouTube would long be an enemy of pretty much everyone.

They are trying pretty damn hard.

comment 5y ago · link · parent

Regular Releases are Wrong. Roll For Your Life

> Upstream packages change fast

> Upstream support is typically short, shorter than the life-time of some LTS distributions

> SUSE (and others) maintain a large number of distribution variants that need to be updated regularly

> Upstream projects are getting larger and larger

> Using stable release and trying to back-port security fixes isn't safer than using the latest versions with all the security fixes

> The closer you are to upstream the better it is for everyone

> It's easier to work with upstream

> It's easier to contribute and submit patches

> Slow and conservative updates models don't work

> Slow update models are not more sustainable

> Slow update models undermine "Open Source"

> "Partially Slow" is "Totally Broken"

https://linuxreviews.org/Richard_Brown:_Regular_Releases_are...

comment 5y ago · link · parent

While this is cool, you can also just do `some_enum.sum` (also works with string concacts)

One thing that is cool about the .to_proc shorthand though is, for example, you have a method

def square_it(x); x * 2; end;

people tend to write an enumeration that uses it like

items.map {|i| square_it i }

but you can actually write it like this

items.map(&method(:square_it))

So not only can you write shorthands to methods on the object itself, you can write shorthands to other methods and "automagically" pass the item as its argument. Nifty stuff.

comment 5y ago · link · parent

I use Rubymine and can cmd+click on anything and it shows me exactly where it came from. Been developing in rails for a decade and the auto loading has bitten me at most 5 times.

comment 5y ago · link · parent

This is why my son's first computer was a raspberry pi.

comment 5y ago · link · parent

but can he reverse a binary tree on a whiteboard?

comment 5y ago · link · parent

No, I meant providing linux filesystem drivers in Windows.

comment 5y ago · link · parent

You misunderstand the fourth.

1. The data is not yours. It’s the company’s 2. The government is not “search or seizing” the data, they are purchasing it or a license to it. 3. The company is selling it voluntarily, the government is not compelling it.

The fourth does not apply.

comment 5y ago · link · parent

Thank you for the thorough response.

comment 5y ago · link · parent

Great, now do that for Windows.

comment 5y ago · link · parent

I think the way it caches media is bugged right out. I changed the cache size preference from 32gb to 8gb and it eased some of the pressure on swap, but it was still insanely high. I had to switch from the App Store version to the "Desktop" version you download from the website.

comment 5y ago · link · parent

I once had Telegram using 120gb of ram (swap).

comment 5y ago · link · parent

What makes a game engine different than a framework, ie. Unreal is a game engine whereas Ruby on Rails is a framework (web app engine?)

comment 5y ago · link · parent

I hate you.

comment 5y ago · link · parent

No way in hell I'm using a Firefox fork maintained by what..1 person? lmfao no way
1
212223
41