News for hackers. Stuff that matters.

amavisca

Re:More, less, and a story of typical Unix fossilization on Wednesday August 24, 2016 @05:42AM (#12350784)
The link is similarly a white screen on Android Chrome for me.
Re:This JPEG is also a webpage on Wednesday August 10, 2016 @02:10PM (#12263717)
I was just going off what the MDN page said about it being removed in the HTML5 standard. It looks like WHATWG just has a "living standard" and W3C still uses the versioning, so it's probably removed from W3C standards. I'm not too familiar with the reality of these standards.
Re:This JPEG is also a webpage on Wednesday August 10, 2016 @12:45PM (#12263096)
This site uses the xmp tag (deprecated in HTML 3.2, removed in HTML5) which I found interesting and had never seen!

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/xm...

It's similar to the pre tag but doesn't require the escaping. I guess you just have to make sure you don't have a closing xmp tag :)

Re:Create React Apps with No Configuration on Friday July 22, 2016 @02:40PM (#12145717)
Can you add some clarity to your complaints about WebPack?

What are the similarities with Grunt that aren't worth the mess and what are some of the awful habits that WebPack breeds?

What are your preferred ways to handle modules and build steps in general?

Re:Create React Apps with No Configuration on Friday July 22, 2016 @02:24PM (#12145601)
I think Redux and React-Router are very opinionated and distract people new to React from React itself.

My workflow for ramping someone up on React and eventually Redux looked like:

- A single React component with React.createClass

- ES6 class React components

- Add a component hierarchy and treat the top level component's state as the entire app state - pass down callbacks to update state. Look how this becomes harder to scale as we get more depth in our component hierarchy!

- Redux without the redux-react bindings. Also stateless function components.

Re:Create React Apps with No Configuration on Friday July 22, 2016 @02:14PM (#12145510)
As someone not new to React, I'm seeing this tool as a solid replacement to the old JSX Transformer script they used to provide. Let me get up and running just a bit more quickly.
Re:Create React Apps with No Configuration on Friday July 22, 2016 @12:24PM (#12144534)
Under the hood this is Webpack + Babel + ESLint with sane initial configuration. Love it.
Re:Idiomatic React Testing Patterns on Wednesday July 13, 2016 @02:01PM (#12088277)
I prefer this style of component test and tend to bring in jQuery as a test dependency to remove some of the complexity of the assertions (I'm not always up to date on the current DOM APIs).

I find the instance method unit test a bit unsatisfying. I'm not going to call an instance method of a component from outside of that component (maybe someone else is doing this - I'm just not sure what the use case is), so why would I do that in my test? I want to integrate through the instance method by poking at the DOM rather than calling the method directly.

Re:The Controversial State of JavaScript Tooling on Tuesday February 02, 2016 @03:58PM (#11022527)
If you're trying to test client side javascript with phantom + jasmine through gulp there are a few options.

I googled "gulp jasmine phantom" and found 3 options at the top, one of them being under the jasmine org on github. The other 2 seem to have similar APIs to the one under the jasmine org.

Re:Ask HN: Will Ghost be the next Wordpress? on Tuesday November 19, 2013 @02:50AM (#6759814)
My argument would be the fact that it is "just a blogging platform."
Re:Ask HN: Essential Javascript book for deep knowledge? on Monday November 11, 2013 @11:46AM (#6712457)
He recommended books in his response.

You should be reading JavaScript: The Good Parts.

My opinion would not change as far as "which looks nicer."

You need to consider the context of the icon though.

Re:Why does HTML think “chucknorris” is a color? (2011) on Sunday November 03, 2013 @01:48AM (#6662460)
It was just posted on reddit for the 100th time (r/webdev)
Re:Odesk is not that bad on Sunday October 27, 2013 @05:12AM (#6621351)
That logo makes me so uncomfortable the more I look at it.

I think Odesk is probably decent for certain businesses, but I can't imagine using it for a startup. You get tacky, inconsistent results.

Both of these companies process through First Data.
1 - Yes

2 - Front End Development, maybe

3 - Ruby/Python/JS/PHP. JS necessary for (2)

Re:Show HN: Shuteye - "As private as possible" video conferencing on Saturday September 28, 2013 @08:56PM (#6463671)
Handing my information to Stripe defeats the entire purpose of your application.
Re:Pushed to the limit as a banking intern on Thursday September 12, 2013 @12:31PM (#6375128)
You provided a single example and then skipped the alternatives.