Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "javascript"


JavaScript Charts on Jupyter Notebooks

  • In the following, I’ll show you how to put a Jupyter notebook on steroids, implementing an interactive and filterable visualization with just a few lines of JavaScript.
  • A very simple way to make the data accessible to all the other cells is to save the output in a window property: i.e. we are going to save the JSON string in the global variable window.outputVar. While storing things in window is almost NEVER a best practice when it comes to JavaScript development, I think that we can accept this compromise to keep the code a bit simpler.
  • While storing things in window is almost NEVER a best practice when it comes to JavaScript development, I think that we can accept this compromise to keep the code a bit simpler.

save | comments | report | share on


JavaScript Charts on Jupyter Notebooks

  • In the following, I’ll show you how to put a Jupyter notebook on steroids, implementing an interactive and filterable visualization with just a few lines of JavaScript.
  • A very simple way to make the data accessible to all the other cells is to save the output in a window property: i.e. we are going to save the JSON string in the global variable window.outputVar. While storing things in window is almost NEVER a best practice when it comes to JavaScript development, I think that we can accept this compromise to keep the code a bit simpler.
  • While storing things in window is almost NEVER a best practice when it comes to JavaScript development, I think that we can accept this compromise to keep the code a bit simpler.

save | comments | report | share on


The Six Levels of Interaction with a System

  • Let's go through the levels one-by-one, continuing our use of a car as the example.
  • In our car, you know to occasionally review the dashboard for things like the engine light.
  • It's patently obvious that there are levels of understanding even beyond our Level 5 skill of being able to "take apart a computer and install something new in it." Like, how does a hard drive even work?
  • Whereas, Jeremy Howard and Rachel Thomas of the Fast.ai deep learning course go straight for Level 1, making students feel comfortable "using deep learning to do cool things first", and then and only then start peeling back the layers (good word choice here, I think, given the context) to the complexities beneath the surface.
  • Is this six-levels thing a brilliant and new grand unified theorem of learning systems?

save | comments | report | share on


Type Safety with Native JavaScript

  • A type error occurs when an unintended or incompatible type value is provided to a function or expression, usually as an argument or context.
  • We probably all have seen a JavaScript application or two where a single symbol like watches is used as an object, a map, a list, a boolean flag, a string, an integer, and a floating point number all in different contexts.
  • Many JavaScript operators are polymorphic and will return values of different types dependant on the types of variables used.
  • Let’s adjust our example function to use castInt and castFn to ensure the provided arguments are the correct type.
  • Thanks to the naming convention we can tell that tell that fn should be a function and and idx should be an integer immediately without the need to read other code, add mark-up comments, or employ any transpiling.

save | comments | report | share on


What CSS developers do and why you need one

  • In this article, I would like to familiarize everyone with what the job encompasses so you can get a better understanding of why every site needs a reliable, professional CSS developer.
  • Using a good naming convention, like BEM or OOCSS, should prevent writing bloated HTML or unmaintainable CSS code.
  • CSS developers think inside the box, predict content modifications, and avoid fixed numbers whenever possible while trying to write as less code as possible without overriding default values and context.
  • But not every one of them could fix every CSS bug or implement the design without convoluting HTML code or relying on JavaScript where it is not necessary.
  • A professional CSS developer cares about the code to the final details, enjoys creating layouts and components, even the most complicated ones, and knows how to solve every problem or a bug.
  • Writing CSS code implies handling cross-browser issues, bugs, animations, transitions, responsivity, and print styles.

save | comments | report | share on