Posts

10 Interview Questions Every JavaScript Developer Should Know AKA: The Keys to JavaScript Mastery

https://medium.com/javascript-scene/10-interview-questions-every-javascript-developer-should-know-6fa6bdf5ad95 1. Can you name two programming paradigms important for JavaScript app developers? Prototypal inheritance (also: prototypes, OLOO). Functional programming (also: closures, first class functions, lambdas). What is functional programming? Pure functions / function purity. Avoid side-effects. Simple function composition. Examples of functional languages: Lisp, ML, Haskell, Erlang, Clojure, Elm, F Sharp, OCaml, etc… Mention of features that support FP: first-class functions, higher order functions, functions as arguments/values. What is the difference between classical inheritance and prototypal inheritance? Classes: create tight coupling or hierarchies/taxonomies. Prototypes: mentions of concatenative inheritance, prototype delegation, functional inheritance, object composition. 4. What are the pros and cons of functional programming vs object-oriented progra...

Datascroller - lazyloading- primeng-Angular7

angular 7 , Primeng-7, Datascroller - lazy loading for unlimited db size DataScroller displays data with on demand loading using scroll. data scroller https://stackblitz.com/edit/angular-cxw4dq?embed=1&file=src/app/app.component.ts

material angular chip with auto complete

Here is the beginning of my post. And here is the rest of it. https://stackblitz.com/angular/klblpljogjd?embed=1&file=app/chips-autocomplete-example.ts&hideExplorer=1 https://klblpljogjd.angular.stackblitz.io

reg-expression for URL check

reg-expression for URL check And here is the rest of it. ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9A-Z]+([\-\.]{1}[a-z0-9A-Z]+)*\.[a-zA-Z]{2,5}(:[0-9]{1,5})?(\/.*)?$

epouch time to normal time in angular 5

A custom pipe for converting epouch time to normal time in angular 5 https://github.com/carthworks/AngularJsTips/blob/master/epochToDate

css snippet : place-hold when alt tag in not present the img

css snippet : place-hold when alt tag in not present the img img:not([alt]){ border:1px dashed #c00 }

Structure for Javascript Development

Image
It is not a core developer stuff to read, for designers !! Whenever i start client side javascript programming, used to struggle where to start from start i. So, my designer 'mind found' this snippet, useful to start. Happy coding! var ProjectName = function() { var fnNameA = function() { console.log("fnNameA called")}; var fnNameB = function() { console.log("fnNameB called")}; return { init: function() { // init table, chart fnNameA(); fnNameB(); } }; }(); function FnNameC (){console.log("fnNameC called")}; jQuery(document).ready(function() { ProjectName.init(); // function that need to initialise on start FnNameC(); });