[03:21:16]
lholt9ca2ab6:
Some time ago I was watching some youtube videos. It may have been some some talks by Robert 'Uncle Bob' Martin or Martin Fowler, I don't remember. In this particular video, the speaker mentions there was a reputable person at a developer conference. He was giving out a simple "coding challenge" to whoever would take it. He mentions this game, written by a contractor. The game I think is like a checkers game. Anyway

[03:21:16]
lholt9ca2ab6:
the game is programmed to award the win if the player completes the "task" in 5 steps. Your challenge should you choose to accept it, is to modify the code that that the game allows you to complete the task in as many as six steps. Anyway the speaker was saying, he sat down to attempt the challenge, with a friend I think, and after several hours gave up. He couldn't do this (supposedly) simple change. So I'm trying to

[03:21:16]
lholt9ca2ab6:
refer someone to this video, but I can't seem to find this video on youtube. Has anybody seen this video?

[05:54:56]
JackStoner:
Hey guys i've been trying to get on TDD, i've done some unit tests for models but I seem to be stuck with controllers...is there any material you guys can point me to that would be useful? Thanks

[09:44:24]
oded:
Security question: why does Rails routing handle '..' the way it does? In what scenario will the requester *intentionally* have that in the request? (I can think of many bad scenarios where the requester *didn't* intentionally have that in the request)

[09:46:35]
mauro1254:
matthewd : I understand that the number of queries is different. I want to preload a dozen of associations but only query agains 3 of them. left_joins + preload seems to be faster, I would like to know if it is safe to switch to left_joins + preload

[09:48:59]
matthewd:
mauro1254: "safe" isn't really more descriptive than "an alternative". They will behave differently. eager_load will behave more like includes, which is, again, why I suggested it.

[09:52:37]
matthewd:
mauro1254: includes / eager_load will use the joined tables for querying, and will also use those DB results to populate the association(s); left_joins just does a join (so you can use it for querying), but has no effect on the association

[09:53:10]
matthewd:
In other words: They will behave differently. eager_load will behave more like includes.

[09:53:56]
mauro1254:
matthewd : yes, the fact is that using eager_load (includes + references) it is slower than using left_joins + preload (to avoid N+1 queries)

[10:01:21]
matthewd:
oded: In general, allowing '../' to pass through as a real path parameter seems to just pass the buck on to whatever's handling it, which will surely be obliged to filter it, lest it escape whatever root it's using

[10:16:35]
oded:
matthewd: that's so weird. I understand that in filesystems I do not in HTTP URLs. I can't think of one scenario where this is used on purpose. The problem is not just with escaping the root, for example we are making a tool that creates a GitHub commit message (the ones CIs do on PRs). The API is expecting the commit's SHA-1 so we take that as a parameter, this can easiliy be exploited to fuck up or get data from the GitHub repo

[12:38:19]
daveomcd:
When upgrading my application from Rails 4.2 to 5.1.4, do I need to manually create my action cable files such as, app/assets/javascripts/cable.js ? Or is there a generator I run to add all the basic files?

[17:54:53]
mustmodify:
I'm giving a presentation to my local dev group tonight about Rails. Hard to understand, but lot of people here don't even know what it is.

[17:55:44]
mustmodify:
I've been working with Rails since the DHH showed it to the dinosaurs so I'm afraid I'm not even sure what the **most important** selling points are. I mean, I can tell you all about it, and what I love about it, etc. But what are the top five things you would want a dev to know?

[18:02:57]
baweaver:
Haven't used it much, but is there a way to assert presence of an element before you continue?

[18:03:44]
sloggerkhan:
Have been using page.all('#modal_fluency option')[3].select_option, and yeah, the modal's presence is asserted, and in fact an immediately preceding fill_in(...) of a text input in the same modal works every time.

[19:29:38]
daveomcd:
I'm trying to setup my first Action Cable code, and I came across the code on Rails Guides that is confusing me. Why would I need to check for "verified_user" in the manner they do there, if I already have a sign in process for my website? Couldn't I just look to see if my "current_user" method is set to a user object or nil? https://gist.github.com/daveomcd/7f1b2d06fc4de27200121f7c036ba368

[19:49:58]
srruby:
docker: I'm starting an upgrade of a couple of rails 3 applications. I'm setting up my development environment. Should I consider using a docker container for development and possibly deployment? The old apps are running old versions of ruby and debian.

[19:51:21]
srruby:
long term support: The apps I am upgrading may very well live for 20-30 years (they are vertical market apps). Any advice on avoiding upgrade pains in the future?