Two months ago, as Apirise, we attended APIdays in Berlin. APIdays is a conference held in cities like Barcelona, Berlin, Moscow, Paris, San Francisco and Tokyo. The range of topics covered is really wide and include almost everything about APIs. In APIdays you may meet with vendors, developers, companies like Apigee, Facebook, Heroku, Intel, Netflix, Salesforce, Soundcloud, Stripe, Twitter, Zappier and people like Kin Lane or Mike Amundsen to mention only a few… you got the idea.
There is a big trend of API awareness and creating thriving communities that is being supplemented by regional efforts like the NordicAPIs. This creates a parallel networking effect that works in the background. For example, we met with people from Greece that we didn’t know before, but they participated in APIdays Barcelona or older APIdays conferences.
We spoke with them and we saw that there is common ground and will to create a similar community in Greece.
For this reason we created the API Athens Meetup. We start small and expect to «hear» the vibe of the local community. We want to make it a place where we all learn, exchange real life experience, have conversations with startups, companies and developers and hear the challenges they face in getting the word out about APIs in their context of work.
On June 25th we had our kickoff meetup.
Today I was doing some Rails training on Treehouse. As I was working on my demo app I got the message:
`attr_accessible` is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add `protected_attributes` to your Gemfile to use old one.
So I did some googling and here is one of the posts (quick & dirty) that I liked more about this new mode of operation.
Today I was doing some Ruby and reading blocks. Along came Yield… WTF???? Did some research then…
Ruby Code blocks are definitely one of the coolest features of Ruby and are chunks of code between braces or between do- end that you can associate with method invocations, almost as if they were parameters.
In ruby, methods may receive code block.
A Ruby block is a way of grouping statements, and may appear only in the source adjacent to a method call; the block is written starting on the same line as the method call’s last parameter (or the closing parenthesis of the parameter list).
The code in the block is not executed at the time it is encountered. Instead, Ruby remembers the context in which the block appears (the local variables, the current object, and so on) and then enters the method.
The Ruby standard is to use braces for single-line blocks and do- end for multi-line blocks. When a method expects a block, it invokes it by calling the
Let’s look at an example of the yield statement: