Wasp: Develop full-stack web apps faster.
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
The online whiteboard of Kristofer Palmvik
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
Rails 7.1 adds the ability to define the local variables a template can accept. This helps in precompiling templates during application startup rather than at runtime. To achieve this, we have to add a locals magic comment inside the partial.
I you ever want to talk about the relationship itself (and you probably will!), you should use has_many :through. I expect this will even help me outside of Rails, because many-to-many relationships are a common pattern in many projects.
I was writing a new Ruby gem recently, and being a strong proponent of a type checking step, I wanted to do right by the ecosystem so that anyone using it would get the full benefit of type checking against my gem’s API in their own projects, so I dug into the current state of the art to find out how that’d be done.
This guide covers performance and concurrency configuration for deploying your production Ruby on Rails application.
If the Ruby YAML implementation allocates and initializs the Ruby objects upon deserialization Since symbols in Ruby aren’t garbage collected, a hash can be crafted to crash the stack
A framework for creating reusable, testable & encapsulated view components, built to integrate seamlessly with Ruby on Rails.
How to take a Rails codebase and introduce OpenAPI documentation and contract tests, in a test-driven manner.
We’re gearing up to celebrate the 20th anniversary of Rails in style with the first beta release of Rails 7.1
An unresponsive service can be worse than a down one. It can tie up your entire system if not handled properly. All network requests should have a timeout.
Race conditions are hard to debug—especially when you don't know it's a race condition! This article looks at some common race conditions and the best solutions for handling each one.
Making sure each database row is unique, and tables contain no duplicates seems like a straightforward task in Rails. Active Record has a built-in validator that you can put on a model and call it a day. Until your application encounters high load and concurrent writes
Multithreaded Ruby programs may be consuming 2 to 4 times the amount of memory that they really need, due to fragmentation caused by per-thread memory arenas in malloc.
When your business logic can’t fit into either a model or a controller, that’s when service objects come in and let us separate every business action into its own Ruby object
It happened gradually so you may have missed it, but Twitter has grown up. It started as a struggling three-tierish Ruby on Rails website to become a beautifully service driven core that we actually go to now to see if other services are down. Quite a change.
Think JavaScript is your only option for the front-end? Think again. Hyperstack is a Ruby DSL, compiled by Opal, bundled by Webpack, powered by React.
At Discourse we have been experimenting recently with getting our whole stack running natively on Apple’s new M1 machines.
I could’ve chosen anything. I went with Rails. And you should, too. It still is the best framework for getting up and running and for continued iteration and development.
Blitz is a Rails-like framework for monolithic, full-stack React apps — built on Next.js
Cascadia Ruby Conf 2012 Therapeutic Refactoring by Katrina Owen
Component-based Rails (with the ‘a’ standing for architecture or application) is a code organization and management technique that breaks large applications into small, distinct parts. These parts are separate from and maintain explicit dependencies between each other. Components are implemented as gems and engines.
we have a way of communicating with all third-party APIs that we use which is completely separated from any persistence or application logic.
This article explains what secure headers are and how to implement these headers in Rails, Django, Express.js, Go, Nginx, and Apache.
Imagine a world with no foreign keys.
I made this useful table with all the cases
Sails makes it easy to build custom, enterprise-grade Node.js apps. It is designed to emulate the familiar MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with a scalable, service-oriented architecture. It’s especially good for building chat, realtime dashboards, or multiplayer games; but you can use it for any web application project - top to bottom.
The Angular app is embedded within a rendered Rails view. This choice raised a practical question: how do we expose the Rails data (instance variables, params, etc.) to the Angular app’s controller(s)?
After six months of polish, four betas, and two release candidates, Rails 5.0 is finally done!
Solving the second hard problem in Computer Science
This post explores potential security issues in Rails 3 that are fixed in Rails 4, as well as some that are still risky. I hope this post will help you secure your own apps, as well as inspire changes to Rails itself.
Ruby has never been a more productive environment to work in, and as a result it’s never been at greater risk of slipping into irrelevancy. These are important discussions to have as the dust continues to settle for the tools Rubyists use to do their job.
Your methods should be consistent about what they return. If you usually return an Array, do what you need to do to always return an Array. If you usually return a User, but sometimes return nil, you could create a Null User object and return that instead of nil.
I think using the decorator pattern is a really neat and simple way of implementing Presenters for Rails models
Whenever I have the inclination that I want to add a method on a controller that’s not part of the default five or whatever REST actions that we have by default, make a new controller! And just call it that.
Lets you build beautiful interactive user interfaces using the same Ruby language running your server side code. React.rb replaces JS code, JSX, HTML, templating languages, and complex frameworks with one simple system.
Imagine doing Ruby on Rails projects without Bundler? Oh, the horror! Well that’s what copying tidbits of JavaScript into /vendor/assets/javascripts is like!
You can easily put some React in your rails app with react-rails or go with a more complete setup with Flux inside of your Rails app or separated out.
Get ready for our first ever Pop-Up Job Fair! This is an event for startups hiring tech talent for iOS / Android, Backend, C/C++, Database, Data, DevOps, Full Stack, Go, Hardware, HTML/CSS, Java, JS Frontend, JS Node, Mobile, .NET, PHP, Python, QA/Testing, Ruby, Scala, Security, UX Design...and more.
In 2005, Ruby on Rails was a breath of fresh air, and brought a revolution in how we build applications on the web. It had cutting edge ideas, and real solutions to the problems people were facing at the time. That was 8 years ago. If rails were to launch in todays world, would anyone even notice?
I think subconsciously more and more people are figuring out something is wrong or lacking with Ruby development, but they are lashing out at the wrong things. Oh, your Ruby app is a steaming pile of shit? It’s because you weren’t diligent enough writing tests or you weren’t following TDD principles closely enough.
Unfortunately I cannot come close to recommending Joomla. Looking through the core code of the system is an exercise in frustration at best.
The frameworks that are left now are Ruby on Rails, for php CakePHP, Fat-Free, Nette, Symfony and Zend, for Java Struts2, GWT, Play! ZK, for GoLang beego and Revel.
Our endless bickering over the merits of different languages and paradigms isn’t all that productive, nor is it very interesting. You’re not a Ruby/C#/Java/Elixir developer, you’re a goddamn problem solver. Remove the programming language from your LinkedIn/Twitter bio, that’s not who you are.
Komodo Edit is a free, open source editor from dynamic language experts. Whatever Your Language Komodo Edit supports PHP, Python, Ruby, Perl and Tcl, plus JavaScript, CSS, HTML and template languages like RHTML, Template-Toolkit, HTML-Smarty and Django.
# Leading Ruby on Rails development environment # Integrated shell console, rich code completion for Rails # Integrated debugger support # Ruby profiler available as Pro option