Better HN
topnewbestaskshowjobs
Log inSign up

devoutsalsa

5,366 karma · joined Jan 19, 2021 (5y ago) · 1,817 submissions

Email: michael@resumeshovel.com

Instagram: @resumeshovel

LinkedIn: https://linkedin.com/in/mpope

Website: https://resumeshovel.com

Submissions

comment 5y ago · link · parent

Nope. I’d been there for 6 months.

comment 5y ago · link · parent

Speaking of frictionless employment labor movement… In the USA I once called in sick on a Monday & was retroactively fired the previous Friday.

comment 5y ago · link · parent

I am a smart person, and I am not remotely qualified to make decisions about the risks associated with an untested drug. I’d like to know when I get a prescription that someone else went through the process of being a willing volunteer in a clinical trial.

comment 5y ago · link · parent

Legit. Sometimes you have to get ready for standup when you're in a small village in the Scottish Highlands because you couldn't get to your new accommodations on time.

https://i.imgur.com/9oY9F0t.png

comment 5y ago · link · parent

How do they handle the load balancing with that much traffic?

comment 5y ago · link · parent

In cases where something really should be in the map, I like to use &Map.fetch!/2.

comment 5y ago · link · parent

Yeah, I misread the bit about about higher order functions (or they edited the article).

comment 5y ago · link · parent

I've been using Elixir for over 5 years and didn't know about .iex.exs. Nice!

comment 5y ago · link · parent

If the errors don't matter & there's no real chance of returning an error, why use &with/1 at all? &with/1 has the quirky behavior in that the return value of anything that doesn't pattern match get returned. So if &call_service/1 or &parse_response/1 doesn't return an an ok tuple, you're increasing your debugging surface by having to track down where the unexpected result came from. Good luck tracking down that rogue nil!

Instead of this...

    with {:ok, response} <- call_service(data),
         {:ok, decoded}  <- parse_response(response) do
      decoded
    end
Maybe just do this...

    {:ok, response} = call_service(data)
    {:ok, decoded} = parse_response(response)
    decoded
Or even this...

    data
    |> call_service!()   # don't bother returning ok tuples
    |> parse_response!() # just use bang methods!

comment 5y ago · link · parent

If you really wanna piss OP off, pipe into &if/1 :)

    iex(2)> :something |> if do true else false end
    true
    iex(3)> nil |> if do true else false end          
    false

comment 5y ago · link · parent

The more I need to handle errors, the more I want to make every unexpected thing just raise an exception. 500s for everyone!

comment 5y ago · link · parent

I don't really like this article cuz:

- I like &Map.get/3 over the some_map[:some_key] syntax

- &with/1 can be hellza confusing in many case if you're calling a bunch of functions, and any ol' one of them can return an error message (e.g. where the heck did `{:error, :bad_arg}` come from?!

- piping into case statements is awesome, and I'll only stop doing it when people complain about it

- higher order functions are useful, and I don't see a problem using one's judgement as need on when to use them

- In the cases where using &with/1 is actually useful, so is using the else block if you really need to

...

Yeah, I just don't like this article's recommendations.

comment 5y ago · link · parent

Ah. I clearly missed the point of the article.

comment 5y ago · link · parent

Yeah, I don’t own a car, but I easily could. 7 euros per hour is cheaper than any car I could rent for a few hours, and cheaper than almost any ride share option. The only place I’ve been where calling a ride share would maybe be cheaper is Pakistan.

comment 5y ago · link · parent

Is this fundamentally different than how an escript works?

comment 5y ago · link · parent

> you let me do whatever I wanted and didn't warn me that this wouldn't fly at some far-off point in the distant future

It's not possible to anticipate every need, nor is it practical. You do the best you can to build something useful with the resources you have, ship it, and know that something will go wrong at some point. When something breaks, and it will, you fix it as best you can. If suspending your account for 5 days is the best you can do, it's the best you can do.

comment 5y ago · link · parent

Being an attorney does not give you the power to automatically bankrupt someone, just like owning a gun doesn’t mean you can point it at people and automatically get them to do what you want. Picking a frivolous fight with the wrong person can go very poorly for you.

I guess the main point I’m trying to say that one doesn’t have to fold the second someone threatens you with legal action, even if you don’t have an attorney. A porcupine doesn’t automatically shed all its quills and throw themselves in a mountain lion’s mouth as soon as the mountain lion eyeballs it with a hungry look. You can f*!with people who f* with you. They may just go away when they realize you’re not going to make it easy for them.

The kid who posted this website could get a notarized affidavit saying he didn’t steal any IP, here’s how he got all the stuff, provide links to all the publicly available information, that he simply state that he built a hacky weekend project I good faith, and that no matter how much they pursued him or time they wasted on him, it wouldn’t change the facts of the case. The more time the attorneys spend going after him, the more they’re just gonna waste their own time and look super dumb. Say they are free to pursue whatever legal action they want, just like you’re free to stand up to a frivolous, insecure bully with too much money and free time. Take all the fun out of it for them, don’t roll over and take it because you’re afraid of being potentially bankrupted.

comment 5y ago · link · parent

In a BK, some states may force you to liquidate a house if there’s equity in the home. Other states will let you keep a primary home.

comment 5y ago · link · parent

I didn’t have enough money to pay it off and keep it paid off. That probably wasn’t clear. I’d get paid and have to choose between paying off the debt and paying rent. The reason I would take the account to zero and then overdraw again was that the account would be closed if overdrawn for longer than 30 days.

comment 5y ago · link · parent

Or simply ignore them until they actually sue you.

comment 5y ago · link · parent

I was certainly trapped in debt for reasons.

comment 5y ago · link · parent

The interest rate on my credit cards was higher then the effective 24-ish percent interest rate I was paying (2% per month).

comment 5y ago · link · parent

Back in they day, I’d overdraw my checking account by $980 with a $20 overdraft fee. Then I’d bring it up to $0 after a month and overdraw it again. It was cheaper than putting $980 on a credit card, not that I had that much in available credit. I was broke in the 00’s.

comment 5y ago · link · parent

Because it’s a time suck. Even if you have deep pockets, you have limited time. And potentially bad PR.

comment 5y ago · link · parent

It goes both ways. Imagine Replit’s attorney going after OP. If OP didn’t take down the site, then suing them is going to be a huge expense & waste of time. Is Replit really gonna pay some corporate attorney $600-ish per hour to harass someone? You don’t even need a lawyer to show up in court and say “I’m a broke ass new grad, and these guys are trying to take down my website. I don’t even know why, but I’m dragging it out because I don’t like being bullied.” A good attorney would say “it costs nothing to demand we take this site down, but if the kid wants to fight us, do you really think it’ll be worth the effort? I’m expensive and this is not a threat to your business.” A bad attorney will just bleed Replit dry to accomplish very little.

If you sue me, I’ll just say “ok, see you in court, let me know if you need anything for discovery“. You’ll be spending lots of money and I’ll be spending nothing. It’s only expensive for me if I get an attorney, and I don’t need one. What happens if we go to court and lose? I have to take down my website? If there’s one lawyer in town, they drive a Chevrolet. If there’s two lawyers in town, they both drive Cadillacs.

comment 5y ago · link · parent

Why not simply use no adjectives at all? If you strip out all the fluff, it really makes you think about what you’re writing.

comment 5y ago · link · parent

That was my situation. I had a sales job the was primarily commission based and I had health insurance. I had a bad bike accident and got sent to an out of network hospital. I went from a six figure income and no medical bills to almost no income and a six figure medical bill. I was devastated.

Probably the hardest part was how depressed I was, even as my body was recovering, I simply wasn’t prepared to start hustling to get my sales income back up, pay for physical therapy, deal with the hospital & insurance company, etc.

comment 5y ago · link · parent

It’d be cool if they could combine this with extraction of Uranium 235 for a more sustainable source of nuclear fuel.

EDIT: For more context, nuclear power could be a great tool in reducing carbon emissions. I read somewhere that mining Uranium 235 from seawater at scale would cost roughy 2x to 3x what it costs to get the fuel from the ground at today's prices. I was trying to say that if we're going through all of the trouble to extract Lithium from seawater, it'd be cool if extracting Uranium at the same time made both processes more economical.

1
484950
61