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

Whatever happened to just asking pretty girls you see on dates? That’s how I met my wife. Total stranger, gave her my number and asked her out for coffee. Been married ten years now.

comment 5y ago · link · parent

Great, now instead of getting shot by a cop you’ll get the crap kicked out of you instead.

comment 5y ago · link · parent

No —- Tim Apple

comment 5y ago · link · parent

funny, I feel the same way about Ruby going to Python - i don't like list comprehensions, for example - feels so crusty and limited compared to yielding blocks in ruby

comment 5y ago · link · parent

Are you married to Python? Ruby on Rails is mature, with a large set of useful libraries.

comment 5y ago · link · parent

It's not fair for people that don't want that and would rather work more for more compensation.

comment 5y ago · link · parent

You get more than 10% of your time off for work and that's "limited" to you? You expect your employer to pay you for not working 40% of the year?! Insanity.

comment 5y ago · link · parent

fair enough!

comment 5y ago · link · parent

How bad of a bite was this? I've been bitten during play with my dog more times than I can count and I've never once considered going to the doctor over it, let alone getting a vaccine for it...so strange to me.

comment 5y ago · link · parent

The Watergate scandal had nothing to do with "water". It was the actual name of the hotel where the crime took place. "Dieselgate" is a meaningless word.

comment 5y ago · link · parent

Tell that to the criminal with guns breaking into your home and taking all your property.

comment 5y ago · link · parent

Anyone using Deno in production? Would love to hear how it's going for your team.

comment 5y ago · link · parent

Guns are the great equalizer. Women don’t have equal rights until they are equally capable of defending themselves.

comment 5y ago · link · parent

For the love of God can we pleaaase stop referring to scandals as “something-gate”.

comment 5y ago · link · parent

If an error causes an exception there is an option to suspend execution when one is thrown.

comment 5y ago · link · parent

Salary is a negotiation and companies will low ball you as much as they can. I don’t see how this helps productive people.

comment 5y ago · link · parent

Which debugger do you use because I live in JetBrains tools and their debugger front-end support for conditional or on exception break points is phenomenal

comment 5y ago · link · parent

>nobody uses breakpoints

Lost me here, using breakpoints are an invaluable tool for people that actually take the time to use their tools correctly.

comment 5y ago · link · parent

reminds me of slim templates, but not just for Ruby

http://slim-lang.com/

comment 5y ago · link · parent

Practical Object Oriented Programming in Ruby is the definitive Sandi Metz book :)

comment 5y ago · link · parent

Different code bases and teams usually just end up with a bespoke debugger, there are multiple available. There’s the default debugger, byebug, pry debug and I believe Rubymine uses one called debase, under the hood.

You can use whichever you want but usually one will be specified in your project Gemfile because someone on the team likes that particular debugger and added it long ago.

comment 5y ago · link · parent

um…no?

comment 5y ago · link · parent

Learn functional style programming, it will take you a long way towards writing maintainable, concise code. The request/response cycle and stateless applications are a great fit for functional programming in Ruby.

You may be tempted to use a lot of meta programming, because Ruby makes it easy. Resist the urge and only use it if you have no other option (which is rarely the case).

Byebug (or whatever debugger you have available) is your best friend. Also using your repl (irb/rails console) will let you “play” with your application and use your application like a shell with a domain specific language.

If you have access to Ruby 3.0, absolutely learn how to incorporate static types into your application it will save you so many headaches in the long run.

If you’re working on a web app, learn how to use your database without the ORM. ActiveRecord, for example, is really nice but if you don’t understand the underlying SQL it generates you’re going to be in for a word of pain. Learn the different ways to inject custom SQL into your active record queries. Use the .merge function to easily create complex queries using scopes from multiple activerecord classes.

Checkout Trailblazer to learn modern paradigms for building web apps with Ruby.

If your employer will pay for it, or you can afford it: Rubymine is absolutely worth every single penny. Use the 30 day trial and you’ll be hooked, I can almost guarantee it.

Take a few minutes and understand how the Ruby Ghost Class works, it’s seldom useful but you’ll impress any senior developer with his salt if you know what it is and how it works.

comment 5y ago · link · parent

This is a great resource, as a career-long ruby developer I've even forgot about some of these (coerce method). Good to keep this info around!

comment 5y ago · link · parent

no

comment 5y ago · link · parent

Not from Intel.

comment 5y ago · link · parent

almost every company is a tech company now

comment 5y ago · link · parent

I ditched this kinda manual DOM manipulation nonsense with mithril components+streams years ago and never looked back.
1
262728
41