Better HN
topnewbestaskshowjobs
Log inSign up

rubyfan

3,874 karma · joined Jun 30, 2012 (14y ago) · 1,421 submissions

Submissions

comment 8y ago · link · parent

Looks like they hit the jackpot.

I’ll say it another way, just because it’s on the box doesn’t mean they can legally limit you. So yeah they can put whatever they want but we’ll see if it holds up.

comment 8y ago · link · parent

The digital download is a license though. They can stipulate that the person with the code bought it with the DVD. Though practically I can’t see how they can enforce it.

comment 8y ago · link · parent

I don’t see how Disney can arbitrarily put a word on the box that limits your ability to do something with it.

What is they put “not for use as a coaster” and you resell the disc as a coaster? Can they sue you for that?

comment 8y ago · link · parent

If I pay taxes on my income earned in USD, then exchange it for Euros. If the Euros had a better exchange rate to dollars later, would I have to declare a capital gain if I exchange back for USD? What if instead of exchanging I just spent the Euros?

comment 8y ago · link · parent

Didn’t know, can you elaborate on that?

comment 8y ago · link · parent

You don’t disclose assets to the IRS, only income. If you disclose your income and pay tax on it then convert it to BTC today you aren’t obliged to disclose it. In theory after you sell it you’d have a capital gain to disclose.

comment 8y ago · link · parent

Source?

comment 9y ago · link · parent

Is this why I can’t sign out of Google on my phone? I never sign into Google and never sign into their apps. After I began using a Google Home I began noticing Google maps is automatically signing me in.

comment 9y ago · link · parent

I think IBM actually has something like this for their mainframes right?

comment 9y ago · link · parent

> unless you don’t understand how Apple’s Secure Enclave Processor (SEP) works.

So basically it’s only misleading to 99.9999% of people?

comment 9y ago · link · parent

I might have missed it but is there a particular advantage Rust has over C in this specific use case? Performance, ease of interoperability, etc. or is it preference for Rust over C?

comment 9y ago · link · parent

I immediately thought that from the title.

“The little boat flipped over.”

https://getyarn.io/yarn-clip/552a53c2-894a-4b79-bcf1-e9eadfb...

comment 9y ago · link · parent

Rails is still the king of batteries included.

There are some nice frameworks for rest services in JavaScript but tend toward microservices and components. The landscape in all the upstart languages lack a batteries included monolith builder.

comment 9y ago · link · parent

What did the police do before there was the internet or phones?

comment 9y ago · link · parent

Agree, Rails 3 absorbing merbisms introduced flexibility to the existing conventions making it easy to stray from the opinionated stuff. Rails 3 was still Rails but definitely made it easier to get yourself into trouble. And definitely changes any Rails 2 developer would have to learn.

I’ve experimented with most of the alternative frameworks and micro-frameworks. I have a real fondness for Sinatra. I’m happy most modern languages have their own Sinatra but I’m sad that most modern languages lack their own Rails.

comment 9y ago · link · parent

Yeah I think it certainly helps that I have Rails experience coming back to it and easily picking back up. However learning it at 0.14.3 vs 5.1.4 doesn’t really make a difference. There’s no inherent advantage in the version you started on. Sure learning 5.1.4 helps if you have Rails experience but Rails today is as easy to pick up as it has ever been.

Ha so on the name, I’m transparent at least. I’m no longer a programmer but am a business customer for teams building on JavaScript. I think they have much opportunity and suffer from lack of convention in their day to day work.

comment 9y ago · link · parent

No, I skipped 3 and 4 and didn’t keep up. Jumping back in was easy.

The essentials haven’t really changed so jumping in at 0.14.5 or 5.0.1 shouldn’t really matter.

comment 9y ago · link · parent

I was an early Rails adopter, somewhere around 0.x and used it every day through 2.3. Somewhere just before 3.0 I stopped using it daily. I recently came back to 5.0 for a few applications and was pleasantly surprised that I was proficient in a day or so.

I wasn’t familiar with ActionCable, Asset Pipeline or CoffeeScript but felt they were all easy enough. All the basics were still there, the MVC application structure, DB migrations, etc.

I share the sentiment that JavaScript and many other languages used for web development are great but seriously lack some of the essentials Rails provides.

comment 9y ago · link · parent

Great analysis.

I would love to see some of this normalized to other variables like income, education, occupation, etc. That way you could get at any bias without any doubt cast by other factors.

comment 9y ago · link · parent

He’s pretty honest about that in the article, anyone can do it; he wants them to; and he’s spending his personal time trying to convince others to.

The reinvestment is for something better than a juiced up valuation. He’s likely parlaying his profit into more inventory or scaling the team that he will profit from. Reinvestment isn’t always about selling the company.

comment 9y ago · link · parent

His high salary was $150k. You can still make millions without taking it out in the form of a salary. If he owns the company and the value of his equity increases into the millions, then he’s making millions. It sounded like he was reinvesting the money back into the business too. It’s probably a smarter use of profits if he has predictable margins that scale.

comment 9y ago · link · parent

Agree, love this syntax

  obj = nil
  obj&.gsub("f","g") # => nil 
  obj = "food"
  obj&.gsub("f","g") # => "good" 
Unfortunately this is not likely second nature and will continue to bite us, especially where our expectations about AR models are not well thought out. A wrapping class for nillables might force safe access of AR attributes.

comment 9y ago · link · parent

Nice, looks well thought out.

Yeah the runtime thing is a disadvantage over type systems for sure. It might be possible with a NillablObject to do some kind of sanity checks at Rails initialization time. Also some other safety nets could help for example use of a ViewModel object to dictate some constraints on Views (type constraints and others).

I like Lucky’s table definition in the model class. A similar construct in AR might be useful in implementing some sanity checks. I often wish there was a way to get a table definition into AR while keeping the goodness of Migrations.

comment 9y ago · link · parent

The example from the blog post is a classic error we've all made. There seems to be an obvious opportunity for Rails do something creative about that.

I like the String? sugar and believe there is probably some opportunity in Rails to address it. For example make a new NillableObject class that wraps the real object or delegates method_missing.

The idea would be to throw a warning, raise an error, etc. when accessing a nillable attribute. This could get obviously more robust than the below example, hook into read_attribute, leverage validations, log a warning instead of raise a runtime error, etc... but hopefully the point is made.

  class NillableObject
    def initialize(obj = nil);@obj = obj;end

    def method_missing(name, *args, &block)
      raise "I'm nillable, don't call methods against me directly"
    end

    def try(&block)
      return if @obj.nil?
      block.call(@obj)
    end
  end

  ns = NillableObject.new
  ns.gsub("f","g") # RuntimeError: I'm nillable, don't call methods against me directly
  ns.try{ |o| o.gsub("f","g") } # => nil

  s = NillableObject.new("food")
  s.gsub("f","g") # RuntimeError: I'm nillable, don't call methods against me directly
  s.try{ |o| o.gsub("f","g") } # => "good"

comment 9y ago · link · parent

Looks like a mashup of Ruby, JavaScript and tiny bit of Python.

comment 9y ago · link · parent

If you are the CEO you should not take on the task. It’s great to be able to talk the talk but you need to sell your business. Focus on selling.

You probably need a great technical partner to help drive your intellectual property development, but any time you take off growing your business is time wasted.

comment 9y ago · link · parent

Title should be changed to be less clickbait-y.

Perhaps: Some guy’s defective Google Home recorded everything and they had extraordinary customer support and fixed it.

comment 9y ago · link · parent

It will work just fine with angular or react. I have seen nothing comparable in the era of JavaScript frameworks.
1
282930
48