Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "example"


#discussSOLID PRINCIPLES: To start with Object-oriented programming

  • On my way out of the room, I felt like I was definitely in a need of researching about solid principles to properly start off going further to object-oriented programming world in the right direction.
  • It could look like a minor work at the moment because this example we have right here is extremely simple but imagine there are hundreds or even thousands of classes, it would be better off preventing confusions in advance by implementing these principles.
  • In this way, we don't need to specify the name of the class in the class name Board, so whenever we want to add more properties something like Rectangle we can easily add a class named itself and implements Shape interface so that we can use area() in a Board class.

save | comments | report | share on


#discussSOLID PRINCIPLES: To start with Object-oriented programming

  • On my way out of the room, I felt like I was definitely in a need of researching about solid principles to properly start off going further to object-oriented programming world in the right direction.
  • It could look like a minor work at the moment because this example we have right here is extremely simple but imagine there are hundreds or even thousands of classes, it would be better off preventing confusions in advance by implementing these principles.
  • In this way, we don't need to specify the name of the class in the class name Board, so whenever we want to add more properties something like Rectangle we can easily add a class named itself and implements Shape interface so that we can use area() in a Board class.

save | comments | report | share on


Remove Richard Stallman: Appendix A

  • I feel that the response to my post had little to do with me personally — it was somehow an alignment of the stars between all the media attention on MIT, the modern political climate, and some well-timed writing.
  • This plainly shows that students were feeling the negative effects of people like Richard Stallman around the campus as long as thirty years before this email incident — even those like Betsy, outside of CSAIL.
  • I do not think Richard Stallman ever met even a low ethical standard for being at any university, and I am questioning mostly why this was allowed to continue for so, so long.
  • A lot of people have asked me, over the past week, how I was feeling about all the negative comments on my initial blog post and any negative emails or direct messages I was sent.

save | comments | report | share on


How to use the methods from other objects in JavaScript

  • And although hard to read, this lines of code are so useful because they allow you to apple array specific methods to collections that not necessarily are arrays, such as NodeLists and the Arguments object.
  • This particular line of code [].slice.apply(arguments) allows us to easily convert an object that looks and possible behaves like an array but that is not array, another common example aside from the arguments object is the NodeList objects such as the ones returned from the querySelectorAll function.
  • What this line of code let me thinking about after reading it, was in how JavaScript allows us to call methods from objects that do not posses these methods in its prototype, which I believe fits into the duck typing philosophy that languages such as Ruby have made so popular.

save | comments | report | share on


How to use the methods from other objects in JavaScript

  • And although hard to read, this lines of code are so useful because they allow you to apple array specific methods to collections that not necessarily are arrays, such as NodeLists and the Arguments object.
  • This particular line of code [].slice.apply(arguments) allows us to easily convert an object that looks and possible behaves like an array but that is not array, another common example aside from the arguments object is the NodeList objects such as the ones returned from the querySelectorAll function.
  • What this line of code let me thinking about after reading it, was in how JavaScript allows us to call methods from objects that do not posses these methods in its prototype, which I believe fits into the duck typing philosophy that languages such as Ruby have made so popular.

save | comments | report | share on


Gradient Descent: Show Me the Math!

  • With the many customizable examples for PyTorch or Keras, building a cookie cutter neural networks can become a trivial exercise.
  • The output of a layer is determined by the weights between layers, therefore the error that results from the units is scaled by the corresponding weights.
  • We also apply a sigmoid activation function at the hidden and output units.
  • Note that if we have a lot of layers, using a sigmoid activation function will quickly reduce the weight steps to tiny values in layers near the input.
  • We can do the same as above in NumPy using a slightly more complex network: three input nodes, 2 hidden nodes, one output layer.
  • With the exercises above we can develop a better understanding of errors, activation functions, and perhaps build a python class for a neural net.

save | comments | report | share on


Gradient Descent: Show Me the Math!

  • With the many customizable examples for PyTorch or Keras, building a cookie cutter neural networks can become a trivial exercise.
  • The output of a layer is determined by the weights between layers, therefore the error that results from the units is scaled by the corresponding weights.
  • We also apply a sigmoid activation function at the hidden and output units.
  • Note that if we have a lot of layers, using a sigmoid activation function will quickly reduce the weight steps to tiny values in layers near the input.
  • We can do the same as above in NumPy using a slightly more complex network: three input nodes, 2 hidden nodes, one output layer.
  • With the exercises above we can develop a better understanding of errors, activation functions, and perhaps build a python class for a neural net.

save | comments | report | share on


Show HN: Vue-file-agent 1.2: Uploader with multi-file, preview, progress support

  • NOTE: when uploadUrl is provided, auto uploading is enabled.
  • See Advanced Usage section below for manual uploading example.
  • Yes. That’s it.
  • It’s that simple.
  • See Advanced Usage section below to tailor it for your specific needs.

save | comments | report | share on