Skip to main content

Reading Update



From my last post: http://krzychukula.blogspot.com/2013/02/reading-list-update.html

Finished:

  1. SMACSS by Jonathan Snook
  2. Czytaj dwa razy szybciej! by Marcin Matuszewski (how to read faster)
  3. JavaScript Allongé by Reginald Braithwaite
  4. The Programmers Stone readlist from blog: the-programmers-stone.com

Now I'm reading:

  1. Hexagonal Architecture for SCKRK Meeting
  2. Fallen Dragon by Peter F. Hamilton (sci-fi)
Next on my list:
  1. Effective JS by David Herman
  2. Make: Electronics. Learning Through Discovery By Charles Platt (I will finish first chapter in february)


SMACSS

Really good book about CSS, architecture of CSS in small to really big projects/websites. How to deal with duplication - especially how to avoid it. There is even a chapter about Preprocessors and I can strongly agree that this is tool that can help you but only if you are conscious about how it works and how CSS it generates looks like.

JavaScript Allongé

Book that explains Functional programming with JavaScript. I found many functional and combinatorial ideas there (Y combinator). Book is not ready yet in my opinion still worth reading (but you may want to wait a little bit to get more content). I really can recommend this book.

The Programmers Stone

I have started it as something to read in the tram before I could borrow Effective JavaScript. First articles were strange and I was thinking about abandoning it, but in the end it was worth to read till the end. Especially last article was impressive with explanation of where the ideas they have came from. It was really surprising to see something about Pierre Teilhard de Chardin surname (I've read about him in Hyperion Sci-Fi book). In the end it was worth reading.   

Comments

Popular posts from this blog

How to simulate slow connection (developer proxy in Node.js)

Update: If you use Chrome then you can use "Throttling" so simulate slow network for all your assets. This should be easier than proxy.


Toggle device modeChoose Network type.Refresh the page




https://developer.chrome.com/devtools/docs/device-mode 



Proxy:



For some time I wanted to use some proxy for development and testing of eg. slow internet connection, but it was hard to find something useful and free. I know there is Charles but buy it to use it at most one in a month is not for me.

I started thinking about Node.js, maybe I can write proxy for me? But fortunately I found one.

https://github.com/nodejitsu/node-http-proxy

With this module I can write really short code to create slow server:


var http = require('http'), httpProxy = require('http-proxy'); httpProxy.createServer(function (req, res, proxy) { var buffer = httpProxy.buffer(req); setTimeout(function () { proxy.proxyRequest(req, res, { host: 'localhost', port: 8080, …

How to use NPM packages from private repositories on bitbucket

Using Node.js you want to use NPM packages for reusable parts of the apps you create, that is a common sense. At the same time not everything makes sense as a public module unfortunately. Right now we are using Bitbucket at work for private repositories but there is a problem. How to use them as NPM modules? We do not want to publish them to the public npmjs.org but still want to have an ability to install them easily.

After googling and experimenting I have found simple solution.
First create new user in your organization with obscure password and give it read access to the repo. It is best to assign really obscure password but do not fool yourself. This is convenient but you must sacrifice security a bit. You should always consider how in your context that would be important.

Change example from below to:
user - username
PASS - password of the user
organization - owner of the project (you can find it in bitbucket url to your project)
project - your project name

"dependencies&…