Better HN
topnewbestaskshowjobs
Log inSign up

adambd

40 karma · joined Feb 1, 2014 (12y ago) · 36 submissions

Submissions

1.

Displaying icons with custom elements(bdadam.com ↗)

1 points · by adambd · 11y ago · discuss

2.

Plain JavaScript event delegation(bdadam.com ↗)

6 points · by adambd · 11y ago · discuss

3.

Better webfont loading with using localStorage and providing WOFF2 support(bdadam.com ↗)

3 points · by adambd · 11y ago · discuss

4.

Douglas Crockford speaking about the new good parts of modern JavaScript(bdadam.com ↗)

5 points · by adambd · 12y ago · discuss

5.

Automatically adjusting the height of a textarea to its content text(bdadam.com ↗)

2 points · by adambd · 12y ago · discuss

6.

Loading webfonts with high performance on responsive websites(bdadam.com ↗)

2 points · by adambd · 12y ago · discuss

7.

Loading web pages really fast – optimistic page loading with Instantclick.io(bdadam.com ↗)

3 points · by adambd · 12y ago · discuss

8.

Generating sound effects with client side JavaScript(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

9.

Boilerplate for static site generation(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

10.

Automatically loading Grunt tasks with matchdep(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

11.

A simple usability trick for Google Maps(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

12.

Panning and scrolling background images using the canvas element(bdadam.com ↗)

2 points · by adambd · 12y ago · discuss

13.

Finding a random document in MongoDB (with benchmarks)(bdadam.com ↗)

2 points · by adambd · 12y ago · discuss

14.

Tracking clicks with Google Analytics(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

15.

Comparison helper for Handlebars.js(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

comment 12y ago · link · parent

I mean something like you call a REST API where you create fake data which is then visible on the production site. To avoid this, you should mock AJAX calls.

comment 12y ago · link · parent

If I understand correctly what your question is, it shouldn't be a problem. Since your JavaScript - which you are testing - is publicly accessible, the tests shouldn't do any harm. They cannot do anythin, what the users couldn't do anyways.

What can be a problem: if you produce sample data during running the tests, you are going to produce a lot of trash data in your production environment. But you shouldn't do it anyway - just mock AJAX calls and so on.

18.

One more reason to check for strict equality in JavaScript(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

19.

Finally always wins, unless you crash your computer meanwhile(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

20.

Strange error when installing npm package globally on Ubuntu(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

21.

Defining properties in JavaScript(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

22.

Playing Mario in the browser(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

23.

Building desktop apps with node.js and web technologies(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

24.

A simple PubSub module in JavaScript(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

25.

How to redirect www to naked domain and vice versa with Nginx?(bdadam.com ↗)

7 points · by adambd · 12y ago · discuss

comment 12y ago · link · parent

I think nowaday is not the idea one should "protect". These days everybody has many ideas. The real value today is to succesfully develop the idea into a product or service which delivers value.

So just start working on it, show it to other people, try to find somebody who works on it with you (a developer), and collect some feedback.

Don't be affraid! If it is really a good idea, it's surely gonna be copied by others. :)

27.

How to register your first bower package(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

comment 12y ago · link · parent

Would you like to see this feature also in Chrome? I'm really a fan of this syntax, because it's so easy to read and understand what is really happening.

29.

Fat arrows for JavaScript – aka lambda expressions like in C#(bdadam.com ↗)

2 points · by adambd · 12y ago · 1 comment

30.

Serve – a practical command line webserver(bdadam.com ↗)

1 points · by adambd · 12y ago · discuss

12