« Back to channel list

#ruby - 11 November 2018

« Back 1 day Forward 1 day »
[00:01:37] havenwood: assuming those Hashes are always just like that:
[00:01:41] havenwood: ule[:filters].replace([{"name"=>"Company", "value"=>"17"}, {"name"=>"Company", "value"=>"111"}])
[00:15:59] thinkpad: has joined #ruby
[00:27:09] nertzy: has joined #ruby
[00:37:15] leitz: has joined #ruby
[00:44:03] ur5us: has joined #ruby
[00:46:57] r3m_: has joined #ruby
[01:07:40] Xiti: has joined #ruby
[01:11:04] evdubs_: has joined #ruby
[01:24:57] OrangeManBad: has joined #ruby
[01:31:17] c0ncealed4: has joined #ruby
[02:31:33] marmotini_: has joined #ruby
[02:31:39] ule: havenwood: thank you
[02:39:23] wolfshappen: has joined #ruby
[02:39:42] marmotini_: has joined #ruby
[02:45:12] ur5us: has joined #ruby
[02:46:06] sgen: has joined #ruby
[02:50:39] bmurt: has joined #ruby
[03:27:56] bga57: has joined #ruby
[03:35:04] Nicmavr: has joined #ruby
[03:56:48] sgen: has joined #ruby
[03:59:22] nertzy: has joined #ruby
[04:03:04] dinfuehr: has joined #ruby
[04:09:36] braincrash: has joined #ruby
[04:22:19] jesfre: has joined #ruby
[04:52:46] kapil____: has joined #ruby
[05:18:11] _whitelogger: has joined #ruby
[05:23:40] jcalla: has joined #ruby
[05:31:30] jetchisel: has joined #ruby
[05:50:24] doubledup: has joined #ruby
[05:58:07] govg: has joined #ruby
[06:04:23] cthu|: has joined #ruby
[06:12:56] c0ncealed4: has joined #ruby
[06:30:11] rippa: has joined #ruby
[07:13:18] GodFather_: has joined #ruby
[07:15:51] cliluw: has joined #ruby
[07:16:33] reber: has joined #ruby
[07:57:53] nchambers: has joined #ruby
[08:06:14] nchambers: has joined #ruby
[08:08:31] ua: has joined #ruby
[08:14:15] govg: has joined #ruby
[08:14:22] dinfuehr: has joined #ruby
[08:15:56] phaul: has joined #ruby
[08:21:11] gix: has joined #ruby
[08:32:31] nchambers: has joined #ruby
[08:35:56] conta: has joined #ruby
[08:47:42] marmotini_: has joined #ruby
[08:53:07] marmotini_: has joined #ruby
[08:54:08] nchambers: has joined #ruby
[08:54:10] marmotini: has joined #ruby
[08:55:32] marmotini: has joined #ruby
[08:58:30] marmotini: has joined #ruby
[09:07:02] whysthatso: has joined #ruby
[09:08:14] reber__: has joined #ruby
[09:08:23] lomex: has joined #ruby
[09:08:40] jcalla: has joined #ruby
[09:12:40] nchambers: has joined #ruby
[09:15:34] anothertorusr: has joined #ruby
[09:16:12] reber: has joined #ruby
[09:21:49] alem0lars: has joined #ruby
[09:34:36] roshanavand: has joined #ruby
[09:44:24] mikecmpbll: has joined #ruby
[09:51:29] venmx: has joined #ruby
[09:55:44] reber__: has joined #ruby
[10:05:08] anothertorusr: has joined #ruby
[10:08:16] voolik: has joined #ruby
[10:22:59] clemens3: has joined #ruby
[10:35:34] nchambers: has joined #ruby
[10:39:25] tAn: has joined #ruby
[10:40:44] DTZUZO: has joined #ruby
[10:41:59] ellcs: has joined #ruby
[10:42:01] marmotini_: has joined #ruby
[10:45:11] marmotini_: has joined #ruby
[10:50:04] nchambers: has joined #ruby
[10:51:37] dellavg_: has joined #ruby
[10:54:37] MoritaShinobu: has joined #ruby
[10:57:44] voolik: has joined #ruby
[10:58:54] marmotini_: has joined #ruby
[11:00:42] ua_: has joined #ruby
[11:10:56] nchambers: has joined #ruby
[11:12:46] marmotini: has joined #ruby
[11:17:38] govg: has joined #ruby
[11:26:45] reber: has joined #ruby
[11:31:28] jcalla: has joined #ruby
[11:34:41] dinfuehr_: has joined #ruby
[11:35:13] reber__: has joined #ruby
[11:43:42] reber: has joined #ruby
[11:43:59] lomex: has joined #ruby
[11:47:13] reber__: has joined #ruby
[11:50:42] reber: has joined #ruby
[11:52:13] reber__: has joined #ruby
[11:52:27] vonfry: has joined #ruby
[12:00:59] doubledup: has joined #ruby
[12:08:48] RougeR: has joined #ruby
[12:08:54] im0nde: has joined #ruby
[12:08:55] marmotini: has joined #ruby
[12:10:59] marmotini: has joined #ruby
[12:13:15] AJA4350: has joined #ruby
[12:13:43] mikecmpbll: has joined #ruby
[12:14:06] nchambers: has joined #ruby
[12:16:07] desperek: has joined #ruby
[12:23:30] connor_goodwolf: has joined #ruby
[12:24:25] nchambers: has joined #ruby
[12:33:59] marmotini: has joined #ruby
[12:37:37] lomex: has joined #ruby
[12:43:36] ua: has joined #ruby
[12:54:15] k0mpa: has joined #ruby
[12:56:52] nchambers: has joined #ruby
[12:57:22] conta: has joined #ruby
[13:41:41] alem0lars: has joined #ruby
[13:46:15] ellcs: has joined #ruby
[14:15:19] Nicmavr: has joined #ruby
[14:16:19] nchambers: has joined #ruby
[14:29:26] nchambers: has joined #ruby
[14:35:15] marmotini: has joined #ruby
[14:55:12] whysthatso: has joined #ruby
[14:57:07] apparition: has joined #ruby
[15:07:40] lomex: has joined #ruby
[15:38:38] TomyLobo: has joined #ruby
[15:48:21] leah2: has joined #ruby
[16:02:55] themsay: has joined #ruby
[16:04:54] ua_: has joined #ruby
[16:06:49] jetchisel: has joined #ruby
[16:06:52] houhoulis: has joined #ruby
[16:20:51] nertzy: has joined #ruby
[16:24:17] Xiti: has joined #ruby
[16:51:21] Inline: has joined #ruby
[16:55:42] desperek: has joined #ruby
[17:00:36] dinfuehr: has joined #ruby
[17:12:35] dinfuehr: has joined #ruby
[17:23:07] dinfuehr: has joined #ruby
[17:33:11] _whitelogger: has joined #ruby
[17:35:07] dinfuehr: has joined #ruby
[18:10:28] govg: has joined #ruby
[18:11:37] voolik: has joined #ruby
[18:15:13] sanscoeur: has joined #ruby
[18:15:16] dbugger_: has joined #ruby
[18:19:58] Puffball: has joined #ruby
[18:25:06] wildermind: has joined #ruby
[18:30:40] orbyt_: has joined #ruby
[18:33:38] venmx: has joined #ruby
[18:34:41] dinfuehr: has joined #ruby
[18:45:11] kaleido: has joined #ruby
[18:47:40] conta: has joined #ruby
[18:49:07] nicesignal: has joined #ruby
[18:49:36] cd: has joined #ruby
[18:53:43] sonivi: has joined #ruby
[18:54:10] sonivi: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
[18:54:25] sonivi: url = "https://mphc.gov.in/causelist"
[18:58:15] despai: has joined #ruby
[18:58:47] Guest70792: has joined #ruby
[19:00:03] vondruch: has joined #ruby
[19:02:13] vondruch: has joined #ruby
[19:07:55] Pillus: has joined #ruby
[19:08:08] mikecmpbll: has joined #ruby
[19:11:48] Pillus: Hey ruby community! I am working on some API documentation that i am releasing as open source, and i am including examples in several popular languages. Unfortunately Ruby is not something that i am extensively experienced in, and i just wanted to know your opinion on this "template" that i created for Ruby HTTP requests, which i built from just reading their documentation:
[19:11:49] Pillus: https://gist.github.com/P1llus/acd33eeeb58c6d215dee9f2d4fadf87b
[19:12:16] Pillus: only requirement is to use as little third party libraries as possible, and it to just be straight forward and easy to understand
[19:31:43] onion: has joined #ruby
[19:31:49] onion: Back in my day, we would keep our eyes open all day for a honey bee swarm. A swarm is when a nest of bees gets so large that part of the population leaves with a new queen to form a new colony.If you saw a swarm on a tree branch you could cut the branch and literally shake them off into a box so you could later have your own bee hive. But I always shook mine off into a crudley constructed wooden dildo and shove it up my ass.
[19:31:49] onion: That's what that vibrator reminds me of, simpler times.
[19:39:24] mzo: has joined #ruby
[19:43:34] phaul: ACTION yawns
[20:08:18] clemens3: has joined #ruby
[20:16:30] tAn: has joined #ruby
[20:18:16] lxsameer: has joined #ruby
[20:22:21] kapil____: has joined #ruby
[20:32:42] ellcs: has joined #ruby
[20:38:40] tdy: has joined #ruby
[20:41:44] reber: has joined #ruby
[20:50:41] jesfre: has joined #ruby
[20:51:34] whysthatso_: has joined #ruby
[20:59:20] havenwood: Pillus: I think your template example looks good. Missing a `require 'json'` it seems. I commented with a few nit style suggestions.
[21:02:00] havenwood: Pillus: Just running `rubocop -a` with the rubocop gem will cover most style issues to a reasonable degree.
[21:02:47] Guest70792: has joined #ruby
[21:04:31] Pillus: thank you very much havenwood! :)
[21:05:07] Pillus: also good tip about rubocop
[21:05:47] Pillus: would it also understand it if i change the content-type header to x-www-form-urlencoded, or does it need another format then?
[21:06:08] clemens3: has joined #ruby
[21:07:07] Pillus: i also forgot to require openssl, to set verification mode for http
[21:07:50] havenwood: Pillus: I don't usually use Net::HTTP actually, so I'm not the best person to ask. There are others here who do. Slow Sunday though.
[21:07:54] havenwood: Looks likeURI.encode_www_form and #set_form_params.
[21:09:00] Pillus: yeah this is the one i manage to cook up for now, though doesn't really follow the same style as the application/json ones which is a shame: https://gist.github.com/P1llus/a0af914664c6f7be6525fc6aab4d154c
[21:09:32] lomex: has joined #ruby
[21:10:04] Guest70792: has joined #ruby
[21:14:54] kaleido: has joined #ruby
[21:15:08] AJA4350: has joined #ruby
[21:16:01] akem: has joined #ruby
[22:28:36] akemot: has joined #ruby
[22:30:38] Guest70792: has joined #ruby
[22:32:38] orbyt_: has joined #ruby
[22:33:46] clemens3: has joined #ruby
[22:36:43] clemens3: has joined #ruby
[22:37:33] eblip: has joined #ruby
[22:38:13] def_jam: has joined #ruby
[22:46:54] crankharder: has joined #ruby
[22:56:22] mzo: has joined #ruby
[22:57:33] mzo: is ruby dying bros
[22:58:30] Guest53511: has joined #ruby
[23:03:30] baweaver: Why do you ask>
[23:03:48] baweaver: It's a rather silly assertion to say any language is dying.
[23:04:41] mzo: why's it silly
[23:05:24] baweaver: Do people have gainful employment in said language? Do they make money?
[23:05:52] baweaver: There are people who still make a very good living using RPG, COBOL, and languages from the 60s
[23:05:58] baweaver: So yes, silly.
[23:06:20] mzo: how does that make it silly
[23:06:47] baweaver: What exactly do you want to know?
[23:07:00] baweaver: If it relates to Ruby we're happy to help, but as is this comes across as rather trollish
[23:07:35] mzo: is the number of new ruby projects started every year declining due to the rise of languages like Go and javascript
[23:08:00] mzo: rails was at one time the big thing in the world of web development
[23:08:47] baweaver: Is PHP dying?
[23:08:58] baweaver: It's likely the #1 production deployed language out there.
[23:09:47] baweaver: To assert it and languages like it are dying is short-sighted and focused on a particular metric over the whole.
[23:10:50] mzo: well actually i'm not so sure about php
[23:11:19] baweaver: The better question is what do you want this information for?
[23:11:20] mzo: it seems like it's trying to claw its way back
[23:11:32] baweaver: It never left.
[23:12:06] mzo: it may not have left in terms of raw popularity
[23:12:12] mzo: but let's be real
[23:12:22] baweaver: Because all of this is findable on rating sites through Google, and the very act of going into a language specific channel and asking for answers is tantamount to trolling and wanting to start a fight.
[23:12:47] baweaver: Convince me that's not the case.
[23:13:01] mzo: market share isn't that important to me
[23:13:13] mzo: java is dying and yet it's hugely popular
[23:13:16] ruby[bot]: It's popcorn time! 🍿🍿🍿
[23:13:24] baweaver: Market share means more money and better jobs
[23:13:32] mzo: for now
[23:13:44] baweaver: For several years now.
[23:13:46] Radar: mzo: I have never been paid more as a Rails developer than this year.
[23:14:00] mzo: more and more people are using alternative JVM languages, and OOP in general is going out of style
[23:14:07] Radar: mzo: Is it, though>
[23:14:12] Radar: [citation needed]
[23:14:13] mzo: java may be huge now but its future isn't very exciting
[23:14:36] mzo: meanwhile rust is not widely used but it's a very exciting language community to be a part of right now
[23:14:47] baweaver: Someone's been reading too much hacker news
[23:14:50] baweaver: Y'know their hit rate on actually good advice is next to nil right?
[23:15:06] Radar: mzo: what are your feelings towards haskell?
[23:15:17] mzo: sure there are a lot of rails apps that need to be maintained but will people be choosing ruby for their new projects in 5 years? why or why not?
[23:15:25] elcontrastador: has joined #ruby
[23:15:26] mzo: is ruby 3 going to have a big impact on things?
[23:15:46] Radar: mzo: there is a ton of institutional knowledge of how to build / scale / deploy Ruby applications. People aren't going to piss that away for Rust applications.
[23:15:47] mzo: Radar: i don't think it's going to get much more popular than it is now
[23:15:51] mzo: re: haskell
[23:16:51] Radar: mzo: With dry-rb & friends, I think building a Ruby application is getting even _better_ than it has been recently. Rails is, despite its _many_ flaws, still better than it was three years ago.
[23:17:00] mzo: i'm actually asking because i love ruby and i want to see it thrive but i'm worried it's fading away
[23:17:59] baweaver: Look at metrics which matter instead of popularity contests.
[23:18:22] baweaver: People make a plenty good living on Rails, PHP, Java, and other languages HN types would say are dead
[23:18:47] baweaver: And I'm perfectly happy to let them, it means more solid jobs they self-select out of.
[23:19:04] Radar: mzo: I don't think Ruby is necessarily _fading away_. I think there are now more alternatives out there than there have been in the past. Elixir, Go and Rust all didn't exist in 2008.
[23:19:20] Radar: JavaScript was also not anywhere near as popular back then.
[23:20:08] Radar: If you've been involved in this community for a long time, I think you might have a tendency to view Ruby as being a great programming language because there weren't many competing programming languages 10 years ago. That has changed. JavaScript has gotten better. Go has come along. Rust arrived. Elixir took Ruby's syntax and made it _fast_
[23:20:32] mzo: even though PHP may be widely used still, if you actually look at job postings, who's hiring threads, etc. you don't find a ton of php jobs. i'm sure php devs can find a lot of jobs through their network but most startups won't be using it for example
[23:21:04] mzo: so sure you might be making a lot as a rails dev but is it a worthwhile investment for someone just getting into the industry?
[23:21:04] Radar: Just like in natural evolution, just because something _better_ comes along it doesn't mean that all existing things die off -- at least, immediately. They can all thrive together in a shared ecosystem _at the same time_
[23:21:41] Radar: mzo: If I had to pick a programming language for anyone busting into this industry to learn, I would not recommend Ruby. Not at all. I would recommend JavaScript instead.
[23:21:47] mzo: well that's the question though. are the alternatives really better, or is ruby still a competitive language?
[23:22:37] Radar: I would recommend Ruby probably as a second language still just because it's really easy to learn and it gets the job done.
[23:23:06] Radar: I think Rust's documentation is absolutely shit for a true beginner and I would only recommend it if I wanted to scare someone away from programming. Go is much in the same boat, but getting better.
[23:23:31] mzo: i like the philosophy of ruby
[23:23:41] mzo: extreme late binding and dynamism
[23:23:43] Radar: Elixir is most of the way to being an approachable language for a beginner too. It's not quite there, but it's closer than anything else I've seen.
[23:24:40] Radar: Ruby is still a competitive language. There's lots of startups (and large, established companies) still using it for their day-to-day work. There's lots of great tutorials, books, screencasts, etc. out there about Ruby. It is a very, very fine language to introduce someone to and there's market demand for Ruby programmers.
[23:24:59] Radar: To speak about market demand a bit more: a local Ruby shop in Melbourne wants to hire 40 new developers by the end of Q1 next year.
[23:25:27] Radar: I know that the company I work for has grown two-fold in developer numbers (that's frontend & backend, btw) over the course of the last year: from 40 to 80.
[23:25:27] _whitelogger: has joined #ruby
[23:25:30] mzo: wow i wish i lived in Melbourne
[23:25:39] Radar: mzo: World's most liveable city 6 years running ;)
[23:25:41] baweaver: SF is hiring them like mad too.
[23:25:51] baweaver: ...not so much on the liveable part though
[23:26:24] Radar: baweaver: Will you ever see that kidney again that you had to pay in rent?
[23:27:10] baweaver: Remember I own a house :P
[23:27:22] baweaver: So that was two kidneys thankyouverymuch
[23:27:55] Radar: oh yeah, that's right
[23:27:59] Radar: mzo: where do you live now?
[23:28:26] mzo: eastern canada
[23:28:46] mzo: i'll relocate eventually but i'm here for at least a few more years
[23:29:46] Radar: mzo: Shopify is probably hiring a bazillionty Ruby devs too atm. They're probably the biggest Ruby shop on that side of the world.
[23:31:06] Radar: https://www.shopify.com/careers/search
[23:31:13] Radar: They have just a few open positions.
[23:31:23] Radar: Almost 100 by the looks of it!
[23:37:00] sauvin: has joined #ruby
[23:48:16] ShawnEvans: has joined #ruby
[23:48:54] ShawnEvans: Greetings. I have a program idea in mind but my searching on google is not returning what I want to see..
[23:49:43] ShawnEvans: Could someone help me word my search better? I have an online example of what I want to create, which is a reading list/schedule
[23:54:44] ShawnEvans: Let me re-word my question.
[23:56:33] ShawnEvans: I'm new to Ruby and programming in general but eager to learn. I've done some online studies but forgotten much. I want to create my own version of the tool seen at http://www.ldsscripturetools.com/ however google searches for 'how to write a reading schedule with ruby" is turning up booklists to read. How can I search google more effectively to learn what I need to in order to re-create this tool?
[23:58:05] mzo: well if you want it to work in the browser like that, you'll need to use some html, css, and javascript
[23:59:21] mzo: you could make a command-line version using ruby (or use some GUI library but i wouldn't recommend that)
[23:59:41] ShawnEvans: mzo, I want something offline in ubuntu.. I forgot to mention that. :)