« Back to channel list

#ruby - 02 July 2017

« Back 1 day Forward 1 day »
[00:04:28] harryzerg: has joined #ruby
[00:07:15] VladGh: has joined #ruby
[00:09:02] ResidentBiscuit: has joined #ruby
[00:15:19] micalexander: has left #ruby: ()
[00:15:37] ResidentBiscuit: has joined #ruby
[00:23:24] ivanskie: has joined #ruby
[00:31:08] t-recx: has joined #ruby
[00:32:55] anisha: has joined #ruby
[00:34:46] enterprisey: has joined #ruby
[00:34:59] jenrzzz: has joined #ruby
[00:34:59] jenrzzz: has joined #ruby
[00:45:59] Dimik: has joined #ruby
[00:51:10] _whitelogger: has joined #ruby
[00:52:08] wilbert_: has joined #ruby
[00:53:04] xco: has joined #ruby
[00:53:49] xco: has joined #ruby
[00:54:49] xco: has joined #ruby
[00:55:31] xco: has joined #ruby
[00:56:21] xco: has joined #ruby
[00:56:28] milardovich: has joined #ruby
[00:57:06] dlitvak: has joined #ruby
[00:57:06] xco: has joined #ruby
[00:57:50] knight33: has joined #ruby
[00:58:02] xco: has joined #ruby
[00:58:47] xco: has joined #ruby
[00:59:48] SuperLag: has joined #ruby
[01:02:06] jottr_: has joined #ruby
[01:06:46] jenrzzz: has joined #ruby
[01:11:09] iomotoko: has joined #ruby
[01:12:38] chouhoulis: has joined #ruby
[01:13:33] jak: has joined #ruby
[01:15:05] bkxd: has joined #ruby
[01:15:07] bkxd_: has joined #ruby
[01:20:19] bkxd: has joined #ruby
[01:20:33] bkxd_: has joined #ruby
[01:41:00] arescorpio: has joined #ruby
[01:44:44] d^sh: has joined #ruby
[01:45:26] solocshaw: has joined #ruby
[01:49:39] gizmore|2: has joined #ruby
[01:50:08] snowcrshd: has joined #ruby
[01:54:20] aglorei: has joined #ruby
[02:03:06] jottr_: has joined #ruby
[02:12:51] milardovich: has joined #ruby
[02:15:28] ascarter: has joined #ruby
[02:17:13] solocshaw: has joined #ruby
[02:17:32] ascarter_: has joined #ruby
[02:25:13] jackjackdripper: has joined #ruby
[02:27:14] jackjackdripper: has joined #ruby
[02:33:51] harryzerg: has joined #ruby
[02:35:21] bambanx: has joined #ruby
[02:36:56] mokiwis: has joined #ruby
[02:42:15] bkxd: has joined #ruby
[02:42:17] bkxd_: has joined #ruby
[02:43:06] watersoul: has joined #ruby
[02:48:11] watersoul: has joined #ruby
[02:56:55] zacts: has joined #ruby
[03:03:51] jottr_: has joined #ruby
[03:06:07] mvensky: has joined #ruby
[03:07:30] nicesignal: has joined #ruby
[03:07:35] rubyconfused: has joined #ruby
[03:09:22] rubyconfused: I am getting some ruby syntax errors with the following code:
[03:09:23] rubyconfused: https://gist.github.com/anonymous/facae134edce59b32556c9bf2ad6b5f3
[03:09:50] rubyconfused: the ruby interpreter gives me this: syntax error, unexpected ')', expecting => (SyntaxError)
[03:10:04] rubyconfused: for line 14 and 21
[03:10:10] zacts: has joined #ruby
[03:10:35] rubyconfused: running it through rubocop gives the following: E: unexpected token tRPAREN (Using Ruby 2.1 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)
[03:10:41] rubyconfused: any help would be greatly appreciated
[03:10:45] mvensky: try cutting out blocks first
[03:10:54] mvensky: then adding back to find error
[03:13:33] jak: has joined #ruby
[03:15:17] cschneid_: has joined #ruby
[03:16:00] rubyconfused: mvensky: I have identified the offending line
[03:16:09] rubyconfused: it is line 14
[03:16:17] rubyconfused: removing it fixes things
[03:16:22] rubyconfused: but it still doesn't explain why
[03:16:44] rubyconfused: I can't figure out why that particular line is bad
[03:17:00] mkaito: mvensky: **s3_options
[03:17:29] mkaito: that doesn't fix the syntax error
[03:17:30] mvensky: interesting; perhaps the S3.new does not like the **s3_options
[03:17:50] mkaito: but it's how it should be. you'll want to splat the hash in there.
[03:19:14] domgetter: has joined #ruby
[03:19:18] rubyconfused: what does splatting it do?
[03:19:30] mkaito: it turns the hash into keyword arguments, kinda
[03:19:46] w0b: has joined #ruby
[03:19:50] mkaito: I'm not a fan of putting that kind of syntax on an introduction of any kind, but shrine does it.
[03:21:34] mkaito: after putting the hash before the Shrine.storages call in the else branch and splatting the hash in the other branch, rubocop does no longer scream at me for that gist.
[03:22:20] rubyconfused: I did that and I am not getting this: W: Useless assignment to variable - `s3_options`.
[03:22:28] rubyconfused: for the first conditional
[03:23:08] mkaito: s/not/now/?
[03:24:05] mkaito: in the true branch?
[03:24:41] mkaito: it's not useless unless you mistyped the variable name
[03:25:07] mkaito: that said, there's no point in making a separate hash if you only use those options once
[03:25:16] rubyconfused: a bit of context: I am debugging this because dokku is unable to build my project due to line 21 getting nil hash errors
[03:25:17] mkaito: that's useful if you want the same options for cache and store
[03:25:32] texasmynsted: is there not a #rails channel?
[03:25:51] rubyconfused: this is not ...quite rails
[03:25:57] mkaito: well that's because you're using the variable before declaring it
[03:26:23] mkaito: texasmynsted: his problem is clearly ruby... even if he's using it for rails. as in, he doesn't know that he needs to declare a variable before using it :P
[03:26:33] texasmynsted: what server should I use in order to take fully advantage of multi-threading of JRuby? Can this be the same as the server used for C-Ruby?
[03:26:55] rubyconfused: mkaito: texasmynsted: yup! silly mistake :)
[03:26:56] texasmynsted: irrc passenger would work this way but one needed to upgrade to enterprise to get full multi-threading support.
[03:27:06] mkaito: tried puma?
[03:27:23] mkaito: it's usually the one touted as super duper multi threading mojo jojo
[03:27:37] snowcrshd: has joined #ruby
[03:27:38] texasmynsted: I thought perhaps _my_ question was more rails-ish
[03:27:55] mkaito: I use puma, but not for rails. :P
[03:28:13] rubyconfused: mkaito: thanks a ton!
[03:28:31] cschneid_: has joined #ruby
[03:34:28] rubyconfused: mkaito: attempted to push to server, getting these errors: syntax error, unexpected ')', expecting => on lines 13 and 24
[03:35:16] rubyconfused: rubocop output is clean, - no warnings
[03:35:43] mkaito: it's probably balking at the new hash syntax
[03:35:56] mkaito: foo: bar is sugar for :foo => bar
[03:36:04] mkaito: what ruby version does your server thing use?
[03:36:34] mkaito: I say 'new', but that was added in friggen 1.9
[03:37:14] jenrzzz: has joined #ruby
[03:37:19] mkaito: well then it should not have an issue with that
[03:37:29] rubyconfused: here's the log
[03:37:32] mkaito: your error message said you're using 2.1
[03:37:43] mkaito: why don't you try matching your local version, for one?
[03:37:50] mkaito: usually a good idea
[03:38:00] rubyconfused: https://gist.github.com/anonymous/35a9719217b932cb0373a105d8c245fa
[03:38:14] rubyconfused: local version is 2.4
[03:38:23] rubyconfused: that's just rubocop using 2.1 syntax
[03:39:26] mkaito: anything else in that log? because that's not very interesting :P
[03:40:58] mkaito: also, post me an updated version of your code
[03:41:01] micalexander: has joined #ruby
[03:41:07] micalexander: has left #ruby: ()
[03:42:05] rubyconfused: hold on, just changed server version to match local env
[03:44:12] rubyconfused: interesting, all problem magically disappeared :D
[03:44:19] rubyconfused: mkaito: thanks
[03:44:39] mkaito: yeah, matching versions are usually a good idea :P
[03:44:43] mkaito: happy to help
[03:51:38] gix: has joined #ruby
[04:04:47] jottr_: has joined #ruby
[04:07:26] camonz: has joined #ruby
[04:14:21] milardovich: has joined #ruby
[04:30:06] bashusr: has joined #ruby
[04:31:07] charliesome: has joined #ruby
[04:38:01] jcast: has joined #ruby
[04:41:58] muelleme_: has joined #ruby
[04:48:23] ascarter: has joined #ruby
[05:05:21] jottr_: has joined #ruby
[05:06:52] ur5us: has joined #ruby
[05:13:32] jak: has joined #ruby
[05:15:43] snowcrshd: has joined #ruby
[05:17:33] uZiel: has joined #ruby
[05:19:13] domgetter: has joined #ruby
[05:24:49] benhalverson: has joined #ruby
[05:25:12] xco: has joined #ruby
[05:25:16] ur5us: has joined #ruby
[05:27:25] FastJack: has joined #ruby
[05:38:40] Hess: has joined #ruby
[05:53:50] jenrzzz: has joined #ruby
[05:53:50] jenrzzz: has joined #ruby
[05:56:59] NeutronStarr: has joined #ruby
[06:02:13] raul782: has joined #ruby
[06:04:18] solocshaw: has joined #ruby
[06:05:00] djbkd: has joined #ruby
[06:06:07] jottr_: has joined #ruby
[06:06:31] milardovich: has joined #ruby
[06:09:58] snowcrshd: has joined #ruby
[06:10:21] dionysus69: has joined #ruby
[06:15:49] bambanx: has joined #ruby
[06:18:07] yepobebot: has joined #ruby
[06:20:05] enterprisey: has joined #ruby
[06:20:44] xco: has joined #ruby
[06:21:41] solocshaw: has joined #ruby
[06:21:44] xco: has joined #ruby
[06:22:30] xco: has joined #ruby
[06:23:16] xco: has joined #ruby
[06:24:05] xco: has joined #ruby
[06:24:37] Dreamer3: has joined #ruby
[06:24:52] andrzejku: has joined #ruby
[06:24:55] xco: has joined #ruby
[06:25:47] xco: has joined #ruby
[06:26:27] xco: has joined #ruby
[06:27:15] charliesome: has joined #ruby
[06:35:02] dasher00: has joined #ruby
[06:37:38] jak: has joined #ruby
[06:38:20] montanonic: has joined #ruby
[06:39:48] PaulCape_: has joined #ruby
[06:47:47] solocshaw: has joined #ruby
[06:49:47] cjk101010: has joined #ruby
[06:50:01] ascarter: has joined #ruby
[06:50:44] unshadow: has joined #ruby
[06:52:55] unshadow: has joined #ruby
[07:04:03] snowcrshd: has joined #ruby
[07:04:05] bkxd: has joined #ruby
[07:04:13] bkxd_: has joined #ruby
[07:06:21] anisha: has joined #ruby
[07:06:52] jottr_: has joined #ruby
[07:07:48] charliesome: has joined #ruby
[07:08:20] fxa90id: has joined #ruby
[07:10:20] antgel: has joined #ruby
[07:11:59] ResidentBiscuit: has joined #ruby
[07:17:54] scrooloose: has joined #ruby
[07:23:57] uZiel: has joined #ruby
[07:30:04] bkxd: has joined #ruby
[07:30:20] cjk101010: has joined #ruby
[07:31:16] bkxd_: has joined #ruby
[07:32:27] charliesome: has joined #ruby
[07:33:53] benhalverson: has left #ruby: ()
[07:35:57] alex``: has joined #ruby
[07:36:09] psychicist__: has joined #ruby
[07:51:10] _whitelogger: has joined #ruby
[07:56:21] nofxxxx: has joined #ruby
[08:01:25] _main_: has joined #ruby
[08:02:26] _main_: has joined #ruby
[08:03:13] yeticry_: has joined #ruby
[08:04:26] romain_t: has joined #ruby
[08:04:55] FastJack: has joined #ruby
[08:07:52] jottr_: has joined #ruby
[08:08:43] conta: has joined #ruby
[08:11:36] TheBloke: has joined #ruby
[08:13:33] jak: has joined #ruby
[08:16:26] ddddddd: has joined #ruby
[08:28:16] charliesome: has joined #ruby
[08:29:06] zacts: has joined #ruby
[08:31:54] PaulCapestany: has joined #ruby
[08:38:20] MarkBilk: has joined #ruby
[08:47:15] alex``: has joined #ruby
[08:51:56] snowcrshd: has joined #ruby
[09:03:00] chmurifree: has joined #ruby
[09:08:36] jottr_: has joined #ruby
[09:11:12] charliesome: has joined #ruby
[09:11:38] sleepee: has joined #ruby
[09:12:39] muelleme_: has joined #ruby
[09:13:01] milardovich: has joined #ruby
[09:14:19] latemus: has joined #ruby
[09:16:35] alex``: has joined #ruby
[09:19:01] Dreamer3: has joined #ruby
[09:19:39] latemus_: has joined #ruby
[09:22:13] marr: has joined #ruby
[09:27:39] mattpotter: has joined #ruby
[09:27:46] bkxd: has joined #ruby
[09:27:48] bkxd_: has joined #ruby
[09:33:06] bkxd: has joined #ruby
[09:46:26] snowcrshd: has joined #ruby
[09:47:59] charliesome: has joined #ruby
[09:52:36] ascarter: has joined #ruby
[09:54:16] ResidentBiscuit: has joined #ruby
[09:59:46] Fernando-Basso: has joined #ruby
[10:00:01] hnanon_: has joined #ruby
[10:00:59] hnanon_: I have a string that I want to sequentially append numbers to. Is a regex the simplest way? For example:
[10:01:26] hnanon_: where I look for a "-" in the atring, if it exists, extract the number, convert it to an integer, add one to it, convert it to a string, then append it?
[10:02:52] troulouliou_div2: has joined #ruby
[10:06:11] _whitelogger: has joined #ruby
[10:08:55] muelleme_: did you try .next on your string?
[10:09:12] muelleme_: depending on how exactly your string looks like, that might already do the trick
[10:09:20] jottr_: has joined #ruby
[10:09:49] charliesome: has joined #ruby
[10:11:53] nOwz: has joined #ruby
[10:13:34] jak: has joined #ruby
[10:19:32] hnanon_: muelleme: The string looks like "234253"
[10:19:41] hnanon_: All numbers, in other words.
[10:19:53] jottr_: has joined #ruby
[10:20:30] hnanon_: Oh, wow. .next does indeed work.
[10:20:33] hnanon_: Thank you.
[10:22:55] nicolai86: has joined #ruby
[10:30:09] bkxd: has joined #ruby
[10:30:51] PaulCape_: has joined #ruby
[10:31:28] bkxd_: has joined #ruby
[10:33:27] quobo: has joined #ruby
[10:34:01] mtkd: has joined #ruby
[10:36:55] yepobebot: has joined #ruby
[10:39:33] mtkd: has joined #ruby
[10:40:29] snowcrshd: has joined #ruby
[10:51:10] _whitelogger: has joined #ruby
[10:52:08] andrzejku: has joined #ruby
[10:55:07] lxsameer: has joined #ruby
[11:03:11] _whitelogger: has joined #ruby
[11:09:12] _whitelogger: has joined #ruby
[11:18:10] _whitelogger: has joined #ruby
[11:30:30] conta: has joined #ruby
[11:32:10] dionysus69: has joined #ruby
[11:33:18] uZiel: has joined #ruby
[11:34:34] snowcrshd: has joined #ruby
[11:35:35] snowcrshd: has joined #ruby
[11:41:32] ur5us: has joined #ruby
[11:43:29] jak: has joined #ruby
[11:51:49] vuoto: has joined #ruby
[11:55:51] ur5us: has joined #ruby
[12:02:35] isBEKaml: has joined #ruby
[12:08:41] yepobebot: has joined #ruby
[12:18:42] djbkd: has joined #ruby
[12:28:03] cadillac_: has joined #ruby
[12:28:09] alex``: has joined #ruby
[12:29:26] romankapitonov: has joined #ruby
[12:30:29] jottr_: has joined #ruby
[12:30:51] ResidentBiscuit: has joined #ruby
[12:36:07] sleepee: has joined #ruby
[12:36:12] minimalism: has joined #ruby
[12:37:04] uZiel: has joined #ruby
[12:45:54] mathys: has joined #ruby
[12:47:09] antgel: has joined #ruby
[12:52:58] lxsameer: hey folk, is there any one who used webpacker gem before ? I like to know about your experience with it
[12:53:11] mattp__: has joined #ruby
[12:55:13] Harzilein: has joined #ruby
[12:56:49] romankapitonov: has joined #ruby
[12:57:29] my123: has joined #ruby
[12:57:29] my123: has joined #ruby
[13:06:17] dionysus69: has joined #ruby
[13:12:58] griffindy: has joined #ruby
[13:13:31] jak: has joined #ruby
[13:17:33] ledestin: has joined #ruby
[13:31:01] snowcrshd: has joined #ruby
[13:32:11] jakk: has joined #ruby
[13:36:26] tgragnato: has joined #ruby
[13:39:13] chouhoulis: has joined #ruby
[13:43:39] DoubleMalt: has joined #ruby
[13:49:11] ResidentBiscuit: has joined #ruby
[13:51:40] ledestin: has joined #ruby
[13:55:08] ascarter: has joined #ruby
[13:57:10] DLSteve: has joined #ruby
[14:00:36] rapha: nhttps://www.computerworld.com.au/article/621028/ruby-decline-popularity-may-permanent/ o_O
[14:00:41] rapha: Sorry, https://www.computerworld.com.au/article/621028/ruby-decline-popularity-may-permanent/
[14:01:06] rapha: But hey, perhaps if the ruby-hipster-culture dies, then perhaps that'll do the community some good.
[14:03:19] havenwood: rapha: Computerworld runs that story for every top ten language once a month. Click bait.
[14:03:36] rapha: Hmm, I'll shut up then :)
[14:04:02] havenwood: Is Javascript in decline? Find out in the link!
[14:10:21] isBEKaml: has joined #ruby
[14:18:36] conta: has joined #ruby
[14:25:26] snowcrshd: has joined #ruby
[14:35:05] n5ken: has joined #ruby
[14:36:12] xco: has joined #ruby
[14:39:49] dionysus69: has joined #ruby
[14:43:31] jakk: has joined #ruby
[14:45:18] cadillac__: has joined #ruby
[14:46:46] shinnya: has joined #ruby
[14:53:04] mathys: has joined #ruby
[14:56:42] eoconnell: has joined #ruby
[14:57:39] vuoto_: has joined #ruby
[14:59:11] mnem: has joined #ruby
[15:00:59] konsolebox: has joined #ruby
[15:01:45] sepp2k: has joined #ruby
[15:03:56] cam27: has joined #ruby
[15:06:49] PatrikasZvaigzde: has joined #ruby
[15:07:42] quobo: has joined #ruby
[15:09:01] johnzorn: has joined #ruby
[15:11:41] dionysus69: has joined #ruby
[15:18:18] muelleme_: has joined #ruby
[15:19:57] snowcrshd: has joined #ruby
[15:23:55] __Yiota: has joined #ruby
[15:23:55] mrconfused: has joined #ruby
[15:24:34] isBEKaml: has joined #ruby
[15:24:52] isBEKaml: has joined #ruby
[15:28:14] conta: has joined #ruby
[15:29:07] xco: has joined #ruby
[15:29:37] doublemalt_: has joined #ruby
[15:29:47] xco: has joined #ruby
[15:30:37] xco: has joined #ruby
[15:31:27] xco: has joined #ruby
[15:31:37] cseder: has joined #ruby
[15:32:17] xco: has joined #ruby
[15:32:54] wilbert_: has joined #ruby
[15:33:01] PatrikasZvaigzde: has joined #ruby
[15:33:04] xco: has joined #ruby
[15:33:58] xco: has joined #ruby
[15:36:20] A124: has joined #ruby
[15:46:11] mesamoo: has joined #ruby
[15:46:48] nowhere_man: has joined #ruby
[15:47:47] dviola: has joined #ruby
[16:03:34] my123: has joined #ruby
[16:03:47] my123: has joined #ruby
[16:04:50] V1s1ble: has joined #ruby
[16:11:23] djbkd: has joined #ruby
[16:13:30] jakk: has joined #ruby
[16:16:13] rohitpaulk: has joined #ruby
[16:18:44] uZiel: has joined #ruby
[16:31:01] sleepee: has joined #ruby
[16:33:47] brent__: has joined #ruby
[16:36:18] milardovich: has joined #ruby
[16:38:14] eljimmy: has joined #ruby
[16:45:05] gothicsouth: has joined #ruby
[16:47:54] xrlk: has joined #ruby
[16:48:44] yosafbridge: has joined #ruby
[16:51:13] cseder: has joined #ruby
[16:56:19] zacts: has joined #ruby
[16:57:03] dcunit3d: has joined #ruby
[16:57:49] ascarter: has joined #ruby
[17:07:52] snowcrshd: has joined #ruby
[17:24:03] montanonic: has joined #ruby
[17:29:46] conta: has joined #ruby
[17:33:19] tgragnato_: has joined #ruby
[17:43:32] jakk: has joined #ruby
[17:53:13] Dimik: has joined #ruby
[17:53:23] brent__: has joined #ruby
[17:54:20] uZiel_: has joined #ruby
[18:01:22] DeeJayh: has joined #ruby
[18:03:28] __Yiota: has joined #ruby
[18:25:15] Renich: has joined #ruby
[18:26:44] antgel: has joined #ruby
[18:27:10] perniciouscaffei: has joined #ruby
[18:33:39] domgetter: has joined #ruby
[18:33:42] Renich: has joined #ruby
[18:36:51] andikr: has joined #ruby
[18:51:09] snowcrshd: has joined #ruby
[19:00:22] _sfiguser: has joined #ruby
[19:03:17] johnny56_: has joined #ruby
[19:03:48] solocshaw: has joined #ruby
[19:08:39] gothicsouth: has joined #ruby
[19:08:40] marr: has joined #ruby
[19:09:18] im0nde: has joined #ruby
[19:12:33] aruns: has joined #ruby
[19:13:33] jakk: has joined #ruby
[19:14:06] aruns: Hey guys, I'm looking into using Ruby as a templating language for a simple HTML site I'm working on, was wondering if you guys had any recommendations for libraries I could use to embed my Ruby code in HTML templates without using Rails.
[19:14:42] lupine: it's called erb. or maybe haml
[19:14:49] aruns: I'm using Ruby 2.4.1 on Ubuntu 16.04, Webrick looks like it might be an option.
[19:15:02] aruns: I tried Erb but it doesn't seem to work under Apache.
[19:15:20] aruns: Guessing I need a server that's compatible with Ruby.
[19:17:43] Papierkorb: aruns: Webrick is dog slow, you can use thin or puma instead. Also, there are other much smaller web frameworks than Rails, `sinatra` is popular, but I also want to recommend `roda` for that task. As templating language, sure there is erb, but I like `haml` much more.
[19:17:58] apeiros: aruns: templating is only the part which converts text into other text, interpolating some variables and potentially control structures
[19:18:20] apeiros: aruns: the thing you seem to be looking for is how to run ruby via a webserver, that goes way beyond templating.
[19:18:40] apeiros: most common way is to use <any webserver> + rack + <any ruby backend>
[19:19:03] apeiros: where <any webserver> is often puma, nginx+passenger or apache+passenger.
[19:19:23] apeiros: and <any ruby backend> is often sinatra or rails. you can build a plain rack app too, though
[19:19:37] meshsmith: has joined #ruby
[19:19:55] apeiros: as for the "templating engine" option (which would be part of the <any backend>): slim, haml and erb are common choices
[19:20:02] aruns: Well I'm setting up a Docker container for it, I'll probably go for NGINX.
[19:20:25] PaulCapestany: has joined #ruby
[19:23:41] KeyJoo: has joined #ruby
[19:25:09] aruns: Thanks, guys, I think I've got enough now for my setup.
[19:25:25] xco: has joined #ruby
[19:25:30] Papierkorb: NGINX is really good, its HTTP Proxy stuff should work just fine
[19:29:51] clemens3: has joined #ruby
[19:30:25] solocshaw1: has joined #ruby
[19:31:48] aruns: Papierkorb: Yeah I wrote some URL rewrites in NGINX for a client site and found its syntax to be much cleaner than Apache's
[19:32:51] milardovich: has joined #ruby
[19:33:00] Papierkorb: aruns: Not only that, it's also much much faster. to me it seems that apache has only limited use-cases left where it's better than other solutions, for other use-cases, go with NGINX
[19:34:02] inukshuk_: has joined #ruby
[19:37:34] stryek_: has joined #ruby
[19:38:53] learningruby: has joined #ruby
[19:41:52] xco: has joined #ruby
[19:44:39] cyphase: has joined #ruby
[19:47:17] learningruby: Question: The book “The Ruby Programming Language” says: ‘Chapter 4 covers primary expressions in Ruby—literals, variable references, method invocations, and assignments”. But how is a method invocation a primary expression? It seems to me that it's composed of several values/components: object, method, arguments. Can anyone explain?
[19:47:56] zacts: has joined #ruby
[19:54:19] brent__: has joined #ruby
[19:54:54] solocshaw: has joined #ruby
[19:55:06] Cohedrin_: has joined #ruby
[20:00:55] ascarter: has joined #ruby
[20:01:38] HoierM_: has joined #ruby
[20:02:10] jaruga________: has joined #ruby
[20:04:43] ineb: learningRuby: and why do you think a method invocation is a primary expression?
[20:05:30] __Yiota: has joined #ruby
[20:09:41] cpruitt: has joined #ruby
[20:11:03] solocshaw: has joined #ruby
[20:14:04] milardovich: has joined #ruby
[20:16:48] petruff: has joined #ruby
[20:16:53] learningruby: ineb: I don't think that, the book “The Ruby Programming Language” (by Matz and David Flanagan) seems to say so in the quote I gave above.
[20:17:38] milardovich: has joined #ruby
[20:19:38] S1kx: has joined #ruby
[20:24:23] petruff: has joined #ruby
[20:26:56] brent__: has joined #ruby
[20:27:28] learningruby: ineb: The way the book defines primary expression is like an ultimate expression, that don't have subexpressions. Maybe is there some method invocations that are like that? I don't know, but it doesn't seem so when I think about it. Or maybe that was a little mistake in the writing of the book. That's what I'm trying to figure out.
[20:28:00] milardovich: has joined #ruby
[20:29:04] learningruby: ineb: the book seems to be quite precise and well written.. and it had three authors collaborating on it, so I find unlikely to be a mistake.
[20:30:23] wilbert_: has joined #ruby
[20:34:22] ineb: i see your point. method invocations theoretically could be composed by primary expressions you mentioned, yet there is no operator to do so and i think the book therefore is tagging it as primary expression
[20:38:17] anisha: has joined #ruby
[20:43:29] jakk: has joined #ruby
[20:52:55] learningruby: ineb: mmm I see. But the book doesn't seem to differentiate primary expressions from compound expressions based on operators. For example, see this quote from the book: “It is worth noting that many literals, such as numbers, are primary expressions—the simplest possible expressions not composed of simpler expressions. Other literals, such as array
[20:52:55] learningruby: and hash literals and double-quoted strings that use interpolation, include subexpressions and are therefore not primary expressions.” -> So, here as you see the book defines expressions as primary or compound based on whether it has sub expressions.
[20:54:20] learningruby: But then later it calls method invocations as being primary expressions, and it doesn't elaborate on it. So I'm confused.
[20:55:01] quobo: has joined #ruby
[20:58:17] ur5us: has joined #ruby
[20:58:57] ineb: yes, but maybe my argument holds. for example string interpolations are no primary expression because they can be constructed with operators. 'i mean ' + ' like this.'. this holds true for hashes and arrays aswell. however, when it comes to method invocations, i can think of no way to do it with any operator
[20:59:10] rubylegend2092: has joined #ruby
[21:00:29] rubylegend2092: has joined #ruby
[21:01:03] astrobunny: has joined #ruby
[21:02:31] kthibodeaux: has joined #ruby
[21:04:00] rubylegend2092: has joined #ruby
[21:05:18] fredlinhares: has joined #ruby
[21:05:34] montanonic: has joined #ruby
[21:05:34] brent__: has joined #ruby
[21:09:44] rubylegend2092: has joined #ruby
[21:11:13] fredlinhares: Where can I find a tutorial about how to create a lexer in Ruby?
[21:22:04] GinoMan: has joined #ruby
[21:22:14] tAn: has joined #ruby
[21:22:27] xco: has joined #ruby
[21:23:47] GinoMan: has joined #ruby
[21:24:31] learningruby: has joined #ruby
[21:24:34] shakes: has joined #ruby
[21:25:32] xrlk: has joined #ruby
[21:30:30] fredlinhares: has joined #ruby
[21:33:49] PaulCapestany: has joined #ruby
[21:34:43] darix: fredlinhares: there are parser libraries for that.
[21:34:58] darix: fredlinhares: racc, ruby-ll, ragel just to name a few
[21:35:44] jackjackdripper: has joined #ruby
[21:36:06] Tau: has joined #ruby
[21:37:31] BTRE: has joined #ruby
[21:38:24] troulouliou_div2: has joined #ruby
[21:39:38] zapata: has joined #ruby
[21:49:04] fredlinhares: darix, I will check it.
[21:49:43] cschneid_: has joined #ruby
[21:54:08] ddd12: has joined #ruby
[21:56:49] ddd12: has joined #ruby
[21:59:39] learningruby: ineb: ooh I see. I didn't know that you could write hashes and arrays with operators, interesting.
[22:05:48] ddd12: has joined #ruby
[22:05:51] sleepee: has joined #ruby
[22:06:11] __Yiota: has joined #ruby
[22:07:47] FernandoBasso: has joined #ruby
[22:09:52] gigetoo: has joined #ruby
[22:10:18] petruff: has joined #ruby
[22:11:52] Neptu: has joined #ruby
[22:17:47] learningruby: has joined #ruby
[22:19:53] Cohedrin_: has joined #ruby
[22:29:49] herbmillerjr: has joined #ruby
[22:31:43] dcunit3d: has joined #ruby
[22:31:53] muelleme_: has joined #ruby
[22:36:35] gigetoo: has joined #ruby
[22:43:33] jakk: has joined #ruby
[22:43:35] xrlk: has joined #ruby
[22:48:59] choke: has joined #ruby
[23:02:07] PaulCape_: has joined #ruby
[23:04:48] texasmynsted: has joined #ruby
[23:07:21] __Yiota: has joined #ruby
[23:11:30] cyphase_eviltwin: has joined #ruby
[23:25:01] agent_white: has joined #ruby
[23:25:54] alveric2: has joined #ruby
[23:54:13] marius: has joined #ruby