Page 21 of 127 (2525 total posts)

June 2023

25-06-2023
Rails design patterns

Rails design patterns

Source: rubyhero.dev

This article is a high-level overview of design patterns that are commonly used in Ruby on Rails applications. I also mention the cons and pros.

Notes:

Fantastic overview of the most common rails patterns. I think it’s pretty up to date and comprehensive.

Tags: rails how-to explainer interactor presenter pattern
20-06-2023
Copilot Leaks: Code I Should Not Have Seen

Copilot Leaks: Code I Should Not Have Seen

Source: link.medium.com

The number of leaked information from Copilot were surprising. I’ll show you what it his and how to prevent it your code from leaking.

Notes:

This is not gonna end well. LLMs learn from public repositories. Those repos will get smart that OpenAI is benefitting from all their work and stop allowing the drawling. See StackOverflow and Reddit. Will the well go dry?

Tags: copilot secrets trade-secrets LLM
18-06-2023
Blocks, Procs, and Lambdas: A Beginner's Guide to Closures and Anonymous Functions in Ruby

Blocks, Procs, and Lambdas: A Beginner's Guide to Closures and Anonymous Functions in Ruby

Source: akshaykhot.com

Closures and anonymous functions are very useful concepts, especially in functional programming. Ruby makes working with them a pleasure via its flavors like blocks, procs, and lambdas. This post provides an in-depth tutorial and shows the subtle differences between them.

Notes:

This excellent article does a great job at explaining the Ruby features block, lambda and proc.

Tags: ruby explainer lambda functions proc block
16-06-2023
Rewriting the Ruby parser

Rewriting the Ruby parser

Source: railsatscale.com

At Shopify, we have spent the last year writing a new Ruby parser, which we’ve called YARP (Yet Another Ruby Parser). As of the date of this post, YARP can parse a semantically equivalent syntax tree to Ruby 3.3 on every Ruby file in Shopify’s main codebase, GitHub’s main codebase, CRuby, and the 100 most popular gems downloaded from rubygems.org. We recently got approval to merge this work into CRuby, and are very excited to share our work with the community. This post will take you through the motivations behind this work, the way it was developed, and the path forward.

Notes:

Interesting in general. And from the perspective of parser engineering and trade offs.

Tags: ruby parser explainer rails
16-06-2023
Akshay's Blog

Akshay's Blog

Source: akshaykhot.com

I am a Ruby on Rails developer based in Victoria, BC. This blog is my attempt to spread the joy of building web applications in Ruby on Rails with the world.

Notes:

Another great resource for learning how to use stimulus and hotwired in Ruby on Rails.

Tags: rails ruby hotwire stimulus how-to
16-06-2023
File: Advanced I/O with Polyphony — Documentation for polyphony (1.1.1)

File: Advanced I/O with Polyphony — Documentation for polyphony (1.1.1)

Source: rubydoc.info

File: Advanced I/O with Polyphony — Documentation for polyphony (1.1.1) URL: https://www.rubydoc.info/gems/polyphony/file/docs/advanced-io.md Type: link Domain: rubydoc.info Notes: Filed under things I didn’t know about IO with Ruby. Still love that language! This gem takes advantage of Unix “splices” to speed up IO when reading and writing large amounts of data.

Notes:

Filed under things I didn’t know about IO with Ruby. Still love that language! This gem takes advantage of Unix “splices” to speed up IO when reading and writing large amounts of data.

Tags: ruby gem unix slice io performance splice
15-06-2023
Why did the #TwitterMigration fail?

Why did the #TwitterMigration fail?

Source: blog.bloonface.com

I’ve been using fediverse stuff (Mastodon and, most recently, Calckey – I’m just going to use “Mastodon” as shorthand here, purists can bite me) for over a year now, a…

Notes:

An excellent dissertation on mastodon, the fediverse, and trade offs, dangers, features and bugs. Very thoughtful and insightful.

Tags: mastodon fediverse federated scalability twitter explainer
14-06-2023
Nova

Nova

Source: nova.app

The beautiful, fast, flexible, native Mac code editor from Panic.

Notes:

Looks interesting! Will anything ever lure me away from vscode? Yes: I’m old enough to know that eventually every programming habit gets superseded by a better one.

Tags: coding editor vscode mac macos
14-06-2023
Community by the Numbers, Part One: Group Thresholds

Community by the Numbers, Part One: Group Thresholds

Source: lifewithalacrity.com

Community by the Numbers, Part One: Group Thresholds URL: http://www.lifewithalacrity.com/2008/09/group-threshold.html Type: link Domain: lifewithalacrity.com Notes: We often think of communities as organic creatures, which come into existence and grow on their own. However, the truth is they are fragile blossoms. Highlights: - {'text': 'We often think of communities as organic creatures, which come into existence and grow on their own. However, the truth is they are fragile blossoms.', 'note': '', 'color': 'yellow', 'created': '2023-06-14T20:26:55.281Z', 'lastUpdate': '2023-06-14T20:27:30.983Z', 'creatorRef': 624427, '_id': '648a22b2c3026acc91faf7ea'}

Notes:

We often think of communities as organic creatures, which come into existence and grow on their own. However, the truth is they are fragile blossoms.

Tags: teams group-size dunbar
11-06-2023
Opinion | How Shoddy Data Becomes Sensational Research

Opinion | How Shoddy Data Becomes Sensational Research

Source: chronicle.com

Academics are addicted to p-hacking, data torturing, and other statistical sins. We must break these habits.

Notes:

As early as 2005, alarm bells were going off over unrigorous social-science research — that was the year John P.A. Ioannidis, a Stanford professor of medicine, published “Why Most Published Research Findings Are False” in PLOS Medicine.

Tags: statistics replication replication-crisis p-hacking science
08-06-2023
Ruby 3.2 runtime now available in AWS Lambda | Amazon Web Services

Ruby 3.2 runtime now available in AWS Lambda | Amazon Web Services

Source: aws.amazon.com

Get started building with Ruby 3.2 today by making necessary changes for compatibility with Ruby 3.2, and specifying a runtime parameter value of ruby3.2 when creating or updating your Lambda functions.

Notes:

Really interesting article about now to use Ruby with AWS Lambda.in addition a very useful review of "modern" Ruby features.

Tags: ruby aws aws-lambda advanced rails
07-06-2023
Alternate Python REPL - bpython

Alternate Python REPL - bpython

Source: bpython-interpreter.org

Alternate Python REPL - bpython URL: https://bpython-interpreter.org/ Type: link Domain: bpython-interpreter.org Notes: I had not come across this alternate python repl. It looks interesting and I need to investigate it further. It has some very cool features.

Notes:

I had not come across this alternate python repl. It looks interesting and I need to investigate it further. It has some very cool features.

Tags: repl python cool-tools
06-06-2023
Git is simply too hard

Git is simply too hard

Source: changelog.com

Git is actually sooo hard. Not just to learn, but also to use consistently. And I say that as a person who used it for probably over ten years. Here’s my thoughts on the matter.

Notes:

Great comments which I agree with!

Tags: git opinion tips how-to

May 2023