#ruby-offtopic - 15 December 2017
« Back 1 day Forward 1 day »
[07:50:41] apeiros: also somebody doesn't follow guides, because it becomes so much more readable (*tries not to laugh while writing that*) if you just remove all vowels first
[07:52:46] apeiros: personally, I try to cut out not-so-relevant words first, then start abbreviating those which remain somewhat readable when abbreviated, and then I start becoming desperate.
[07:53:22] apeiros: haha, I still have a gem "oracalable" which automatically replaces all table names with numbers and keeps a "registry" and even translates error messages :)
[07:53:43] apeiros: I stopped using it because outside of rails it was impossible to work with the db anymore
[07:55:22] apeiros: well, even with that messy name, humans are still better at figuring out what that is than t<somenum>
[07:56:02] apeiros: but it's still infuriating that we have that 30 chars limit. it's ridiculous and there's no technical reason (besides "it's legacy and work to change" of course) to have that limit.
[07:56:32] apeiros: that said, I don't understand pg's 64 chars limit either. 255 makes sense. anything below is IMO arbitrary bullshit.
[07:58:50] apeiros: yes, 64 moves the issue significantly into the "rare edge cases" realm of issues.
[07:59:15] apeiros: but with autogenerated names you still can hit it easily. say a multi-column index.
[08:00:00] apeiros: and the moment you have to shorten them means you have to look out for unique name again
[08:13:44] srandon111: hello all, how do you structure your code in the presence of a database ? imean do you useually create a single class to deal with the database and put all the method representing the queries there or more classes ?
[08:27:15] ruby[bot]: srandon111: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[08:39:23] apeiros: user reports "X does not work". auto-repsonse: "X does work". effect: user replies: "no, it does not work, when I do X then Y then Z, then A and B happen instead of C"
[08:44:13] dminuoso: I thought we had something that pointed people towards #ruby-offtopic-offtopic?
[08:46:23] apeiros: meh, sad. nothing like "DELETE FROM table WHERE cond RETURN id" to get a list of deleted IDs :(
[09:03:43] apeiros: aaahahaha, new json spec. only change: "it must be encoded in UTF-8" (unless it's in a closed system, which is an exception they should just have left out, because in a closed system you'll just say "it's like JSON, but in <encoding>"
[18:59:29] mikkelsen: mvp.kablamo.org I've been having fun with this :D (since I was given the OK yesterday that I can discuss my interest in perl here -- still always looking to pick at the minds of perl users)
[19:01:54] mikkelsen: oooo niice sounds good :D and I didn't know I lost connection and I'm no longer aScottishBoat *sigh* I hate it when my VPN lags and I lose connection as my main username
[19:02:19] mikkelsen: I'm also wanting to try haskell oh yeah. I have to learn Elm at work... Looking forward to that
[19:13:28] baweaver: mikkelsen: It's fine, some of us are recovering Perl programmers who've found a better way :P
[19:17:46] baweaver: 308 [Permanent Redirect] indicates all future requests should go to new_site, but disallows any modification of HTTP verbs in the process. Call a GET a GET and a POST a POST
[19:19:28] Papierkorb: 301 "I did what you posted me about, the result is over there" 308 "You wanted to POST/GET over there I guess "
[19:20:25] Papierkorb: Dunno, but e.g. when you rename a Repo in Github, it adds a permanent alias from the old to the new name. I'd use 308 for that.
[19:26:47] baweaver: Python, on the other hand, is cemented in a lot of data science and other fields so it has a distinct usage
[19:27:40] mikkelsen: I'm just so confused as to why so many perl guys stick to it.. Makes me feel like there is _something_ there
[19:37:01] havenwood: baweaver: python also has really nice gui bindings - every version of everything i can think of supported
[19:37:51] miah: i read that MS is considering making Python available in Excel as a scripting language too
[19:39:32] baweaver: The main thing with me was that I was very very new in Perl when I started into Ruby, so I had a huge jump in skill in terms of Ruby and just stuck with it
[19:40:14] mikkelsen: havenwood, I want to give p6 a shot, too, but... Yeah, I agree on the mascot. Also, it doesn't seem competitive yet
[19:40:31] mikkelsen: I'll be honest, community is massive for me, so if no one is using a language... I don't want to use it, even if it's wowzah amazing
[19:41:12] havenwood: mikkelsen: You'll have to make the thing in the language that causes people to start using it.
[19:41:50] mikkelsen: havenwood, true (btw it's aScottishBoat, my internet keeps logging me out of ASB though) but we'll see what the future holds for p6
[21:25:04] apeiros: nobody will be able to tell whether the series of <!>? are making any real sense or not
[21:56:32] apeiros: ljarvis: even if I'd want a desktop again, I couldn't justify an imac pro. I'd rather wait for the next mac pro
[21:56:53] apeiros: it's dead money. want a bigger hard drive? buy a new one. want more ram? buy a new one.
[21:58:41] apeiros: ljarvis: ok, that'd be somewhat bearable, assuming it also applies to premium resellers.
[22:00:17] apeiros: I got myself an anker 7x UBS A (3.0) hub with a USB3 B <-> USB C cable. attached it to my LG 5k. works almost like a hub.
[22:00:43] ljarvis: nice. How's that monitor? have been considering it for a while (although wont work with this machine)
[22:00:43] apeiros: a) there will be replacements (current ones only work up to 60W), b) I surprisingly don't miss it
[22:01:02] apeiros: and c) I *love* how I can charge *everything* on my laptop power supply. wii, iphone, ipad :)
[22:01:44] apeiros: I love the screen. but ever since they repaired my mbp, it crashes about 1 out of 3 times I connect it.
[22:03:57] ljarvis: fwiw im an ex-linux user who stage-3'd gentoo for ~5 years, i loved it but don't regret moving to macs
[22:04:44] ljarvis: i just don't want to hack around with my local machine anymore, i want to open it and everything work, which is what macos (generally) gives me
[22:06:01] apeiros: same as ljarvis. though the "everything works" is not as good as it used to be IMO.
[22:07:45] apeiros: assuming you have a good coding culture with tests where you can onboard a team relatively effortlessly (as in: core team doesn't get overhead, the "fixxers" onboard themselves, it just takes time, aka money)
[22:09:31] apeiros: ACTION had an SE with 20MB HD and 2.5MB Ram (that was back when 640KB was "enough for everyone")
[22:15:02] ljarvis: so today was the first day i couldn't fit an adventofcode challenge into my lunch break :(
[22:21:11] ljarvis: didn't do last years, but going through 2015 and prob last years at some point too, just for fun
[23:18:23] baweaver: al2o3-cr: was about to say something along the lines of: "You don't say? Some random on the internet doesn't understand my entire pipeline?"
[23:32:48] al2o3-cr: baweaver: the one *thing* is, even such knowledge you think you about a about certain *thing* i'll guarantee there's 10%-15% you don't know.
[23:35:46] baweaver: al2o3-cr: interesting how often that 10-15% is where there's some critical bug too