Skip to content

Instantly share code, notes, and snippets.

View furlan's full-sized avatar

Flávio Furlan furlan

View GitHub Profile
@furlan
furlan / GUIDE.md
Created December 15, 2025 18:21 — forked from marckohlbrugge/GUIDE.md

The Unofficial 37signals/DHH Rails Style Guide

About This Document

This style guide was generated by Claude Code through deep analysis of the Fizzy codebase - 37signals' open-source project management tool.

Why Fizzy matters: While 37signals has long advocated for "vanilla Rails" and opinionated software design, their production codebases (Basecamp, HEY, etc.) have historically been closed source. Fizzy changes that. For the first time, developers can study a real 37signals/DHH-style Rails application - not just blog posts and conference talks, but actual production code with all its patterns, trade-offs, and deliberate omissions.

How this was created: Claude Code analyzed the entire codebase - routes, controllers, models, concerns, views, JavaScript, CSS, tests, and configuration. The goal was to extract not just what patterns are used, but why - inferring philosophy from implementation choices.

@furlan
furlan / z_rich_model.ABAP
Created September 24, 2016 17:54
Modelo Rico em ABAP
REPORT z_rich_model.
CLASS order_item DEFINITION DEFERRED.
TYPES: order_item_table TYPE TABLE OF REF TO order_item WITH NON-UNIQUE DEFAULT KEY.
CLASS order_item DEFINITION.
PUBLIC SECTION.
METHODS get_price RETURNING VALUE(item_price) TYPE i.
METHODS set_price IMPORTING item_price TYPE i.
@furlan
furlan / z_anemic_model.ABAP
Created September 24, 2016 17:53
Modelo Anêmico em ABAP
REPORT z_anemic_model.
CLASS order_item DEFINITION DEFERRED.
TYPES: order_item_table TYPE TABLE OF REF TO order_item WITH NON-UNIQUE DEFAULT KEY.
CLASS order DEFINITION.
PUBLIC SECTION.
METHODS get_total RETURNING VALUE(order_total) TYPE i.
METHODS set_total IMPORTING order_total TYPE i.
@furlan
furlan / ZPOC_HTTP_CLIENT.abap
Last active July 19, 2025 09:59
HTTP Client
*&---------------------------------------------------------------------*
*& Report ZPOC_HTTP_CLIENT
*&
*&---------------------------------------------------------------------*
*& Based on this SCN post:
*& http://scn.sap.com/thread/3437990
*&---------------------------------------------------------------------*
Report ZPOC_HTTP_CLIENT.
*PARAMETERS p_url type string LOWER CASE DEFAULT 'https://github.com/furlan/reploy.git'.
@furlan
furlan / gist:3151267
Created July 20, 2012 15:14
Module FILL_SECTION_1
*&---------------------------------------------------------------------*
*& Module FILL_SECTION_1 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE fill_section_1 OUTPUT.
SELECT * FROM scarr INTO TABLE it_scarr.
TRY.
@furlan
furlan / gist:3151069
Created July 20, 2012 14:40
Splitter Container
* Create main Container.
CREATE OBJECT container
EXPORTING
container_name = 'CONTAINER1'.
* Horizontal split
CREATE OBJECT splitter
EXPORTING
parent = container
orientation = cl_gui_easy_splitter_container=>orientation_horizontal
@furlan
furlan / gist:2983347
Created June 24, 2012 14:07
ZABAP101_RECURSION
*&---------------------------------------------------------------------*
*& Report ZABAP101_RECURSION
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zabap101_recursion.
@furlan
furlan / gist:2983147
Created June 24, 2012 12:51
ZABAP101_RECURSION - with error
*&---------------------------------------------------------------------*
*& Report ZABAP101_RECURSION
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zabap101_recursion.
@furlan
furlan / gist:2872468
Last active August 24, 2016 20:10
ZABAP101_FACTORY_PATTERN
*&---------------------------------------------------------------------*
*& Report ZABAP101_FACTORY_PATTERN
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zabap101_factory_pattern.
@furlan
furlan / gist:2872323
Created June 5, 2012 03:04
INTERFACE ZIF_BIF_BDC - Code Coaching sample
*----------------------------------------------------------------------*
* INTERFACE ZIF_BIF_BDC
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
INTERFACE zif_bif_bdc.
*@ jack:task
* Create methods signatures, for example:
* set_transaction
* IMPORTING