Profile

Cover photo
arun vydianathan
Attended College of Engineering, Trivandrum
Lives in Hyderabad
196 followers|59,006 views
AboutPostsPhotosYouTubeReviews

Stream

arun vydianathan

Shared publicly  - 
1
Add a comment...

arun vydianathan

Shared publicly  - 
 
Post written by Leo Babauta. I recently read a travel tip from someone who reminds himself that “killing time is a sin”, and so makes the most use of every bit of downtime, even on an airplane: “read ...
1
Add a comment...
In his circles
547 people
Have him in circles
196 people
suvendu mohapatra's profile photo
Amit Parekh's profile photo
Vinayak Desai's profile photo
Ishwar Moorthy's profile photo
Avijit Mukherjee's profile photo
Ratnadeep Deshmane's profile photo
Hugo Martinez A's profile photo
Naresh Vajawat's profile photo
Saraja panda's profile photo

Communities

arun vydianathan

Shared publicly  - 
 
Hexagonal Architecture is generating a lot of steam in Rails community especially with the thrust for writing fast tests and getting quick feedback. Here I want to share my small experience experimenting with hexagonal architecture in a Rails Controller based on this talk. In the begining a CustomersController had a create method which looked like this class CustomersController def create @customer = Customer . new ( params [ :customer ] ) if @cu...
1
Add a comment...

arun vydianathan

Shared publicly  - 
 
Rails provide two methods of callbacks in Active Record Observers Callbacks Observers Observers are real bad to use as it is difficult to read the code and debug it. I stumbled on this nice Stack Overflow link on why observers really suck. To sum up from the stack overflow post Observers Makes it hard to write unit tests Require State Order Assumption Problems Leads to Poor Design Anyways good news is that from Rails 4 onwards Observers wil...
1
arun vydianathan's profile photoAbishek Anand's profile photo
4 comments
 
yes
Add a comment...

arun vydianathan

Shared publicly  - 
 
N+1 Queries are bad, they increase the hits on the db, network round trip and database load. N+1 queries happens when you are fetching data from 2 tables having 1:N or 1:1 relation between them. N+1 means you hit the master table in database 1 time and child table N Times where N is the number of records being retrieved from Master Table. Consider an example where you have a Journals & Postings Table. Each Journal Entry can have many Postings. We...
1
Sriram Raghuram's profile photo
 
Enna da aachu unaku??
Add a comment...

arun vydianathan

Shared publicly  - 
 
postgresql is awesome
tl;dr When you have an ActiveRecord tree structure, using the WITH syntax for recursive SQL can provide large performance boons, especially when a tree get several levels deep. In a previous post, I outlined a Cat Picture store application. As our store grows, more and more categories have to be created, and we end up with a tree of categories. How can we create a homepage that includes all cat pictures for a given category and all of its subcat...
1
Abishek Anand's profile photo
 
fail
Add a comment...

arun vydianathan

Shared publicly  - 
1
Abishek Anand's profile photo
 
fail
Add a comment...

arun vydianathan

Shared publicly  - 
 
Following Object Oriented Design Principles have really helped me designing my code: S ingle Responsibility Principle O pen Closed Principle L iskov Substitution Principle or Design by Contract I nterface Segregation Principle D ependency InversionPrinciple O nce and O nly O nce DRY – Don’t Repeat yourself Tell Don’t Ask The Law of Demeter Triangulate - When you are not sure what the correct abstraction should be, instead of pulling out an abstr...
1
1
arun vydianathan's profile photoKrishna Venkataraman's profile photo
3 comments
 
i am regular consumer of Rogues they are awesome!
Add a comment...
People
In his circles
547 people
Have him in circles
196 people
suvendu mohapatra's profile photo
Amit Parekh's profile photo
Vinayak Desai's profile photo
Ishwar Moorthy's profile photo
Avijit Mukherjee's profile photo
Ratnadeep Deshmane's profile photo
Hugo Martinez A's profile photo
Naresh Vajawat's profile photo
Saraja panda's profile photo
Communities
Education
  • College of Engineering, Trivandrum
Basic Information
Gender
Male
Story
Introduction
JAPAN - Just Another Programmer and Nerd
Work
Occupation
Programmer, Blogger, Photography
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Hyderabad
Previously
Trivandrum - Pune - Chennai
First time I tried Car Rental in US. This was an hassle free experience. Got a brand new car with that new car smell.
Public - 6 months ago
reviewed 6 months ago
1 review
Map
Map
Map