tag:blogger.com,1999:blog-200663032024-03-13T01:53:53.823+02:00FlashmatticIndividual thought patterns of one front-end artist
<br>
<b>Matti Bar-Zeev </b>Unknownnoreply@blogger.comBlogger218125tag:blogger.com,1999:blog-20066303.post-31873906067165251852016-03-19T13:17:00.000+02:002016-03-19T13:17:24.330+02:00Giving Medium a GoHi guys,
I just wanted to let you know that I'm giving Medium a go, writing stuff there and checking out the platform, which currently looks very promising.
You can find the post I've already published there under my profile under Medium:
“What JS Framework?” is not the question
10 Mistakes Coders Think They’re Being Smart in Doing
And be sure to follow me on medium to get notifications on Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-20066303.post-3850219865229195702016-01-08T18:12:00.000+02:002016-01-08T20:11:50.536+02:00"What JS Framework?" is not the questionwhud'up?
I'm hearing a lot of talk about JS framework lately and by "lately" I mean the past 4 years. I have to admit that I took a rather active part in this debate.
It will seem that once all aspects of live-streamer latest features have been covered, the modern JS developer dives into that old debate of "What JS framework should we use?", but nowadays you can count me out on this one for I Unknownnoreply@blogger.com13tag:blogger.com,1999:blog-20066303.post-25591439840851624982016-01-02T22:20:00.000+02:002016-03-05T16:43:43.823+02:0010 years of bloggingHi,
December 22nd 2005 was the day the first post under this blog came out.
The post was in Hebrew and back then it took a lot of effort to make Blogger display RTL languages well, which is what I babbled about most of the post.
It's amazing to believe that 10 years have gone by since then, with me shifting between technologies and employers, and even sacrificing my native tongue (and your Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-20066303.post-76590593287672960762015-10-06T19:36:00.000+03:002015-10-06T19:36:00.392+03:00Basic Webpack with ES6, JSX and ReactHi there,
I promised (sort of) on my twitter account that I will look into the integration of Webpack with ES6, JSX and React, you know, just because I read a little about Webpack and it does seems like a very nice solution for bundling JS modules and static assets while slicing them into chucks which can later be loaded on demand.
Before jumping into anything, a series of POC's is probably whatUnknownnoreply@blogger.com4tag:blogger.com,1999:blog-20066303.post-71946105517474502362015-09-07T20:00:00.000+03:002015-09-15T20:34:11.848+03:00ES6, Babel and all betweenSo...
Keeping pace with the latest JS progress? it's mad, I know.
I would like however to talk about the fundamental staff which is changing under our feet, more precisely - ES6.
ES6 or ECMAScript 2015 (catchy, indeed...) was recently finalized and all the web is swarming about it, though the browsers do not fully support it, which is like showing a candy to a child but behind a glass window.
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-20066303.post-86043473068773814082015-03-03T20:43:00.000+02:002015-03-03T20:43:00.439+02:00Check it out - You Can't Be Great without Technical ExcellenceHi,
I wondered and bumped into this great presentation which again states what many of us already know but still wonder how come this is not common knowledge and practice.
This presentation is given by James Grenning, which I had no idea who he was prior to watching it, but it makes no difference...
The presentation can be found here.
James, after bubbling a little bit about agile, makes some Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-20066303.post-28013106244279540872015-02-10T05:18:00.000+02:002015-02-10T05:18:00.263+02:00Stop and Resume Binding in AngularJSHi,
There comes a time when you need to tweak the native behavior of a framework.
For me it was pretty straight forward desire to stop and resume binding for DOM elements.
The reason behind it was that sometimes I have several elements on the DOM which listen to the same data, but not all of them are viewable. Only one of them is viewable and this is the one I would like the binding to keep Unknownnoreply@blogger.com101tag:blogger.com,1999:blog-20066303.post-16265443580776068692015-01-27T20:12:00.000+02:002015-01-27T20:12:00.675+02:00Javascript Event Payload Preformance EffectHi,
I recently had a debate with one of my colleagues about why he shouldn't put redundant details on a Javascript event payload.
I strongly urged him to avoid putting information that no one needs just because it's there, and he claimed that it has no influence on the way the application work and preforms - which immediately lite up my "this is a task for JSPref" bulb.
You see, aside from beingUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-72365790514237968672015-01-20T19:34:00.000+02:002015-01-20T19:34:00.042+02:00Component Directive Options over Multiple AttributesHi guys,
When building a directive component in AngularJS you'd probably ask yourself - how will I expose the component's API to the "outer world". Putting "events" and "data" aside for this one, I want to focus on the components behavior configuration.
I would like to share a direction which I tend to go with, and that's using a single "options" or "config" object which pretty much controls Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-47871524067189236572014-07-13T23:00:00.000+03:002014-07-13T23:00:00.514+03:00Constatus - Find those Strings and Const'em!Whud'up?
Not so long ago I've opened a random file on the code base I'm working with and saw the horror of many Strings values which have "why am I not a constant?!" written all over them.
I figured that a re-factor is in order but I wondered how will I know that if covered all the instances of a particular String value?
Good thing there is NodeJS around and some nice modules like Esprima, Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-23191090110856605592014-05-29T20:30:00.000+03:002014-05-29T20:30:00.179+03:00New Quake-Stats improvmentsYeah, I know - it has been a while since I wrote but trust me, I had important things to attend to, and still do BTW ;) don't worry, it has nothing to do with work, code or debugging shit.
Anyhow - I just wanted to let you know that the "quake-stats" open source application has gained some nice new features!
For those of you who don't know what I'm talking about, you can read about it here and ofUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-72735241426864530582014-04-27T19:00:00.000+03:002014-04-27T19:00:03.323+03:00My Sublime Text plugins
Yo.
I am pretty sure that many of you are familiar or even using Sublime Text.
If you don't you should definitely check it out and consider it being your main text/code editor.
One of it's key features is the plugins you can add to it, and so you can find numerous plugins which helps your coding process so much. I would like to share with you the very limited, yet so useful, set of plugins I Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-32424901130306677942014-04-22T19:00:00.000+03:002014-04-22T19:00:06.128+03:00CrunchBang rocks #!I'm not a Linux power-user. Correction, I'm not Linux user.
Seriously, I spent a lot of time laughing at those Linux fanatics, and still do. It always seemed to me that the more one likes Linux the more s/he has bad social skills.
But one thing has to said - Linux is a better OS for developers, period. If you're building stuff, if your'e contributing code to open source projects, if you like Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-16948384732700482852014-04-17T16:39:00.000+03:002014-04-17T16:39:00.552+03:00Printing a Dialog content using Canvas and iFrameHi guys,
You know that printing from the browser is a bitch. Even after you've figured out how to put the content you want into the browser, the printing doesn't always work the same on all the browsers (yes! HTML is a standard... my arse). And that's not where all the trouble stop but anyway...
The problem I would like to bring up in this post is printing from a dialog box, which is more Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-16658106076743931272014-04-12T09:22:00.000+03:002014-04-12T09:22:00.332+03:00All the JS you needYo guys,
You know me, I'm just strolling around the web bumping into nice stuff on the way, and recently I found a great place where you can pretty much get all the knowledge sources you need for JS.
To be honest, it's pretty amazing how much one can gather about this Egyptian-pyramids-fucking-papyrus-deserved scripting language, but then again we must, now don't we? :)
Enjoy it: superhero.js
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-29708255184399577822014-04-07T08:00:00.000+03:002014-04-07T08:00:08.707+03:00Delegating Event handlers to align Event Data model
After
such a pretentious title we can all stop and take a
one week sleep. WTF do I want from you now, you probably ask. yeah, ok. check this out:
Think about this
next situation - You have a nice component which potentially can host several
other components, each can dispatch a different event, an event that needs to
be handled of within the "parent" component.
We cannot let the
"parent" Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-13497144498535949902014-04-03T20:33:00.000+03:002014-04-03T20:33:00.089+03:00My Unit Testing Approach to JavaScriptHi guys,
I thought it would be nice to share with you my approach to JavaScript unit testing.
It's not really bound to any particular technology so you can embrace it if you think it can bring you some peace.
Configure a threshold time of each test to be less than 500ms. I hate to wait on code. I need feedback now.
I feel really bad when I need to write test for a already written code. It Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-18175487193544241212014-04-01T22:34:00.000+03:002014-04-02T00:06:15.791+03:00Mocking a Confirmation Dialog in AngularJS Unit-Testing
What is more convenient then talking about the shallow gratification tests give us in the previous post, and now posting about testing examples. What can I say, you got me, I'm a child ;)
Anyhow, lets take the following case: User wishes to delete some book from his library, once he presses the delete button a confirmation dialog pops up to ask him if he is stupid or not, and once he approve Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-37925095215700288932014-03-26T23:00:00.000+02:002014-03-26T23:00:00.694+02:00Understand whySo - You writing code in a TDD manner, which means that basically you're writing the tests first, waiting on them to fail, and then writing the code which makes them pass.
Damn, This makes you feel so good, right? It's like a fucking rush of satisfactory that runs through you, making you feel like you're fulfilling your roll in the world, you're executing your work to the max. You tell yourself Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-73307412937285449832013-11-24T21:00:00.000+02:002013-11-24T21:00:02.944+02:00Avoiding Angular's Digest Cycles Limit ReachedHi guys,
I've recently encountered an issue where in a certain view on an Angular application I've reached the digest cycle limit. If you got here, 80% that you've reached the same issue yourselves.
I would like to elaborate here on how I've managed to avoid it, and fix the issue. It might not work for all the variation of this problem, but it is worth trying before you go into more serious Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-24627939031258562892013-09-29T23:43:00.000+03:002013-09-29T23:43:22.192+03:00Flashmatticomponents now on GitHubHi guys,
It took 1 email from a developer who contacted me about my old Flex/Air open source project called Flashmatticomponent, which made me finally take the time and migrate this project from Google Code to GitHub.
I don't know how many of you are still interested in the murdered-by-Adobe-and-Apple technology called Flex, but if you do, I bet you can make use of it.
I, myself, am really proudUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-13662918968206290922013-09-04T15:46:00.000+03:002013-09-04T15:46:26.674+03:00Quake III Arena - Statistics including FlagsHi guys,
It is a tradition for us, to drop everything and play Quake III Arena, CTF mode, on every Thursday. Now, we did have some statistics showing each players kills etc. but we never had something to show statistics for Flags. How many did one fetched, how many did he score? did he restored any? you know... what really counts when you're playing CTF.
I looked for something on the web but Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-86716549940414991292013-08-01T22:00:00.000+03:002013-08-01T22:00:02.315+03:00Metronome Directive using the Audio APIHi,
A few months ago a came to notice this article by Chris Wilson.
Being into Angular I thought it would be nice to create a Directive for a reusable Metronome. I'm guessing it can be useful if you're building some musical application utilizing the Audio API.
So I've publish this GIST where you can find the code for embedding this Directive in you application. You'll have to forgive me for thereUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-20066303.post-71406902529059062602013-03-04T21:26:00.002+02:002013-03-04T21:26:31.997+02:00AngularJS Module Seperation needs helpIf you're using AngularJS as your framework of choice you probably know that it is recommended that you separate your modules according to Logic (Directives, Filters, Services) of by view type (i.e. dashboard-module) or combine the 2, but the idea is to have a single main module which depends on these "sub" modules.
This is better for testing since you don't need to load them all if you only Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-20066303.post-82764987942464145622013-02-24T08:00:00.000+02:002013-02-24T18:03:22.595+02:00Twitter - Here I comeSo whud'ya know... I'm going Twitter.
I know, I know - I have written these lines (for those of you who don't understand Hebrew, I'm bashing Twitter like hell), but I found myself more and more coming up with short ideas that posting a blog entry for is a bit of an overhead, you know what I mean? I need something I can tap to easily and write a quick thought or revelation that comes to my mind. Unknownnoreply@blogger.com0