recentpopularlog in

BestPractices

« earlier   
Callbacks, synchronous and asynchronous : Havoc's Blog
A synchronous callback is invoked before a function returns, that is, while the API receiving the callback remains on the stack. An example might be: list.foreach(callback); when foreach() returns, you would expect that the callback had been invoked on each element. An asynchronous or deferred callback is invoked after a function returns, or at least on another thread's stack. Mechanisms for deferral include threads and main loops (other names include event loops, dispatchers, executors). Asynchronous callbacks are popular with IO-related APIs, such as socket.connect(callback); you would expect that when connect() returns, the callback may not have been called, since it's waiting for the connection to complete. A given callback should be either always sync or always async, as a documented part of the API contract. Not uncommonly, it may be possible to invoke a callback immediately in some situations (say, data is already available) while the callback needs to be deferred in others (the socket isn't ready yet). The tempting thing is to invoke the callback synchronously when possible, and otherwise defer it. Not a good idea. Because sync and async callbacks have different rules, they create different bugs. It's very typical that the test suite only triggers the callback asynchronously, but then some less-common case in production runs it synchronously and breaks. (Or vice versa.) Requiring application developers to plan for and test both sync and async cases is just too hard, and it's simple to solve in the library: If the callback must be deferred in any situation, always defer it.
programming  asynchronous  design  designpatterns  bestpractices  architecture 
2 hours ago by dlkinney
SEO Tools
Comprehensive suite of advanced, specialised & free SEO tools.


refrr:https://robhammond.co/tools/seo-crawler
Comprehensive suite of advanced, specialised & free SEO tools.


refrr:https://robhammond.co/tools/seo-crawler
tools  audio  scanner  checklist  checker  bestpractices  styleguide  seo   
9 hours ago by michaelfox
What You Need To Know To Increase Mobile Checkout Conversions
Data tells us that there are more mobile than desktop web visits. However, mobile conversion rates are still lagging behind those on desktop. This article will dig into why your mobile visitors are willing to ditch their purchases altogether.
bestpractices  ecommerce  shop  mobile  markdown  styleguide 
9 hours ago by michaelfox
Git team workflows: merge or rebase?
The question is simple: In a software team using git and feature branching, what’s the best way to incorporate finished work back to your main line of development? It’s one of those recurring debates where both sides have strong opinions, and mindful conversation can sometimes be hard (for other examples of heated debate see: The … Read More


refrr:https://www.atlassian.com/blog/page/11
The question is simple: In a software team using git and feature branching, what’s the best way to incorporate finished work back to your main line of development? It’s one of those recurring debates where both sides have strong opinions, and mindful conversation can sometimes be hard (for other examples of heated debate see: The … Read More


refrr:https://www.atlassian.com/blog/page/11
git  workflow  processes  styleguide  bestpractices  shell  cli  tools 
yesterday by michaelfox
The essence of branch-based workflows
Two weeks ago I had the pleasure of speaking at the Jazoon conference in Switzerland about Git workflows. One particular piece that seemed to resonate well with the audience was the idea of looking at the underlying rules when it comes to branch based workflows. Workflows A workflow defines steps that represent how your team … Read More

#git-branching


refrr:https://www.atlassian.com/blog/page/11
git  workflow  processes  styleguide  bestpractices  shell  cli  tools 
yesterday by michaelfox
Simple Git workflow is simple
Many teams have already migrated to git and many more are transitioning to it now. Apart from training single developers and appointing Champions to help with the adoption it is imperative to pick a nice and simple code collaboration practice that does not complicate things too much. With git one can definitely conjure very complicated workflows, I’ve … Read More


refrr:https://www.atlassian.com/blog/page/11
Many teams have already migrated to git and many more are transitioning to it now. Apart from training single developers and appointing Champions to help with the adoption it is imperative to pick a nice and simple code collaboration practice that does not complicate things too much. With git one can definitely conjure very complicated workflows, I’ve … Read More


refrr:https://www.atlassian.com/blog/page/11
git  workflow  processes  styleguide  bestpractices  shell  cli  tools 
yesterday by michaelfox

Copy this bookmark:





to read