.

geros javascript dalys

JavaScript: The Good Parts nors daug laiko praleidau programuodamas visokias webines aplikacijas, bet taip niekad iki galo ir neįvaldžiau javascripto. moku pakopipastinti tinkamus bajerius ir išgaudyti paprastas klaidas, bet iki objektų ir prototipų lygio nepakilau.

prisiskaičiau patarimų, kad karts nuo karto reik išmokti naują kalbą, ir nutariau, kad imsiuos javascripto. pirmiausia todėl, kad nieko nereik instaliuoti, o rezultatai lengvai matomi, be to, turiu kelias mintis, kurias noriu įgyvendinti. lyg ir nesu uniglotas, bet senosios žinios labai greitai rūdyja, o kai kurių visai nesinori atgaivinti: teko šiek tiek susidurti su c ir c++, kurių irgi nesu įvaldęs, bet vos tik pagalvoju – purto. neseniai kolega uždavė klausimą: kokia kalba uždirbai pirmuosius pinigus? labai nustebau, bet mano atsakymas – perl ;]

per kelias valandas perskaičiau knygelę apie javascript: douglas crockford – javascript: the good parts. kiekvienai kalbai reikėtų tokios knygelės – tikro eksperto nuomonė apie tai, kaip geriausiai išnaudoti stipriąsias kalbos dalis, bei perspėjimas apie vietas, kur veisiasi drakonai. dabar jaučiuosi pasirengęs mestis į extjs ar jquery glėbį.

likimo ironija, bet po šio mano sprendimo, teko pramokti visai kitą kalbą: visual basic for applications. excelio makrosuose programavau grafų algoritmus ;] iki šiol nebuvau parašęs nė vienos vba kodo eilutės, todėl labiausiai nervino, kad visa msdn dokumentacija yra apie .net vb, kuris neturi beveik nieko bendro su vba. 



Smagu girdėti, kad pradėjai nuo teisingos knygos apie JS. Turbūt pačios teisingiausios.

JS libus galima naudoti tik tada, kai pats gali parašyti libą. Tai yra supranti iš esmės kaip ir kodėl veikia tie libai. Pasiimk kad ir tą patį jquery ir pasinagrinėk sourcus. Kai suprasi kam skirtas kiek vienas if’as, naudok jį į sveikatą. Tik klausimas ar vis dar norėsi :)

Kitu atveju, jei nesigilinęs imsi libą ir naudosi, o jei dar ir žiūrėsi visokius tutorialus internete, tai teiškepsi dar vieną unaccessable, unusable ir brauserio atmintį leakinantį omg-ajax-webdunulis niekalą.

Trečia vertus, jei labai tingi nagrinėtis sourcus, naudok tą jquerį, tik gink die nuo jo pluginų, kurių daugelis parašyti ufonautų.

Ir pabaigai, paskaityk dar ppk on javascript http://www.quirksmode.org/book/

Užjaučiu dėl COBOL, oj t.y. VB…



pkmk tmblr

iškarpos iš interneto. sukauptos per tumblr.com servisą. nereguliariai ir neįpareigojančiai.

heyitsnoah:

Holy crap this is an awesome skate video.

Kilian Martin: A Skate Escalation (via Bragic)

Are you up for a thought experiment? What if we chose to regard the 2,973 innocents killed in the atrocities of 9/11 not as victims but as democratic martyrs, “sacrifices on the altar of freedom”? In other words, what if we decided that a certain baseline vulnerability to terrorism is part of the price of the American idea? And, thus, that ours is a generation of Americans called to make great sacrifices in order to preserve our democratic way of life—sacrifices not just of our soldiers and money but of our personal safety and comfort?

In still other words, what if we chose to accept the fact that every few years, despite all reasonable precautions, some hundreds or thousands of us may die in the sort of ghastly terrorist attack that a democratic republic cannot 100-percent protect itself from without subverting the very principles that make it worth protecting?

David Foster Wallace (via southpol)

The story goes that a man was upset that his neighbor kids would always play on his lawn and damage it. So he decided to pay each child to play on his lawn. The surprised kids gladly accepted. After a few days the man told them that he could only afford to pay them half of the initial rate. The kids accepted this reduced rate but were less then enthusiastic. After a few more days the man cut his pay to almost nothing and the children were so upset that they left, vowing never to play on his lawn again unless he increased their pay. Problem solved.

Why pay for performance does not work and may impair patient care

Fascinating. As you dive deeper and deeper into what makes a good doctor, it starts looking like we’ll never know. However, I do believe that deinstitutionalizing medicine and bringing back the concept of the neighborhood doctor would do wonders in making people “feel” like they’ve got a good doctor. It’s just a hunch, but I believe in the therapeutic power of good relationships.

The vast majority of doctors are average and above. We should really be worrying about making the bottom rung doctors average doctors.

(via jayparkinsonmd)

livejamie:

Nina Simone - I Put A Spell On You (MiMOSA Remix)

via ruta

There’s never been anything like what Ron Howard and Akiva Goldsman are proposing for their adaptation of Stephen King’s Dark Tower: a television show that crosses over with three movies, using the same cast for both. Can this even work?

Ron Howard and Akiva Goldsman’s Dark Tower adaptation: a totally insane mix of TV and movies

That sounds badass. Although I’m not a huge Dark Tower fan, I’d certainly be interested in this kind of project.

(via kukkurovaca)

Psy’Aviah - Sweet Hard Revenge (Dead Errant Soul Remix)

from album Eclectric 

(i’m certain i have uploaded this song before, but i cannot find it on my tumblr, so it must be my memory making up lies)

But how did, for example, Linux make its way to China? The story that should be told more often is that Helsinki University’s doctoral student Dr. Gong Min upon returning to China in 1996 had 20 diskettes in his luggage containing that moment’s version of Linux. Shortly after that first Linux distro (collection of software) was available in China.

How Linux Got To China And The Nordic Open Source Miracle - ArcticStartup

New Amazon EC2 Micro Instances - New, Low Cost Option for Low Throughput Applications

currently reserved instance of t1.micro for 1 year costs 54$. i don’t know the performance characteristics of t1.micro, but this could be cheaper/better than shared hosting for some problems.