Skip to content

Instantly share code, notes, and snippets.

View uyab's full-sized avatar
👽
Write code for humans

Bayu Hendra Winata uyab

👽
Write code for humans
View GitHub Profile
@tistre
tistre / asset-ingestion.bpmn
Last active September 28, 2021 18:15
Simple Camunda example: Handling external tasks with PHP
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_0w41w6f" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.16.2">
<bpmn:process id="asset-ingestion" name="Asset Ingestion" isExecutable="true">
<bpmn:startEvent id="StartEvent_1" name="Asset to be ingested">
<bpmn:outgoing>SequenceFlow_16kf6eb</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_16kf6eb" sourceRef="StartEvent_1" targetRef="extract-metadata" />
<bpmn:serviceTask id="extract-metadata" name="Extract metadata" camunda:type="external" camunda:topic="asset-extract-metadata">
<bpmn:incoming>SequenceFlow_16kf6eb</bpmn:incoming>
@marcin-saja
marcin-saja / Framework Code Complexity Comparison Table
Last active March 30, 2021 06:54
Framework Code Complexity Comparison Table
+-----------+----------+---------+-------------+------------+-------------------+
| Framework | Lines | Longest | Average | Maximum | Percentage of |
| name | of | method | method | method | methods that are |
| | code | | complexity | complexity | non-static |
+-----------+----------+---------+-------------+------------+-------------------+
| Laravel | 54,398 | 13 | 1.62 | 17 | 94.81% |
| Symfony | 118,636 | 136 | 2.72 | 155 | 97.09% |
| Zend | 55,904 | 73 | 2.76 | 53 | 93.55% |
| Cake | 62,860 | 56 | 3.30 | 75 | 89.87% |
| Slim | 4,127 | 26 | 2.40 | 13 | 96.58% |