Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "method"


DNA may soon be used to store computer data

  • Catalog, a biotechnology firm in Boston, hopes to bring the cost of DNA data-storage below $10 per gigabyte.
  • But for really large storage requirements a second ratio also comes into play: gigabytes stored per cubic metre.
  • The obvious temptation when designing a DNA-based storage system is to see the ones and zeros of binary data and the chemical base pairs (AT and GC) of deoxyribose nucleic acid as equivalent, and simply to translate the one into the other, with each file to be stored corresponding to a single, large DNA molecule.
  • Unfortunately, this yields molecules that are hard for sequencing machines to read when the time comes to look at what data the DNA is encoding.
  • The order of the short molecular units within a longer molecule encodes, according to a rule book devised by the company, the data to be stored.

save | comments | report | share on


We Removed jQuery

  • Prior to that, we were already using Gulp to minify our CSS and JavaScript before we drupal_add_js() it on our site, but we found that we were using a lot of repetitive code in our JavaScript files for each of our custom templates.
  • Before our jQuery removal refactoring, the bundle file on our most popular content type, article.min.js, was 139kb minified (gzipped 47kb).
  • Also we've tested the JavaScript computation time on mobile devices, which accounts for 70% of site traffic, and we found that on average we are saving roughly 177 ms of processing time for our article.min.js file compared with the jQuery version.
  • That time savings is even larger on older devices and on antiquated jQuery plugins, which don't utilize newer browser APIs like MutationObserver and Intersection Observer.

save | comments | report | share on


Object Oriented Ruby

  • The ways that we learned to build methods before are now making sense in the context of a class.
  • One of the most recent ‘Aha!” moments that I’ve had was related to the reader and writer methods that are involved in building a class.
  • Then, somewhere along the way, I realized that when we call name= (or any variable=) in our program, we are setting that variable equal to a value for a particular instance of a class.
  • We also need an additional method to recognize that value and allow it to be referenced and operated on with all the capabilities that the class has to offer, hence the necessity for the reader method that includes the @variable, the instance variable.
  • Writing out the reader and writer methods is the foundation, and using attr_accessor is the next level of abstraction that streamlines our code and makes our lives easier.

save | comments | report | share on


Object Oriented Ruby

  • The ways that we learned to build methods before are now making sense in the context of a class.
  • One of the most recent ‘Aha!” moments that I’ve had was related to the reader and writer methods that are involved in building a class.
  • Then, somewhere along the way, I realized that when we call name= (or any variable=) in our program, we are setting that variable equal to a value for a particular instance of a class.
  • We also need an additional method to recognize that value and allow it to be referenced and operated on with all the capabilities that the class has to offer, hence the necessity for the reader method that includes the @variable, the instance variable.
  • Writing out the reader and writer methods is the foundation, and using attr_accessor is the next level of abstraction that streamlines our code and makes our lives easier.

save | comments | report | share on