Comments (11)
Added "Abstract types" as a category a minute ago, together with an Email type example.
from code-cookbook.
Hello - I would like to join this project and help out writing examples. Is there a roadmap of snippets that needed to be written? Thinking of what tripped me up were how Value worked - esp. the ._ acccess. Other beginner stuff I could add - declaring variables, setters, getters.
from code-cookbook.
Hi! Great you want to help. No there is not a roadmap, but the goal is to create a practical guide to lead people into Haxe. I find people on the forum or stackoverflow struggle with how-to-do stuff. Thats one of the reasons of this cookbook.
My goal is to filter relevant questions and make snippets out of that. So if youre looking for inspiration check what people are searching for yourself too.
For example, many think macros are extreme hard or magical. This thought exist because there isnt much known or written about it. I hope to have a decent amount of macro samples to erase that thought and demonstrate the power.
For the beginner section I think we want to write about arrays, core types, lambdas, regular expressions, json, xml, enums/adt, typedefs, math, conditional compilation, pattern matching, etc etc. Haha all the great stuff!
from code-cookbook.
ok - thanks - I put an entry in about variables earlier that got some feedback- so I'll just keep plugging away at that- then maybe I'll start on some of the things above (arrays, base types etc)
from code-cookbook.
Maybe there should be a separate category called "Compiler"?
I will create a PR for a recepie called "Compiling libraries without main class" - that one could fit there.
Also, the "Conditional compilation" could be moved there.
Coming explanations/details about of different compiler targets, compiler flags etc could fit there...
What do you think?
from code-cookbook.
I rather call it "compilation"
from code-cookbook.
I am starting to feel uncorfortable with the "other" category, it has many stuff. Should we create new ones?
from code-cookbook.
Yes. Maybe "Data structures" for the iterator and arrays stuff...?
Sooner or later, there will be a need for differentiation on targets. This might however lead to the need for subcategories... Javascript is very hot these days, and it has its own paradigms and workflows, so it should be easy to find the js stuff!
Categories>Subcategories - what do you think?
from code-cookbook.
I agree that the 'Other' category should be split into numerous different ones. It's kind of difficult to determine what sort of categories would be suitable candidates, really.
Target-specific categories seem like a step in the right direction. It would be nice to provide cookbook readers with an introduction to writing code for supported languages. This something that comes up every so often on IRC and should be addressed.
People also tend to ask about data structures: if hash tables exist in Haxe, or how someone can use a structure as a key in a map if Haxe passes them by reference instead of value. A couple of recipes in this category would clean up any misconceptions fairly quickly.
from code-cookbook.
https://github.com/cambiata/code-cookbook-ideas/wiki
cambiata/code-cookbook-ideas#1 (comment)
from code-cookbook.
I think we indeed need a category for the top most popular libraries in the cookbook, with introduction and getting started code and outlinks links to their website. But the rest is up to the libraries itself. As for the target specific articles, Ill wait for the people to bring them in 😄
For now Ill close this topic, as there is nothing more to discuss. Please keep contributing 👍
from code-cookbook.
Related Issues (20)
- Suggestion: Loading an external file - error: Custom(ssl@ssl_recv) HOT 7
- Suggestion: Loading an external file - fails with quotes HOT 2
- Comments: Functional Programming - Enums as GADTs
- Comments: Macros - Add parameters as fields HOT 1
- Comments: Principles - Everything is an expression HOT 3
- Comments: Beginner - Loading an external file HOT 2
- Comments: Beginner - Using arrays HOT 2
- Comments: Data structures - A fixed ring array HOT 1
- Comments: Principles - Inheritance HOT 2
- Article (Git) dates are incorrect
- Tags in overview aren't clickable HOT 1
- Using 3rd-party libraries in the cookbook examples? HOT 5
- Matching on Structures: example not correct HOT 5
- Code Cookbook example custom generator needed and problems HOT 5
- Deployment HOT 1
- Suggestion: Using arrays HOT 1
- Class reification for building fields
- "Observer" design pattern article doesn't credit author HOT 1
- Observer - doesn't seem to work with --interp HOT 5
- Suggestion: Adding static methods to existing classes HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-cookbook.