HNHacker News
TopNewBestAskShowJobs

blueveek

950 karma · joined June 26, 2013

submissionscomments
blueveek··on A new set of Firefox Developer Tools features
You can use the `cookie` tool in what's called the "command line". It's been there for quite a while now: https://hacks.mozilla.org/2012/08/new-firefox-command-line-h...

Granted, it's not an actual panel in the toolbox, but it gets the job done.

blueveek··on WebIDE lands in Firefox Nightly
Sure, but that's only in index.xul, which is a very small part of the project. Everything else is plain old js+html (xhtml necessary for localization). Apologies, I didn't notice that when I said "there's no XUL in there".

As a meta-discussion, <vbox> is just a fancy way of saying:

div { display: -moz-box; -moz-box-orient: vertical; }

...which is the old flexbox implementation. But I digress :)

edit: link to the MDN article about `display: box`: https://developer.mozilla.org/en-US/docs/Web/CSS/box-orient

blueveek··on WebIDE lands in Firefox Nightly
There is no XUL in there.
blueveek··on WebIDE lands in Firefox Nightly
> Is this itself entirely a webapp?

Actually, yes: http://dxr.mozilla.org/mozilla-central/source/browser/devtoo...

blueveek··on Write a program that makes 2 + 2 = 5
7 bytes: !''|2+2

:)

blueveek··on Firefox Developer Tools – Editable box model, Sublime Text keys
https://bugzilla.mozilla.org/show_bug.cgi?id=986471
blueveek··on Brendan Eich Steps Down as Mozilla CEO
Brendan chose to leave, because it was hurting Mozilla. This is not a "corporate decision".
blueveek··on Brendan Eich Steps Down as Mozilla CEO
They didn't step down because of Brendan, but for different reasons.

"The three board members ended their terms last week for a variety of reasons. Two had been planning to leave for some time, one since January and one explicitly at the end of the CEO search, regardless of the person selected."

[0] http://arstechnica.com/business/2014/03/three-mozilla-board-...

blueveek··on Brendan Eich Steps Down as Mozilla CEO
"All he had to do was lie".

Are you suggesting this would've been better, in the grand scheme of things?

blueveek··on Live editing WebGL shaders with Firefox Developer Tools
> With this editor, after you make the changes, do you have to copy-paste that back into your source to save it?

Currently yes. However, we have plans to make this better soon. (we call them Project Maps, and they're on the roadmap)

blueveek··on 0 to 60 in One Second: Fusing WebGL, CSS 3D and HTML
Smooth 60 fps for me on Firefox 26, OS X (stats say at 1250x702 resolution).
blueveek··on Make No Promises
Promises and generators actually work magnificently well together. I would recomend taking a look at an implementation of Task.js [1] [2] and, for example, some of its (increasing) usage across the Mozilla codebase [3].

[1] https://github.com/mozilla/mozilla-central/blob/master/toolk...

[2] https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_...

[3] http://dxr.mozilla.org/mozilla-central/search?tree=mozilla-c...

blueveek··on Make No Promises
These comparisons bring up memories of when we used to benchmark empty for loops. I think today’s microbenchmarks are starting to feel just like that.

Comparing the execution time of a hundred thousand (sync or not) callbacks vs. a hundred thousand (sync or not) promises is, in many cases, not a good or deciding factor for what tool you should pick from the toolbox. I would assert that in realistic scenarios, it really doesn't matter.

blueveek··on Firefox 23 is available
If you don't know already, a huge UI overhaul is planned to land sometimes between Firefox 25 or 26 [0]. As far as I know, better performance is a big reason for the change as well.

[0] https://people.mozilla.com/~shorlander/ux-presentation/ux-pr...

blueveek··on Mozilla CTO: "Maybe we should just adopt, support, and bundle Tor in Firefox..."
Tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=901365

edit: seems to be already fixed in ESR 17.0.7

blueveek··on Chrome 27, Firefox 22, IE10, And Opera Next, Benchmarked
Firefox 22.
blueveek··on Chrome 27, Firefox 22, IE10, And Opera Next, Benchmarked
Shorthand functions are not standard yet. You should bet on arrow function expressions in Harmony for now:

  [1,2,3,4].map(x => x*x)) // [1,4,9,16]
(also note that |this| is lexically bound in the case of fat arrow functions)

Also, destructuring objects:

  let obj = { foo: 42, bar: { baz: 32 } }
  let { foo, bar } = obj;
  foo // 42
  bar.baz // 32
https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_...

List of all the goodies: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_...

edit: formatting

blueveek··on Network Monitor, now in Firefox Developer Tools
Worth mentioning that Firefox Nightly has a few nifty improvements, and in a few days, the ability to replay and edit requests.
blueveek··on Firefox 22 released
A small nitpicky correction: XUL is a markup language, but one can certainly write Firefox UI using HTML or XHTML as well. The logic is written JavaScript.

For example, the markup view itself from the Firefox Developer Tools is written in HTML [0] and JS [1]. Other tools like the Network Monitor use XUL.

[0] http://dxr.mozilla.org/mozilla-central/source/browser/devtoo... [1] http://dxr.mozilla.org/mozilla-central/source/browser/devtoo...

blueveek··on Firefox 22 released
The devtools are indeed dockable on the right now in FF 22, but not responsive yet (so when little horizontal real estate is available, the tools will look and feel very cramped).

The upcoming versions address this issue (in the end, it's all just CSS; for example: [0]).

[0] http://dxr.mozilla.org/mozilla-central/source/browser/themes...

blueveek··on Firefox 22 released
Not to mention that |this| is lexically bound in the case of fat arrow functions. No more ".bind(this)" or "let self = this;" everywhere!

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

blueveek··on Firefox 22 released
You may be interested in Australis, which removes the title bar by default. Scheduled for Firefox 25. Some (rather old) mockups here: https://people.mozilla.com/~shorlander/ux-presentation/ux-pr...
blueveek··on Firefox 22 released
If you right click on a breadcrumb, you'll get the vertical stack. But there's certainly room for some polishing.