<commit_before># PurposefulPhp

[![Join the chat at https://gitter.im/still-dreaming-1/PurposefulPhp](https://badges.gitter.im/still-dreaming-1/PurposefulPhp.svg)](https://gitter.im/still-dreaming-1/PurposefulPhp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Familiar, high level programming.<commit_msg>project description<commit_after># PurposefulPhp

[![Join the chat at https://gitter.im/still-dreaming-1/PurposefulPhp](https://badges.gitter.im/still-dreaming-1/PurposefulPhp.svg)](https://gitter.im/still-dreaming-1/PurposefulPhp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Familiar, high level programming.

Watch me code it: https://www.liveedu.tv/still_dreaming_1/ (Don't actually do this, it's like watching paint dry. No really stop! Your watching right now aren't you... Well, don't say I didn't warn you.)

Become a patron: https://www.patreon.com/user?u=7627857 (I will make your wildest programming dreams come true! (not really (ok maybe some of them)))

Warning, PurposefulPhp is still in the very early stages. If you look at the code, you will see there is really nothing too it yet. I haven't even tagged any pre 1.0 releases yet. But if you watch some of my recent videos that show some code not yet in this repository, you can see it is on its' way to becoming something interesting.

Here are some ways  to describe PurposefulPhp:

* A way to program via time travel paradoxes (the effect triggers the cause, which triggers the effect).
* Write what you want the code to do (not how), and let the computer figure out how.
* A contract fulfiller
* Contracts as code (instead of contracts plus code).
* A programming paradigm that is perhaps a flavor of declarative programming, or at least has some things in common with it. Structured programming took away gotos. Functional programming took away assignments. Object oriented programming took away function references, or something like that. Purposeful programming takes away explicityly writing implementations and tests.

PurposefulPhp will provide a way to program on a higher level. Writing code with it will feel familiar to people who are already familiar with writing object oriented code in PHP. As much as it might sound like it, it is not used to write machine learning or AI programs, but I guess you could do that with it if you want. It is a way of expressing classes in terms of contracts.

Once it is working, here some possibilities I think it would eventually open up, which basically amount to different ways the computer will keep doing work for you, even while you sleep.

* The computer can work around the clock to invent and run new ways of testing your code, making your code more and more tested.
* The computer can constantly work on improving the efficiency of the algorithms that would be used to fulffill the contracts in your code, making your code more and more optimized over time.
{'fraction_non_alphanumeric': 0.06413301662707839, 'fraction_numerical': 0.005429250084832033, 'mean_word_length': 4.8376237623762375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4380425', 'n_tokens_mistral': 834, 'n_tokens_neox': 779, 'n_words': 400}