Profile cover photo
Profile photo
Justin front
Justinfront Ltd, Flash/haXe coder and fine artist and salsa dancer.
Justinfront Ltd, Flash/haXe coder and fine artist and salsa dancer.
About
Posts

Post has attachment
My new leopard
Photo
Add a comment...

Post has attachment
Add a comment...

Post has attachment
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.3seo3p2q8

There seems a lot of boilerplate and abstraction and depencies with React ecosystem, reminds me of enterprise java, flex, silverlight xaml, great for forms :( anyone else feel the same?

#haxe but #noReact
Add a comment...

Post has attachment

Post has attachment
Philipee is fixing the Redux string problems, looking at Redux tutorials the test driven development within seems to obscure the basic understanding, and the main reason for all the unit tests... the framework relys on strings everywhere, so Philipee's approach seems much better. But React is a Facebook framework so there is a lot of boilerplate, but Haxe has the possiblity to fix this, still I think perhaps Haxe could do better... could it make Riot more robust or is there something better??

His quotes incase you don't read Git readme's:

"The regular Redux store.dispatch is declared to accept the type Action which is in fact a Haxe abstract capable of auto-converting Haxe Enums into a regular { type, value } Redux object.

For code to be seamless, simple wrapper functions provides the right Haxe Enum value to the reducer/middleware.

Normally for React, you're expected to use react-redux's connect high-order component: ...

This is ok but rather inefficient because for every connected view, a relatively complex class has to be instantiated to puppet your view.

The approach proposed here uses macros to directly modify your class to insert the needed lifecycle operations:

interface IConnectedComponent triggers the ConnectMacro,
this.context.store is wired automatically,
a this.dispatch function is created, forwarding to the connected store,
if a mapState (static or not) function is declared, it will be used:
in the constructor to set the initial state (instead of props),
when the state changes, to call setState with a new mapped state.

Using this system you don't normally even need to wrap the views using a separate component"


https://github.com/elsassph/haxe-react-redux

Add a comment...

Post has attachment
Haxe-React reaches 1.0 stability, my initial nieve thoughs on traditional react.

Where I work they are moving to react, the stuff I have seen is pretty good but looking at Redux tutorials online that were full of unit testing, I started to realize most of the testing was pointless it was being used to protect javascript from string typing mistakes, the Redux code was littered with strings, in Haxe the compiler would check all this for you and you might use a macro to abstract enum all the strings from some external json?

I also noticed that while stuff like flexbox was pretty cool, the granualarity of typical React/Redux code was rather fine - which as we all know is why Java is often bad at rich interfaces with too much oop abstraction with custom wrapping classes around every generic visual entity. For fast flexible development of UX it's often better to decorate a group/array of generic visual entities with styles, functionality and listeners. It's all a compromise of keeping a class below 300 lines keep it's so that it does not do too much ( defining a class to do one thing is often touted, but depends how you desribe one thing ).

The compromise is so you can see the structure of the visual interface against breaking down the functionality to be managable, the practicality of balance between oop and proceedual.

For me react granularity is often too fine, and there is way too much boiler plate I was hoping a move away from Robot legs would be less enterprise bloat or lists of dependancies!

Especially when you compare 'React" with a 'Riot' example 'to do list' that does not need a long list of npm modules. Really I feel that Haxe can do better than React and perhaps we need to look at a rebuild of Riot. But if you want to reduce testing and improve realiablity in your Redux structures then Haxe is a good solution, something lost on many enterprise companies who probably use React because sheep follow each other :) ! Which is the only reason more people don't use better solutions and plum for standard popular approaches only to find they are transcient.

Looking at Redux was thinking they could use Haxe Remoting to store the state or translate it. Seemed rather wasteful to store the complete state history surely differences could be done and more efficient, nice to see some functional ideas but is the balance right?

React has a lot of boiler plate no doubt no suprise given it was created by facebook, it seems a popular js standard but if you do insist on using it perhaps look at massives approach using haxe-react.

Philippe Elsass ‏@elsassph Nov 11

#Haxe #React library is now 1.0 candidate; use `haxelib git` to try and give us your feedback:

https://t.co/HDiU2Yo0Qp
Add a comment...

Post has attachment
'What is HL' - a question everyone in the Haxe community has been asking for quite some time.
HL is short for "HashLink", Neko take 2, a static typed virtual machine and also a C target with optional extras including SDL games/graphics support, zip/format abilities, and windowing/message boxes, but in future HL will have full Heaps support a battle tested and mature 3d/2d game engine, but HL can also work with Kha and in future with other Haxe frameworks.
Currently there are no real specific details on how to make HL or setup the hlsdl haxelib fully, but to run 'hello world' in the new HashLink is not hard to work out, just read the make file and the url on the video.
Specific HL info starts 6:40 into the video, before that Nicolas discusses the search for haxe CEO which is probably something that you may want to watch later ( no real change ), HL is what we are all interested in!
Warning it's probably not yet ready for production use, such as sound support is being worked on, but for terminal use it is likely to be robust, since HL supports most or all of the "sys" functionality of core Haxe so reading and writing files etc...
What does this all mean... well Microsoft, Apple, Adobe and Google have a LLVM approach to either adopt or compete against in the cross platform arena, but will HashLink be the Rails of Haxe, or just another piece of great Haxe technolgy, is it time for all the corporate sheep to start using Haxe?
The favoriate quote is something like - Everyone has to use Haxe in Nicolas company, but actually they also want to.
I asked a few questions, like about native components etc...
https://www.youtube.com/watch?v=wjv7hbN7sHE
Add a comment...

Post has attachment
This looks interesting it seems to generate from a swf a png atlas and then the matrix frame info for each sub png within the frame, which I presume could be used directly with "gl" shaders given some parsing. It seems very like flump but because of the matrix approach perhaps slightly easier to map to a gl texture every frame.
https://ispebo.wordpress.com/2016/09/19/skeletoraxe-animations-with-haxe/
Add a comment...

Post has attachment
Lubos's is going to talk to the Chairman of the Blender foundation about his 3D blender extension, which have tools to construct shaders animate objects and play 3D interactives all within Blender using his Armory engine developed in Haxe Kha by compiling it to python to embed in Blender!

https://twitter.com/luboslenco/status/775050383857156097
Add a comment...

Post has attachment
Reproduction of one of my teen paintings, recreated for friends wedding present thursday evening, I don't paint/draw much but aim to get back into it, not posted here before is this the correct section?
Photo
Wait while more posts are being loaded