« Back to channel list

#elixir-lang - 15 June 2019

« Back 1 day Forward 1 day »
[00:00:10] nickjj: if you had a scenario where you had an optional string field in a DB, and you wanted to set a default string for it (but it might change a few times), would you set a proper DB-level default or just do a myschema.foo_label || "the sane default" in the 1 spot where you use it?
[00:00:32] nickjj: it's literally called in 1 spot (in an eex template)
[00:02:34] Sgeo_: has joined #elixir-lang
[00:05:00] Disorganized: has joined #elixir-lang
[00:13:50] jimmyrcom: has joined #elixir-lang
[00:15:10] orbyt_: has joined #elixir-lang
[00:29:07] vaer-k: has joined #elixir-lang
[00:30:16] Sgeo__: has joined #elixir-lang
[01:22:01] Adkron: has joined #elixir-lang
[01:23:52] jeffro: has joined #elixir-lang
[01:37:28] hvnb: has joined #elixir-lang
[01:37:40] tomterl: has joined #elixir-lang
[01:40:04] jeffweiss: has joined #elixir-lang
[01:43:40] theWhisper__: has joined #elixir-lang
[01:49:15] jimmyrcom: has joined #elixir-lang
[01:52:27] ur5us: has joined #elixir-lang
[01:56:15] Guest84: has joined #elixir-lang
[01:57:02] Guest84: has joined #elixir-lang
[01:57:45] Guest84: has joined #elixir-lang
[01:58:35] Guest84: has joined #elixir-lang
[01:59:20] Guest84: has joined #elixir-lang
[01:59:25] Adkron: has joined #elixir-lang
[02:00:01] Guest84: has joined #elixir-lang
[02:00:50] Guest84: has joined #elixir-lang
[02:01:36] Guest84: has joined #elixir-lang
[02:02:26] Guest84: has joined #elixir-lang
[02:03:11] Guest84: has joined #elixir-lang
[02:03:58] Guest84: has joined #elixir-lang
[02:04:46] Guest84: has joined #elixir-lang
[02:05:26] Guest84: has joined #elixir-lang
[02:06:18] Guest84: has joined #elixir-lang
[02:07:01] Guest84: has joined #elixir-lang
[02:07:51] Guest84: has joined #elixir-lang
[02:08:36] Guest84: has joined #elixir-lang
[02:09:21] Guest84: has joined #elixir-lang
[02:10:06] Guest84: has joined #elixir-lang
[02:10:56] Guest84: has joined #elixir-lang
[02:11:40] Guest84: has joined #elixir-lang
[02:12:28] Guest84: has joined #elixir-lang
[02:13:10] Guest84: has joined #elixir-lang
[02:43:09] Adkron: has joined #elixir-lang
[02:47:00] Sgeo_: has joined #elixir-lang
[02:47:23] notzmv: has joined #elixir-lang
[02:48:25] Sgeo: has joined #elixir-lang
[02:54:15] Sgeo: has joined #elixir-lang
[02:55:29] pera: has joined #elixir-lang
[03:02:44] jeffro: has joined #elixir-lang
[03:07:54] jeffro: has joined #elixir-lang
[03:16:55] __charly__: has joined #elixir-lang
[03:17:41] jeffro: has joined #elixir-lang
[03:25:12] rpip: has joined #elixir-lang
[03:36:07] jeffweiss: has joined #elixir-lang
[03:49:57] Adkron: has joined #elixir-lang
[03:51:44] vaer-k: has joined #elixir-lang
[03:52:54] wsieroci: has joined #elixir-lang
[03:59:38] jeffweiss: has joined #elixir-lang
[04:15:37] jeffro: has joined #elixir-lang
[04:20:51] notzmv: has joined #elixir-lang
[04:39:28] gvaughn: has joined #elixir-lang
[04:47:49] Saukk: has joined #elixir-lang
[05:04:18] Adkron: has joined #elixir-lang
[05:33:02] vaer-k: has joined #elixir-lang
[05:36:17] jeffro: has joined #elixir-lang
[05:37:12] Avinash: has joined #elixir-lang
[05:57:34] jeffro: has joined #elixir-lang
[06:14:22] gvaughn: has joined #elixir-lang
[06:15:38] tuacker: has joined #elixir-lang
[06:18:21] jeffro: has joined #elixir-lang
[06:19:11] dtzuzu: has joined #elixir-lang
[06:22:12] Adkron: has joined #elixir-lang
[06:23:25] ariedler: has joined #elixir-lang
[06:25:40] DTZUZO: has joined #elixir-lang
[06:33:07] DeX77: has joined #elixir-lang
[06:35:24] levicole: has joined #elixir-lang
[06:37:53] rpip: has joined #elixir-lang
[06:37:53] wonko7: has joined #elixir-lang
[06:37:53] paxis: has joined #elixir-lang
[06:37:53] duoi: has joined #elixir-lang
[06:37:53] kamidev[m]: has joined #elixir-lang
[06:37:53] rbino: has joined #elixir-lang
[06:37:53] universa1: has joined #elixir-lang
[06:37:53] nolan_d: has joined #elixir-lang
[06:37:54] Reapster: has joined #elixir-lang
[06:37:54] hindenbug[m]: has joined #elixir-lang
[06:37:54] cbw[m]: has joined #elixir-lang
[06:37:54] Ablu: has joined #elixir-lang
[06:37:54] lpvb: has joined #elixir-lang
[06:37:54] povilas: has joined #elixir-lang
[06:37:54] Poeticode: has joined #elixir-lang
[06:37:54] lehoff: has joined #elixir-lang
[06:37:54] Siyo: has joined #elixir-lang
[06:38:20] DTZUZO: has joined #elixir-lang
[06:38:20] dtzuzu: has joined #elixir-lang
[06:38:20] nikhilmore54: has joined #elixir-lang
[06:38:20] toothfairy__: has joined #elixir-lang
[06:38:20] tgrk: has joined #elixir-lang
[06:38:20] blassin: has joined #elixir-lang
[06:38:20] Moogly: has joined #elixir-lang
[06:38:20] tomku: has joined #elixir-lang
[06:38:20] elixir-logger: has joined #elixir-lang
[06:38:20] thread: has joined #elixir-lang
[06:38:21] mrus: has joined #elixir-lang
[06:39:13] jeffro: has joined #elixir-lang
[06:39:52] DTZUZO: has joined #elixir-lang
[06:40:55] dtzuzu: has joined #elixir-lang
[06:41:04] levicole: has joined #elixir-lang
[06:42:48] Cthalupa: has joined #elixir-lang
[06:44:41] micmus: has joined #elixir-lang
[06:46:45] Sgeo_: has joined #elixir-lang
[06:51:07] PragTob: has joined #elixir-lang
[06:53:59] Adkron: has joined #elixir-lang
[06:54:32] gde33: has joined #elixir-lang
[06:55:16] jeffro: has joined #elixir-lang
[07:09:16] ndee: has joined #elixir-lang
[07:20:27] pmarreck: has joined #elixir-lang
[07:22:32] duoi: has joined #elixir-lang
[07:29:02] duoi: has joined #elixir-lang
[07:41:08] drrrty: has joined #elixir-lang
[07:46:14] wsieroci: has joined #elixir-lang
[07:46:51] drrrty: has joined #elixir-lang
[07:47:59] lexmag: has joined #elixir-lang
[07:56:35] mahmudov: has joined #elixir-lang
[08:01:24] Adkron: has joined #elixir-lang
[08:02:35] gvaughn: has joined #elixir-lang
[08:05:08] mdbm: has joined #elixir-lang
[08:11:02] voltone: has joined #elixir-lang
[08:19:24] squall: has joined #elixir-lang
[08:24:57] ariedler: has joined #elixir-lang
[08:32:37] ndee: has joined #elixir-lang
[08:45:47] Sgeo__: has joined #elixir-lang
[08:56:08] jeffro: has joined #elixir-lang
[09:00:21] minus: has joined #elixir-lang
[09:12:12] jeffro: has joined #elixir-lang
[09:12:15] Adkron: has joined #elixir-lang
[09:21:37] nikhilmore54: has joined #elixir-lang
[09:23:22] lexmag: has joined #elixir-lang
[09:25:40] lexmag: has joined #elixir-lang
[09:30:04] lexmag: has joined #elixir-lang
[09:38:44] Sgeo__: has joined #elixir-lang
[09:41:05] lexmag: has joined #elixir-lang
[09:42:32] wsieroci: has joined #elixir-lang
[09:49:41] DTZUZO: has joined #elixir-lang
[09:50:49] gvaughn: has joined #elixir-lang
[09:57:14] lexmag: has joined #elixir-lang
[10:04:16] ndee: has joined #elixir-lang
[10:19:14] snapet: has joined #elixir-lang
[10:20:06] Adkron: has joined #elixir-lang
[10:25:41] ariedler: has joined #elixir-lang
[10:25:59] jimmyrcom: has joined #elixir-lang
[10:28:18] lexmag: has joined #elixir-lang
[10:28:36] Saukk: has joined #elixir-lang
[10:32:08] inhortte: has joined #elixir-lang
[10:55:08] ariedler: has joined #elixir-lang
[10:55:11] jimmyrcom: has joined #elixir-lang
[10:55:23] Adkron: has joined #elixir-lang
[11:07:22] ndee: has joined #elixir-lang
[11:13:04] jeffro: has joined #elixir-lang
[11:15:12] Sgeo_: has joined #elixir-lang
[11:23:52] jimmyrcom: has joined #elixir-lang
[11:24:12] ndee: has joined #elixir-lang
[11:29:02] jeffro: has joined #elixir-lang
[11:39:09] gvaughn: has joined #elixir-lang
[11:44:10] kapilp: has joined #elixir-lang
[11:48:15] nikhilmore54: has joined #elixir-lang
[11:59:04] Adkron: has joined #elixir-lang
[12:14:49] nikhilmore54: has joined #elixir-lang
[12:33:59] tallysmartins_: has joined #elixir-lang
[12:34:06] gvaughn: has joined #elixir-lang
[13:08:48] Adkron: has joined #elixir-lang
[13:22:06] pushpa: has joined #elixir-lang
[13:22:43] pushpa: Hi .. Anybody who understands why @stories do not get assigned? https://dpaste.de/baWk
[13:25:16] micmus: pushpa: could it be that mount doesn't call fetch?
[13:28:03] pushpa: good question :)
[13:28:36] gvaughn: has joined #elixir-lang
[13:29:39] Guest84: has joined #elixir-lang
[13:29:57] jeffro: has joined #elixir-lang
[13:33:52] gvaughn: has joined #elixir-lang
[13:45:36] jeffro: has joined #elixir-lang
[13:47:42] hvnb: has joined #elixir-lang
[14:15:29] mahmudov: has joined #elixir-lang
[14:20:33] Adkron: has joined #elixir-lang
[14:38:01] nickjj_: has joined #elixir-lang
[14:39:51] NickZA: has joined #elixir-lang
[14:43:02] nickjj_: has joined #elixir-lang
[14:44:31] pushpa: micmus: in the fetch @stories is assigned to socket (#78 https://dpaste.de/baWk and socket is assigned in mount
[14:47:31] NickZA: has joined #elixir-lang
[14:47:32] Adkron: has joined #elixir-lang
[14:56:40] __charly__: has joined #elixir-lang
[15:00:39] jeffro: has joined #elixir-lang
[15:15:07] gvaughn: has joined #elixir-lang
[15:15:26] pera: has joined #elixir-lang
[15:16:23] jeffro: has joined #elixir-lang
[15:24:23] wsieroci: has joined #elixir-lang
[15:26:31] Adkron: has joined #elixir-lang
[15:32:10] jeffro: has joined #elixir-lang
[15:41:38] jeffweiss: has joined #elixir-lang
[15:47:06] benwilson512: pushpa: you aren't assigning it in `mount` though
[15:47:52] jeffro: has joined #elixir-lang
[15:49:42] tuacker: has joined #elixir-lang
[15:51:23] lexmag: has joined #elixir-lang
[15:51:36] benwilson512: chrismccord: that does raise an interesting question though: is it possible to have handle_params called in conjunction with the initial page mount? For the initial HTTP request you obviously have the params, although I'm not sure if the same holds true for the initial live view render
[15:52:14] benwilson512: if it isn't part of the initial mount it makes pagination scenarios a bit awkward, where on the first load of the page you don't know which page of results to get, you only can do that later
[15:56:36] Guest84: has joined #elixir-lang
[15:57:17] Guest84: has joined #elixir-lang
[15:58:06] Guest84: has joined #elixir-lang
[15:58:20] lexmag: has joined #elixir-lang
[15:58:52] Guest84: has joined #elixir-lang
[15:59:38] Guest84: has joined #elixir-lang
[16:00:30] Guest84: has joined #elixir-lang
[16:01:15] Guest84: has joined #elixir-lang
[16:01:57] Guest84: has joined #elixir-lang
[16:04:02] jeffro: has joined #elixir-lang
[16:07:22] Zarathu: seems like that should be part of the initial lifecycle
[16:07:30] Zarathu: mount -> handle_params -> render
[16:07:38] Adkron: has joined #elixir-lang
[16:10:01] Guest84: has joined #elixir-lang
[16:12:56] dsr: has joined #elixir-lang
[16:19:44] jeffro: has joined #elixir-lang
[16:25:03] pushpa: benwilson512: how would you assign it there?
[16:28:25] Zarathu: pushpa: in your mount()
[16:28:37] Zarathu: assign(:stories, Stories.list_stories())
[16:35:00] Exuma: has joined #elixir-lang
[16:48:06] Adkron: has joined #elixir-lang
[16:49:29] Jam666: has joined #elixir-lang
[16:54:03] dimitarvp: has joined #elixir-lang
[16:56:49] dsr: has joined #elixir-lang
[17:09:38] NightMonkey: has joined #elixir-lang
[17:11:20] griffinbyatt: has joined #elixir-lang
[17:20:02] __charly__: has joined #elixir-lang
[17:23:28] Exuma: has joined #elixir-lang
[17:25:59] pushpa: Zarathu: oh :) Thanks a lot!
[17:28:28] Adkron: has joined #elixir-lang
[17:47:01] Exuma: has joined #elixir-lang
[17:59:35] NightMonkey: has joined #elixir-lang
[18:05:19] Adkron: has joined #elixir-lang
[18:05:54] squall: has joined #elixir-lang
[18:12:34] Exuma: has joined #elixir-lang
[18:19:08] nikhilmore54: has joined #elixir-lang
[18:20:34] jeffro: has joined #elixir-lang
[18:26:50] jeffro: has joined #elixir-lang
[18:33:11] __charly__: has joined #elixir-lang
[18:38:02] Exuma: has joined #elixir-lang
[18:41:06] conceivably: has joined #elixir-lang
[18:52:49] Adkron: has joined #elixir-lang
[18:55:09] adkron_: has joined #elixir-lang
[18:57:15] gde33: has joined #elixir-lang
[19:16:04] ndee: has joined #elixir-lang
[19:25:22] voltone: has joined #elixir-lang
[19:29:12] adkron_: has joined #elixir-lang
[19:46:30] Scramblejams: has joined #elixir-lang
[20:00:33] orbyt_: has joined #elixir-lang
[20:07:46] adkron_: has joined #elixir-lang
[20:18:47] Exuma: has joined #elixir-lang
[20:27:31] jeffro: has joined #elixir-lang
[20:36:27] __charly__: has joined #elixir-lang
[20:49:42] adkron_: has joined #elixir-lang
[21:06:29] nikhilmore54: has joined #elixir-lang
[21:16:29] jeffro: has joined #elixir-lang
[21:28:02] adkron_: has joined #elixir-lang
[21:34:59] mahmudov: has joined #elixir-lang
[21:43:22] jeffro: has joined #elixir-lang
[21:58:34] jeffro: has joined #elixir-lang
[22:17:05] __charly__: has joined #elixir-lang
[22:27:58] Foxfir3: has joined #elixir-lang
[22:33:10] adkron_: has joined #elixir-lang
[22:49:00] notzmv: has joined #elixir-lang
[23:49:51] dsr: has joined #elixir-lang
[23:52:19] thurloat: has joined #elixir-lang
[23:59:24] jeffro: has joined #elixir-lang