Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maleksandar/pure-framework
Master Thesis work
https://github.com/maleksandar/pure-framework
functional-programming spa
Last synced: 8 days ago
JSON representation
Master Thesis work
- Host: GitHub
- URL: https://github.com/maleksandar/pure-framework
- Owner: maleksandar
- License: mit
- Created: 2020-05-13T18:35:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:27:51.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T05:41:22.760Z (over 1 year ago)
- Topics: functional-programming, spa
- Language: TypeScript
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Pure-framework
Pure-framework is a SPA frontend framework that uses TypeScript functions instead of HTML or JSX for view layer.## Why TypeScript?
JSX and Angular or Vue template languages are great because of their similarity with
HTML, but that brings all the issues of HTML with it. Pure-framework, on the other hand, doesn't use HTML at all! Only TypeScript functions!With TypeScript you get better syntax highlighting, better refactoring tools, and overall, better experiance coding.
### Component Example
Template in pure-framework:
```typescript
div({ class: ’app-root’}, [
span(‘Hello ${this.state.name}! Welcome!‘)
]);
```Equivalent template in Angular:
```HTML
Hello {{state.name}}! Welcome!
```## Master's Thesis
This framework is developed as a part of a Master's thesis on Mathematical Faculty at the University of Belgrade.
Pure-framework is a frontend framework designed around concepts of functional programming and custom Redux-like state management system.
The basic principles that this framework leverages are:
- Pure functions
- Memoization
- Observables (RxJs)
- Type safety (TypeScript)Check out an example of the app writen using *pure-framework* on this [repo](https://github.com/maleksandar/pure-framework-todo-app), or the [presentation](https://docs.google.com/presentation/d/e/2PACX-1vTARP-LlG3lQDed_w9IeUhgPtGn_iOP4itjJ7AlhTIlSRfcdnxYUN_ZWkUrtk5SdUfQjK5HkzK4ibhn/pub?start=false&loop=false&delayms=3000) about pure-framework (Serbian).
## License
MIT LicenseCopyright (c) 2021 Aleksandar Milosavljević
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.