<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:
<Pillus>
only requirement is to use as little third party libraries as possible, and it to just be straight forward and easy to understand
onion has joined #ruby
<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.
<onion>
That's what that vibrator reminds me of, simpler times.
Guest70792 has quit [Ping timeout: 252 seconds]
mzo has joined #ruby
nchambers has quit [Quit: WeeChat 2.2]
* phaul
yawns
mzo has quit [Quit: mzo]
kaleido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
onion has quit [K-Lined]
im0nde has quit [Quit: im0nde]
evdubs_ has quit [Remote host closed the connection]
clemens3 has joined #ruby
ta_ has joined #ruby
lxsameer has joined #ruby
despai has quit [Quit: ...]
kapil____ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ta_ has quit [Remote host closed the connection]
ellcs has joined #ruby
clemens3 has quit [Ping timeout: 244 seconds]
tdy has joined #ruby
dellavg_ has quit [Ping timeout: 244 seconds]
reber has joined #ruby
wildermind has quit [Quit: Connection closed for inactivity]
jesfre has joined #ruby
whysthatso_ has joined #ruby
<havenwood>
Pillus: I think your template example looks good. Missing a `require 'json'` it seems. I commented with a few nit style suggestions.
dbugger_ has quit [Remote host closed the connection]
<havenwood>
Pillus: Just running `rubocop -a` with the rubocop gem will cover most style issues to a reasonable degree.
Guest70792 has joined #ruby
<Pillus>
thank you very much havenwood! :)
<Pillus>
also good tip about rubocop
<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?
clemens3 has joined #ruby
phaul has quit [Ping timeout: 268 seconds]
<Pillus>
i also forgot to require openssl, to set verification mode for http
Guest70792 has quit [Ping timeout: 245 seconds]
<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.
<havenwood>
Looks likeURI.encode_www_form and #set_form_params.
reber has quit [Remote host closed the connection]
akem has joined #ruby
Guest70792 has quit [Ping timeout: 268 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takumo has quit [Quit: WeeChat 1.9.1]
jesfre has quit [Quit: Oh snap. Looks like CMD + Q got the best of me.]
lomex has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kaleido has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
clemens3 has quit [Remote host closed the connection]
akem__ has joined #ruby
Guest70792 has joined #ruby
akem has quit [Ping timeout: 272 seconds]
orbyt_ has joined #ruby
clemens3 has joined #ruby
clemens3 has quit [Client Quit]
clemens3 has joined #ruby
eblip has joined #ruby
def_jam has joined #ruby
eb0t_ has quit [Ping timeout: 250 seconds]
eb0t has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
mzo has joined #ruby
<mzo>
is ruby dying bros
Guest53511 has joined #ruby
<baweaver>
Why do you ask>
<baweaver>
It's a rather silly assertion to say any language is dying.
Guest53511 has quit [Ping timeout: 272 seconds]
<mzo>
why's it silly
<baweaver>
Do people have gainful employment in said language? Do they make money?
TomyLobo has quit [Read error: Connection reset by peer]
<baweaver>
There are people who still make a very good living using RPG, COBOL, and languages from the 60s
<baweaver>
So yes, silly.
<mzo>
what
<mzo>
how does that make it silly
<baweaver>
What exactly do you want to know?
<baweaver>
If it relates to Ruby we're happy to help, but as is this comes across as rather trollish
clemens3 has quit [Ping timeout: 272 seconds]
<mzo>
is the number of new ruby projects started every year declining due to the rise of languages like Go and javascript
<mzo>
rails was at one time the big thing in the world of web development
<baweaver>
Is PHP dying?
<mzo>
yes
<baweaver>
It's likely the #1 production deployed language out there.
<baweaver>
To assert it and languages like it are dying is short-sighted and focused on a particular metric over the whole.
elcontrastador has quit [Ping timeout: 240 seconds]
<mzo>
well actually i'm not so sure about php
<baweaver>
The better question is what do you want this information for?
<mzo>
it seems like it's trying to claw its way back
<baweaver>
It never left.
<mzo>
it may not have left in terms of raw popularity
<mzo>
but let's be real
<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.
<mzo>
no
<baweaver>
Convince me that's not the case.
_whitelogger has joined #ruby
<mzo>
wow i wish i lived in Melbourne
<Radar>
mzo: World's most liveable city 6 years running ;)
<baweaver>
SF is hiring them like mad too.
<baweaver>
...not so much on the liveable part though
<Radar>
baweaver: Will you ever see that kidney again that you had to pay in rent?
<baweaver>
Remember I own a house :P
<baweaver>
So that was two kidneys thankyouverymuch
<Radar>
oh yeah, that's right
<Radar>
mzo: where do you live now?
<mzo>
eastern canada
<mzo>
i'll relocate eventually but i'm here for at least a few more years
<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.
kapil____ has quit [Quit: Connection closed for inactivity]
ShawnEvans has joined #ruby
<ShawnEvans>
Greetings. I have a program idea in mind but my searching on google is not returning what I want to see..
<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
<ShawnEvans>
Let me re-word my question.
lytol has quit [Remote host closed the connection]
<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?
<mzo>
well if you want it to work in the browser like that, you'll need to use some html, css, and javascript
<mzo>
you could make a command-line version using ruby (or use some GUI library but i wouldn't recommend that)
<ShawnEvans>
mzo, I want something offline in ubuntu.. I forgot to mention that. :)