« Back to channel list

#ruby-offtopic - 02 November 2018

« Back 1 day Forward 1 day »
[03:20:46] al2o3-cr: has joined #ruby-offtopic
[05:32:41] nofxx: has joined #ruby-offtopic
[07:36:50] eam: good evening
[08:35:48] phaul: has joined #ruby-offtopic
[10:20:37] al2o3-cr: has joined #ruby-offtopic
[11:06:28] apeiros: has joined #ruby-offtopic
[12:09:39] apeiros__: has joined #ruby-offtopic
[12:35:37] rubydoc: has joined #ruby-offtopic
[14:52:36] phaul: I was just doing a bunch of challanges @ hackajob.co. Sigh, this is horrendous, lots of second guessing on how they run my code, and what errors might be. Difficulty realy is to hammer the solution into a form that does not fail on their system
[14:53:51] phaul: I guess if I want to be employed, I can't really criticise them :)
[14:56:17] phaul: they give you a class Solution; def run; end; end frame to work in. Don't expect them to call your initialize though, if you write one :)
[14:56:56] phaul: My bet is that they inherit from solution, and initialize doesn't call super. Though I can't see what's actually running..
[15:47:47] rubydoc: has joined #ruby-offtopic
[16:02:27] rubydoc: has joined #ruby-offtopic
[16:24:01] eam: rspec is my absolute least favorite thing about ruby
[16:34:35] phaul: eam: any particular pitfal you fell into?
[16:45:51] ivanskie: has joined #ruby-offtopic
[17:02:18] phaul: ruby -e 'a **{}'
[17:10:55] havenwood: phaul: In nightly: #!> `<main>': undefined method `a' for main:Object (NoMethodError)
[17:11:21] havenwood: Will be fixed in 2.6.0-preview3
[17:11:29] eam: the syntax is like nails on a chalkboard to me
[17:12:08] eam: I'd rather use minitest or something that looks like all the other testing frameworks in all the other languages I use
[17:31:53] havenwood: eam: I agree.
[17:32:38] phaul: I was afk. yeah, the syntax is not for everyone. it's either love it or hate it it seems
[17:33:24] havenwood: phaul: it has it's own object model and is so far from the simplest thing that can possibly work - with benefits that seem dubious at best
[17:34:19] havenwood: I do wish Minitest had some ExUnit niceties to allow fewer custom asserts and still have nice error messages
[17:35:10] phaul: There are ppl who can be productive with RSpec.
[17:35:50] phaul: but if the project is such that many ppl have to cooperate I'm up for minitest if that's the agreement
[17:37:53] phaul: I had similar feelings against SQL like DSLs to generate actual SQL. like sequel although I actually like sequel in particular.
[17:38:12] phaul: There was one in haskell I didn't like, but can't remember the name
[17:51:51] phaul: one thing haskell has over ruby is/was quickcheck. I always thought that was cool. basically you defined an Arbitrary interface to your objects, and the suite used that to generate arbitrary examples. And a Reduce interface, that the suite could use to simplify a failure case to bare minimum that still fails
[17:53:03] phaul: arbitrary examples for your invariants I mean..
[18:38:24] eckhardt: has joined #ruby-offtopic
[19:27:08] apeiros: has joined #ruby-offtopic
[19:31:27] apeiros__: has joined #ruby-offtopic
[20:23:28] eckhardt: has joined #ruby-offtopic
[21:55:27] eckhardt: has joined #ruby-offtopic
[23:38:27] eckhardt: has joined #ruby-offtopic