Code Monkey home page Code Monkey logo

Comments (11)

cambiata avatar cambiata commented on May 24, 2024

Added "Abstract types" as a category a minute ago, together with an Email type example.

from code-cookbook.

Jon2211 avatar Jon2211 commented on May 24, 2024

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.

markknol avatar markknol commented on May 24, 2024

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.

Jon2211 avatar Jon2211 commented on May 24, 2024

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.

cambiata avatar cambiata commented on May 24, 2024

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.

markknol avatar markknol commented on May 24, 2024

I rather call it "compilation"

from code-cookbook.

markknol avatar markknol commented on May 24, 2024

I am starting to feel uncorfortable with the "other" category, it has many stuff. Should we create new ones?

from code-cookbook.

cambiata avatar cambiata commented on May 24, 2024

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.

dstrekelj avatar dstrekelj commented on May 24, 2024

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.

MatthijsKamstra avatar MatthijsKamstra commented on May 24, 2024

https://github.com/cambiata/code-cookbook-ideas/wiki

cambiata/code-cookbook-ideas#1 (comment)

from code-cookbook.

markknol avatar markknol commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.