Showing posts with label brug. Show all posts
Showing posts with label brug. Show all posts

Sunday, May 24, 2015

Bangalore Ruby User Group May 2015 Meetup Experience

Hello,

The May 2015 BRUG meetup was at Amagi Media Labs. I just thought of summarizing some quick notes from the discussions that took place as part of the meetup hoping that it could serve as a reference for those who could and couldn't make it for the meetup.

To give you a background, some of these discussions were around some questions raised by a person who is running a site called Loan Meet using Ruby on Rails. What's unique was this person was doing Rails development on Windows! We had an interesting discussion around 'Rails on Windows' and the person using it admitted that he had to setup additional things for using certain gems in a Windows platform.

Things discussed were -

  1. Somebody from Amagi Labs was giving a presentation into what they're basically into, what problems their addressing and where does Ruby fit into their Tech Stack.
  2. Akash Manohar briefly spoke about asdf an Extendable Version Manager for Ruby, Node.js, Elixir and more
  3. There was a discussion around Elastic Search and Avinasha Shastry from SupportBee mentioned that they Cache Elastic Search setup for Circle CI instead of installing it as part of every build.
  4. People were discussing different deployment options and many of them were suggesting that the Digital Ocean $5 plan is good for starters.
  5. People were talking about Heroku Review apps
  6. For basic mailing options in RoR apps people were discussing the below -
    1. Don’t use mailgun - it's pretty costly
    2. Using Amazon instead is cheap
    3. For Transactional email on behalf of clients people can’t use amazon
  7. I had a question around ways to better manage our assets. Akash from Icicle and somebody else(sorry, I can't properly recall who) mentioned You can use multiple manifest files. That was something I didn't know about earlier.
  8. We were then discussing different ways to manage front end assets -
    1. People were talking about - bower, yeoman, grunt and something called brunch (This actually reminds me of something like breakfast + lunch :)?, jokes apart, this was something which even I hadn't heard of earlier!) .
  9. People were also talking about debugging in production via pry-remote, papertrail, logstash for production related logs. Many of them agreed that using a third party service like papertrail can save you from the responsibility of managing these things by yourself.
  10. Encoding issues, configure git config to better manage carriage returns
  11. We could use SMS services in our Rails apps via Twilio and solutionsinfini .
  12. People were also talking about Prometheus by SoundCloud.

I'd like to thank Amagi Media Labs for hosting us. They've come up with a new office there and I'm just sharing a few snaps(I had asked them if I could click a few snaps) taken there as they're office setup looked interesting :)














P.S:- 
Since these are quick notes, please feel free to correct me if there is a typo in something or if I've incorrectly mentioned something. Also, please feel free to add more points as comments that were discussed as part of the meetup in case I missed mentioning something, I'll update the post accordingly.

Sunday, May 25, 2014

Learnings from participation in my first Open Hack

Hi there,

I’m grateful to Multunus for hosting an Open Hack on 24/5/2014. Let me just start with telling you a small tale on how I made it there. Read on :)

Background -

The day I heard about this event and by the time I registered for it, I was quite late. But nevertheless, I dropped a mail to Vaishnavi from Multunus and she promptly replied and asked me to register on the waiting list although I had faint hopes of actually making it back then. Just one day prior to the actual event I got a mail from her in which she mentioned about a last minute drop out and I was happy I could fill in that person’s shoes. 

Getting Started -

Coming up with ideas for the open hack could be interesting as you can even take up something inpromptu. Some of the participants did come with some plans as to what they'd want to work(which is a good thing in its own way). The way people ended up working on ideas was after their self introduction and also after stating what they'd like to work on with what language they'd like to use for the same. I think the best part of this brainstorming session was that when anybody came up with an idea as to what they'd want to work on, ideas kept coming from other participants as to what else they can do to or how they can actually better go about better implementing the original idea. 

For instance, this happened with me. I wanted to contribute to Rails documentation and I was suggested why don't I try running a spell checker on the app to get a quick fix :). I was like yeah, why didn't I think about this... Hmm..

Learnings - 

I've just tried to pen down some of the learnings that I had as part of my participation at the event. I'd be glad if someone finds it useful.

a. For contributing to the Rails documentation, you don’t really have to run your tests. When we commit any documentation back to Rails, what we need to do is add [ci-skip] as part of the commit message.

b. The exact path where you’d want to contribute to the rails documentation would be - https://github.com/rails/rails/tree/master/guides/source

c. I always wanted to know why so many developers these days are using Mac till date. During Lunch I had a discussion with a couple of well experienced folks(Swanand, Nikhil) who were using Mac and they gave me great insights on how Mac can help speed up your development on a day to day basis in comparison to Linux based machines. Their inputs are summarized below to what best I can recall -
i. One of the most important pointers that I found during the discussion was that the defaults that Mac comes with wrt Rails development help you really speed up your work.
ii. They also mentioned that Apple comes with great hardware. The Mac book Air for instance comes with 8-9 hours on an average with a single charge.
iii. Also they recommended to get it from the US in case you’d like to save some money and in case you’re buying from India, buying from an Apple Store would mostly be your best bet to get the latest products.

d. Couple of useful links that can help you getting started when you want to contribute to rails -

e. I learnt about a new rake command- rake -A -T
i. rake -A: gives you the list of rake tasks which have a comment about what each one does.
ii. rake -A -T : Not only gives you the list of those rake tasks which mention what each task could do but it also lists down those rake tasks which don’t have a comment against them as to what they can do.

f. Generate Raw SQL using ActiveRecord::Base.connection.execute and extracting a hash out of the same


   
g. If you want to upgrade your Rails project, this link will be very project might be very helpful - http://railsdiff.org/

h. In case you want to contribute to an Open Source Project and don’t know where to get started the best thing you can do in such a case is -
i. Clone the project
ii. Grep for to do or fix me and that should get you started...

Some Pics taken at the OpenHack -






All in all, I don’t think I would have learnt this much if I wouldn’t have attended the event. I can definitely tell you that you’re being regular to such events/meetups really broadens your perspective around things and definitely helps you ending up learning more. 

Lastly, I would once again thank Vaidy and team at Multunus for being such good hosts.

Thank you.

Credits to Dheeraj Kumar for points e. and f. 

P.S.: Credits to all those inputs helped learn me new things. I’m sorry if I missed mentioning anybody’s names, I'm not able to recall all of their names at the moment. Feel free to correct me/comment below in case I missed something or in case you’d like to add more pointers with respect to the above article.