News for hackers. Stuff that matters.

krasimir-tsonev

Re:Black Box Driven Development in JavaScript on Wednesday August 27, 2014 @12:02PM (#8232827)
Hi, I referenced http://addyosmani.com/resources/essentialjsdesignpatterns/bo... The revealing pattern is the backbone of the article.
Re:Black Box Driven Development in JavaScript on Wednesday August 27, 2014 @11:49AM (#8232725)
That's right. The thing that I call "black box driven development" helps a lot if you want to do unit testing.
Re:Black Box Driven Development in JavaScript on Wednesday August 27, 2014 @11:46AM (#8232712)
Yep, BBDD is just a buzzword and I agree with you. ENCAPSULATION is a term that fits in the concept as well, but it is a little bit general for me.
Re:Black Box Driven Development in JavaScript on Wednesday August 27, 2014 @11:44AM (#8232698)
I feel that "var Box = function(a, b) {};" is more readable (or at least for me)
Re:Black Box Driven Development in JavaScript on Wednesday August 27, 2014 @10:44AM (#8232369)
I totally agree with you. I'm making a serious note about my future articles/projects.

Stop autoplaying your Gifs

http://krasimirtsonev.com/blog/article/stop-autoplaying-your-gifs-stop-play-control

This blog has 460 posts. In some of them, I need to show video clips demonstrating some feature or browser behaviour. I found that it was much better to do that in an animated Gif. However, they play automatically which is kinda annoying. Imagine that we have ten Gifs on the page and while you are reading they all blink or show moving content. It's like having a page full with banners.

( Read More... | no comments | 2 points | on HN )

Stay tuned / conferences that you should know about

http://krasimirtsonev.com/blog/article/Stay-tuned-conferences-that-you-should-know-about

Nowadays is really difficult to be up to date with the latest technologies, concepts or tools. There are several ways to accomplish this. You could use RSS, check blogs regularly or follow as many people as possible in Twitter/Facebook. My way is to watch videos from various conferences.

( Read More... | no comments | on HN )

Node.js application made with Express and AbsurdJS

http://krasimirtsonev.com/blog/article/Nodejs-application-made-with-Express-and-AbsurdJS

Node.js is one of those new technologies, which are attracting more and more developers every day. Mainly, because it's JavaScript driven, a lot of people are interested working with it. In this tutorial, I'll show you how to use AbsurdJS together with Express. Express is one of the popular Node.js frameworks. However, the other instrument is really fresh one and I hope that you will...

( Read More... | no comments | on HN )

Sorry, Chrome killed the terminal

http://krasimirtsonev.com/blog/article/Sorry-Chrome-killed-the-terminal

That's right. I'm not using the terminal anymore. Instead of that I'm using Chrome. Yes, the Google's browser. There is an extension called Yez! that connects to a Node.js module via web socket. It executes the shell commands and returns the result. And even works under Windows.

( Read More... | no comments | 2 points | on HN )

Testing Responsiveness with Google Chrome

http://krasimirtsonev.com/blog/article/Testing-responsiveness-with-Chrome

We all know what responsive means nowadays. We, as developers, normally develop responsive applications. There is a dozen of instruments helping us achieving our goals. Some of us use extensions and even pay for them. However, I'm using one thing - Google Chrome browser. In this article, we will see what the Chrome's capabilities for testing responsiveness are.

( Read More... | no comments | on HN )

Codefront.io is around the corner

http://krasimirtsonev.com/blog/article/Codefront-is-around-the-corner

There are only two weeks left before the international front-end conference in Linz - Codefront.io. It's organized by the guys from WebBox and it's scheduled for 10th of May. You still have a chance to buy a ticket and listen interesting talks about our lovely Web.

( Read More... | no comments | on HN )

Use JavaScript to convert Markdown files to RSS feed

http://krasimir.github.io/techy/examples/rss-generation/

In the content driven website (like a blog for example), the writing should be easy and fluent. Markdown language gives us the simplicity that we need. However, sometimes converting .md files to .html files is not enough. Techy is an instrument that uses Markdown as a base, but also makes your pages programmable

( Read More... | no comments | 2 points | on HN )

Look ma, JavaScript only Off-Canvas menu

http://krasimirtsonev.com/blog/article/Look-ma-JavaScript-only-Off-Canvas-menu-AbsurdJS

The off-canvas menu is pretty popular nowadays. You know, the little button in the right upper corner which opens the navigation with a slide-in effect. That's what we are going to build in this article. The interesting things is that we are not going to use CSS neither HTML, only JavaScript.

( Read More... | no comments | on HN )

JavaScript: bind function

http://krasimirtsonev.com/blog/article/JavaScript-bind-function-setting-a-scope

The this keyword is always important in JavaScript. I'll admit that it took me some time to actually understand how it works. You know, sometimes JavaScript is all about the scope. Where you are and what you have an access to. This article is about the bind function. Something which I use very often.

( Read More... | no comments | on HN )

Using media queries in JavaScript (AbsurdJS edition)

http://krasimirtsonev.com/blog/article/Using-media-queries-in-JavaScript-AbsurdJS-edition

If you believe in responsive design you probably use a lot of media queries. That's a CSS feature which gives us the power to add something like if statements. We are able to apply rules only if the current page meets certain conditions. In this article I'll show you how I use media queries in JavaScript.

( Read More... | no comments | 2 points | on HN )

A proper handling of Ajax requests

http://krasimirtsonev.com/blog/article/Cross-browser-handling-of-Ajax-requests-in-absurdjs

This blog post is part of series about AbsurdJS. I'll continue filling the library with small and self organized black boxes. In the last article we talked about creating a JavaScript router. This time we will go through the process of making Ajax requests.

( Read More... | no comments | 4 points | on HN )

Web components without external HTML and CSS

http://absurdjs.com/pages/client-side-components/

The web development nowadays is all about managing HTML, CSS and JavaScript. AbsurdJS is a JavaScript library and could produce CSS and HTML. And because it is ported for a client-side usage it was normal to form some kind of web components. Components which are trully build with JavaScript. No external CSS files or HTML templates.

( Read More... | no comments | on HN )