32 Matching Annotations
- May 2024
-
github.com github.com
-
# This is manual way to describe complex parameters parameter :one_level_array, type: :array, items: {type: :string, enum: ['string1', 'string2']}, default: ['string1'] parameter :two_level_array, type: :array, items: {type: :array, items: {type: :string}} let(:one_level_array) { ['string1', 'string2'] } let(:two_level_array) { [['123', '234'], ['111']] }
-
- Mar 2023
-
doorkeeper.gitbook.io doorkeeper.gitbook.io
- Dec 2022
-
www.jianshu.com www.jianshu.com
-
Querydsl无法生成实体对应的查询Q类记录
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何评价王垠《聊聊 DSL》?
Tags
Annotators
URL
-
- Aug 2022
-
-
Summarization of Methods for Smart Contract Vulnerability Regulation
Great reference table for SC vulnerability regulation
-
- Mar 2022
-
github.com github.com
-
Capybara can get us part of the way there. It allows us to work with an API rather than manipulating the HTML directly, but what it provides isn't an application specific API. It gives us low-level API methods like find, fill_in, and click_button, but it doesn't provide us with high-level methods to do things like "sign in to the app" or "click the Dashboard item in the navigation bar".
-
-
-
# Optionally, you can write a description for the migration, which you can use for # documentation and changelogs. describe 'The _id suffix has been removed from the author property in the Articles API.'
-
apply_to '/api/v1/articles/:id'
-
- Aug 2021
-
www.martinfowler.com www.martinfowler.com
-
When people talk about internal DSLs I see two styles: internal minilanguages and language enhancements.
-
An internal DSL (often called an Embedded DSL) is a DomainSpecificLanguage that is written inside an existing host language. It's a common way of thinking in a number of programming language communities - particularly the Lisp community. It's now gaining a lot of attention as DSLs are a common way of thinking in the rapidly growing Ruby community.
-
- Mar 2021
-
github.com github.com
Tags
Annotators
URL
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
In combination with [Track()], the :magnetic_to option allows for a neat way to spawn custom tracks outside of the conventional Railway or FastTrack schema.
Instead of
magnetic_to:
, I propose wrapping the steps that are on a separate track in something like...DefTrack do :paypal do step :charge_paypal end
or
paypal_track = RailwayTrack do :paypal do step :charge_paypal end
so we can reference it from outputs, like we can with tracks created with
Path
helper. -
Output() in combination with Path() allow very simple modelling for alternive routes.
-
In both filters, you’re able to rename and coerce variables. This gives you a bit more control than the simpler DSL.
-
-
www.morozov.is www.morozov.is
-
The DSL has a weaker control over the program’s flow — we can’t have conditions unless we add a special step
-
-
github.com github.com
-
Operations define the flow of their logic using the DSL and implement the particular steps with pure Ruby.
Tags
Annotators
URL
-
-
-
DSLs can be problematic for the user since the user has to manage state (e.g. am I supposed to call valid? first or update_attributes?). This is exactly why the #validate is the only method to change state in Reform.
-
- Dec 2020
-
github.com github.com
-
Jbuilder gives you a simple DSL for declaring JSON structures that beats manipulating giant hash structures. This is particularly helpful when the generation process is fraught with conditionals and loops.
-
- Nov 2020
-
www.reddit.com www.reddit.com
-
I'm thinking of creating something similar to a utility-first CSS framework like Tailwind, here's how it could look like:StyledText( style: [selfAlignRight, padding(8), fontSize(20), fontBold], text: 'hello' )
-
- Oct 2020
-
facebook.github.io facebook.github.io
-
Template literals work well for long embedded DSLs. Unfortunately the syntax noise is substantial when you exit in and out of embedded arbitrary ECMAScript expressions with identifiers in scope.
-
ECMAScript 6th Edition (ECMA-262) introduces template literals which are intended to be used for embedding DSL in ECMAScript.
-
-
github.com github.com
-
Why struggle with custom Syntax DSLs when you can use one so widely supported?
-
- Apr 2020
-
www.codementor.io www.codementor.io
-
no need to learn a new framework it's just Ruby's syntax + new methods and actually that's one of the reasons Google invented a simple and stupid language called Golang instead of a magical one to prevent developers from doing magic and just shipping features instead of playing with DSLs.
-
- Jun 2018
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
- Jul 2017
- Jun 2017
-
victor.kropp.name victor.kropp.name
-
blog.jetbrains.com blog.jetbrains.com
-
Yes, we can do builders like Groovy, but better..
-
-
docs.groovy-lang.org docs.groovy-lang.org
-
-
internal dsl in java 8 in three ways:
- by Method Chaining
- by Nested Functions
- by Lambda Expression
Tags
Annotators
URL
-
-
Tags
Annotators
URL
-