Search

Items tagged with: yaml


Hot take: I love #Symfony, it's really the best #PHP framework out there (at least, the most powerful), but this obsession with #YAML is just… something. When I read workflows, even sample ones, my brain issues a warning about possible stack overflow 😂
A sample from a blog post about enums in workflows in 7.4:
```
# config/packages/workflow.yaml
framework:
workflows:
blog_publishing:
type: 'workflow'
marking_store:
type: 'method'
property: 'status'
supports:
- App\Entity\BlogPost
initial_marking: !php/enum App\Enumeration\BlogPostStatus::Draft
places: !php/enum App\Enumeration\BlogPostStatus
transitions:
to_review:
from: !php/enum App\Enumeration\BlogPostStatus::Draft
to: !php/enum App\Enumeration\BlogPostStatus::Reviewed
publish:
from: !php/enum App\Enumeration\BlogPostStatus::Reviewed
to: !php/enum App\Enumeration\BlogPostStatus::Published
reject:
from: !php/enum App\Enumeration\BlogPostStatus::Reviewed
to: !php/enum App\Enumeration\BlogPostStatus::Rejected
```
Maybe it's just me, but to me it's extremely hard to read and debug.


Choosing #yaml is a sign of poor judgment and always will be.
#yaml



“Defaults files” are a convenient tool to store, group, and combine related command line options.
E.g., instead of typing

pandoc --pdf-engine=xelatex -V csquotes

one could create a file `pdf.yaml` with

pdf-engine: xelatex
variables: {csquotes: true}

and use it with

pandoc -d pdf.yaml

pandoc.org/MANUAL#defaults-fil…

#pandoc #cli #yaml