<commit_before>---
extends: _layouts.post
section: content
title: Ruby for PHP Developers
# date: 2020-09-02
categories: []
cover_image: /assets/img/ruby-for-php-developers.jpg
published: false
---
- Inspired by [React for Vue Developers](https://sebastiandedeyne.com/react-for-vue-developers/)
- This post assumes you are comfortable with programming concepts in general (especially with PHP) and is only intended to show some of the syntax differences between the 2 languages.
- The examples below are not the only options I know Ruby has some terser options and I am sure more options since I have only scratched the surface primarily using Ruby with Jekyll.
- Please let me know if anything is incorrect or could be improved.
<commit_msg>Update ruby-for-php-developers.md<commit_after>---
extends: _layouts.post
section: content
title: Ruby for PHP Developers
categories: []
cover_image: /assets/img/ruby-for-php-developers.jpg
published: false
---
- Inspired by [React for Vue Developers](https://sebastiandedeyne.com/react-for-vue-developers/)
- This post assumes you are comfortable with programming concepts in general (especially with PHP) and is only intended to show some of the syntax differences between the 2 languages.
- The examples below are not the only options I know Ruby has some terser options and I am sure more options since I have only scratched the surface primarily using Ruby with Jekyll.
- Please let me know if anything is incorrect or could be improved.

{'fraction_non_alphanumeric': 0.06868686868686869, 'fraction_numerical': 0.006734006734006734, 'mean_word_length': 4.483394833948339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4656347', 'n_tokens_mistral': 401, 'n_tokens_neox': 387, 'n_words': 193}