jayfree + programming   56

Implementation of Repository pattern for browser’s JavaScript — @emacsway's blog
Good architecture makes you free from certain implementation. It allows you to postpone the moment of decision on implementation and begin code construction even without the decision. The most important point is that you gain the opportunity to make a decision at the time of the greatest awareness, and you can also easily replace a specific implementation with any other. This responsibility is assigned to the Repository.
javascript  programming  webdev 
5 days ago by jayfree
Down with the Bloody Repository! | Repository Pattern
Instead of working with a database, you work with a collection. You track which objects are modified in, what gets added to, and what gets removed from this collection. After some amount of work is completed, that collection is synced back to the database.
programming  javascript  webdev 
12 days ago by jayfree
Software disenchantment @ tonsky.me
As a general trend, we’re not getting faster software with more features. We’re getting faster hardware that runs slower software with the same features. Everything works way below the possible speed. Ever wonder why your phone needs 30 to 60 seconds to boot? Why can’t it boot, say, in one second? There are no physical limitations to that. I would love to see that. I would love to see limits reached and explored, utilizing every last bit of performance we can get for something meaningful in a meaningful way.
performance  programming  webdev  journalism 
18 days ago by jayfree
Idle Until Urgent — Philip Walton
Idle-until-urgent sidesteps most of the downsides I described in the previous section. In the worst case, it has the exact same performance characteristics as lazy evaluation, and in the best case it doesn’t block interactivity at all because execution happens during idle periods.
javascript  performance  programming  webdev 
29 days ago by jayfree
npm ci | npm Documentation
This command is similar to npm-install, except it's meant to be used in automated environments such as test platforms, continuous integration, and deployment. It can be significantly faster than a regular npm install by skipping certain user-oriented features. It is also more strict than a regular install, which can help catch errors or inconsistencies caused by the incrementally-installed local environments of most npm users.
programming  webdev 
5 weeks ago by jayfree
Glitch - The Friendly, Creative Community (Codepen-esque)
Glitch is the friendly community where you'll build the app of your dreams
app  programming  webdev 
12 weeks ago by jayfree
You Give REST a Bad Name - YouTube
A parody of 'You Give Love a Bad Name' - about hypermedia APIs. No, really.
music  video  humour  programming 
july 2018 by jayfree
Game Programming Patterns
I’m here to help! Game Programming Patterns is a collection of patterns I found in games that make code cleaner, easier to understand, and faster.
december 2017 by jayfree
React Patterns by React Training
Here are links to all the lectures from our Advanced React Free online course. We’re known for teaching not just how, but why and when you would use these patterns. Purchase the full course here to unlock the hands-on exercises and guided solutions to deepen your mastery of each concept, but please enjoy these free videos on the house!
programming  react  video  webdev 
december 2017 by jayfree
Chicken chicken chicken: chicken chicken
If you haven't already read the paper (or seen the presentation) already, I recommend that you do. It inspired me to create a programming language with only a single valid symbol. The result is a very small and simple language that is as easy to program as it is to say "chicken".
humour  programming 
october 2017 by jayfree
Emojicode is an open-source, full-blown programming language consisting of emojis.
programming  humour 
october 2017 by jayfree
The Observer Pattern in JavaScript explained
Imagine that you have to update multiple elements simultaneously when some event occurs (typing inside the input field perhaps). You need to be able to add more (subscribe) elements that react (observe) to a change of an input value. Removing subscriptions (unsubscribe) can be handy if you no longer need to broadcast state changes to a particular object. Do you get the idea now? Let’s code it!
javascript  programming  webdev 
august 2017 by jayfree
Master the JavaScript Interview: What’s the Difference Between Class & Prototypal Inheritance?
Master the JavaScript Interview: What’s the Difference Between Class & Prototypal Inheritance?
javascript  programming  webdev 
august 2017 by jayfree
Pomax/react-onclickoutside: An onClickOutside wrapper for React components
This is a React Higher Order Component (HOC) that you can use with your own React components if you want to have them listen for clicks that occur somewhere in the document, outside of the element itself (for instance, if you need to hide a menu when people click anywhere else on your page).
javascript  programming  plugin  react 
june 2017 by jayfree
Conditionally adding entries inside Array and object literals
This blog post shows how you can conditionally add elements inside Array literals and properties inside object literals.
javascript  programming  webdev 
may 2017 by jayfree
Dipping a toe into functional JS with lodash/fp – simonsmith.io
Thankfully it’s quite easy to start writing JS in a functional way, even if it’s just in small doses. So now I’ll go through some small examples that will hopefully inspire you to carry on.
javascript  programming  webdev 
may 2017 by jayfree
This metaphor struck me as a way of describing a way of doing a rewrite of an important system. Much of my career has involved rewrites of critical systems. You would think such a thing as easy - just make the new one do what the old one did. Yet they are always much more complex than they seem, and overflowing with risk. The big cut-over date looms, the pressure is on. While new features (there are always new features) are liked, old stuff has to remain. Even old bugs often need to be added to the rewritten system.
april 2017 by jayfree
fitteR happieR
Radiohead has been my favorite band for a while, so I am used to people politely suggesting that I play something “less depressing.” Much of Radiohead’s music is undeniably sad, and this post catalogs my journey to quantify that sadness, concluding in a data-driven determination of their most depressing song.
humour  music  programming 
february 2017 by jayfree
Douglas Crockford - The Better Parts on Vimeo
This talk is about using programming languages more effectively, and using that experience to create and select better programming languages. There are bad practices in software development that are so old and well established that it is difficult to recognize the problems they cause. There will be a review of the new good parts in ES6. JSON will also be mentioned.
javascript  video  conference  webdev  programming 
february 2017 by jayfree
How to Use Classes and Sleep at Night – Medium
There is a growing sentiment in the JavaScript community that ES6 classes are not awesome:Classes obscure the prototypal inheritance at the core of JS.Classes encourage inheritance but you should
javascript  webdev  programming 
december 2016 by jayfree
And it's gone —The true cost of interruptions - JAXenter
If two hours go by and no one interrupts you, consider yourself lucky. According to an article by Game Developer Magazine
programming  productivity 
december 2016 by jayfree
Top monospaced fonts for coding
A good choice of font for your coding can make a huge difference and improve your productivity, so take a look at the fonts in this post that can make your text editor or terminal emulator look little bit nicer.
font  programming  typography 
november 2016 by jayfree
NARKOZ/hacker-scripts: Based on a true story
xxx: OK, so, our build engineer has left for another company. The dude was literally living inside the terminal. You know, that type of a guy who loves Vim, creates diagrams in Dot and writes wiki-posts in Markdown... If something - anything - requires more than 90 seconds of his time, he writes a script to automate that.
automation  programming  humour 
september 2016 by jayfree
Programming Sucks
All programmers are forcing their brains to do things brains were never meant to do in a situation they can never make better, ten to fifteen hours a day, five to seven days a week, and every one of them is slowly going mad.
programming  humour 
september 2016 by jayfree
The art of writing small and plain functions
Bad article but good comment:

Abstractions often obfuscate simplicity, trading reduced micro complexity for increased macro complexity i.e. individual functions become simpler but the overall flow of the program can become more difficult to grasp and to adapt for future changes. A single, slightly messy function can be a lot easier to understand and maintain than having the same logic scattered across multiple "clean" functions.

When the logic inevitably needs to change, the current division of labor across functions may no longer be sensible or convenient. A common example is realising you need some additional data in just one function which has been abstracted out and is 5 calls deep. This now requires some unpleasant restructuring e.g. changing all the parents in the chain to add a new argument or change the signatures to pass an options object instead of individual args, or some other hackery; and it's not uncommon for whatever purity there was in the original design to be blown away by these unpredictable, future changes. The "cleanliness" or elegance of the original, now incorrect, solution can make future changes many times more complicated than they would have been if the logic hadn't been prematurely modularized in the first place.

See this article where John Carmack makes some good arguments against splitting logic across multiple functions: http://number-none.com/blow/jo...
javascript  programming 
september 2016 by jayfree
Enterprise software marks a special high-grade class of software that makes careful use of relevant software architecture design principles to build particularly customizable and extensible solutions to real problems. This project is an example of how the popular FizzBuzz game might be built were it subject to the high quality standards of enterprise software.
humour  programming 
june 2016 by jayfree
Parody O'Reilly Covers
Images of coding and books uploaded by theStrayKing
book  books  programming  humour 
april 2016 by jayfree
ES6 In Depth: Iterators and the for-of loop
ES6 In Depth is a series on new features being added to the JavaScript programming language in the 6th Edition of the ECMAScript standard, ES6 for short.
javascript  programming 
february 2016 by jayfree
Monospaced font with programming ligatures
font  programming 
may 2015 by jayfree
Global Variables Are Bad
This is something I have a hard time putting in words. I've been bitten by globals in the past, so I 'know' they're 'bad', but for the life of me, I can't explain why. What I'd like is to have some straightforward "Here's why globals are bad" document I can point other people to, preferably with some concrete (if toy) examples.
development  programming  tutorial  javascript 
february 2015 by jayfree
Generation Javascript
First of all, there’s the the trap of getting caught up in speed. It is one thing to get to a reasonable functionality in a short time, and another one entirely to build a piece of software that can be maintained or worked with in a team over an extended period of time. It is all too tempting to leave working code as-is, withouth refining it or improving it in a timely fashion. And before you know it, someone else has picked it up, or you yourself have picked it up again, copy-pasted it (god forbid!) or increased its complexity where there would have been a simpler solution would you have given it some more thought.
javascript  programming 
december 2014 by jayfree
King James Programming
Posts generated by a Markov chain trained on the King James Bible, Structure and Interpretation of Computer Programs, and Why's Poignant Guide to Ruby. Run by Michael Walker (barrucadu).
humour  programming 
september 2014 by jayfree
Become a Programmer, Motherfucker
Collection of links to articles/talks/tutorials on programming.
programming  tutorial  javascript 
july 2014 by jayfree
Must-See Tech Talks for Every Programmer
I love a good tech talk. I like to watch them, I like to give them, and now that I have lots of free time on my hands, I've put together a list of the must-see talks for every programmer. In this list, I've avoided language or library specific talks and instead focused on high-level, general topics that apply to everyone:
programming  video 
may 2014 by jayfree
Programming Sucks
Remember that stuff about crazy people and bad code? The internet is that except it's literally a billion times worse.
programming  webdev  humour  from instapaper
may 2014 by jayfree
Introduction to Programs Data Types and Variables | Computer science | Khan Academy
Writing a basic program. Basics of data types, variables and conditional statements
tutorial  guide  programming 
february 2013 by jayfree

Copy this bookmark: