Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heroku fixes #80

Merged
merged 3 commits into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion blog/db/blog/articles/write_javascript_like_a_boss.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ If you have ever used a modern web application framework with an [asset pipeline
[CoffeeScript](http://coffeescript.org/) can be described as JavaScript for Ruby and Python developers. It brings several familiar features to JavaScript like splats, if and unless conditionals, semicolonless code (without resorting to [ASI](http://stackoverflow.com/questions/7651231/what-does-asi-mean)), and more. CoffeeScript also borrows from Python with its use of indentation.

Let's look at CoffeeScript in action. Here is an identical Widget in both CoffeeScript and JavaScript:

```coffeescript
# My super rad widget class
class Widget
Expand All @@ -35,6 +36,7 @@ class Widget
new Widget 'Rocket Shoes', 'Red', 49.99
```
An equivalent Widget in JavaScript:

```javascript
// My super rad widget class
var Widget,
Expand Down Expand Up @@ -95,4 +97,4 @@ For those who find themselves developing with bare bones HTML, CSS, and JavaScri

### What to use and when to use it

I mentioned earlier that usage depends on what a programmer prefers and the project they are working on. When building a Rails app I would use CoffeeScript whereas with ASP.NET I would lean toward TypeScript. Ultimately, take some time to learn CoffeeScript, TypeSctipt, and ES6 and see which ones best suites you.
I mentioned earlier that usage depends on what a programmer prefers and the project they are working on. When building a Rails app I would use CoffeeScript whereas with ASP.NET I would lean toward TypeScript. Ultimately, take some time to learn CoffeeScript, TypeSctipt, and ES6 and see which ones best suites you.
2 changes: 1 addition & 1 deletion config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

require "bundler/setup" # Set up gems listed in the Gemfile.
require "bootsnap/setup" # Speed up boot time by caching expensive operations.
# require "bootsnap/setup" # Speed up boot time by caching expensive operations.
4 changes: 4 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
require "active_support/core_ext/integer/time"

Rails.application.configure do
# Turbo::Rails Hack to stop loading parts of Rails I don't use
Rails.autoloaders.once.do_not_eager_load("#{Turbo::Engine.root}/app/channels")
Rails.autoloaders.once.do_not_eager_load("#{Turbo::Engine.root}/app/jobs")

# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
Expand Down
Loading