How to get multiple, random, unique elements from a JavaScript array
As a note to self, this JavaScript code gets multiple, random, unique elements from a JavaScript array and displays three of those elements in the second div:
As a note to self, this JavaScript code gets multiple, random, unique elements from a JavaScript array and displays three of those elements in the second div:
This medium.com article has some good, simple tips on how to improve your UI design. Also, this eloquentjavascript.net website/book might be good for people interested in JavaScript.
With Twitter being Twitter, I saw this image there, and now I can’t find it again. But it shows that the new iPhone 8 is significantly faster at rendering a cnn.com page.
Actually, since I can’t find the original source, I don’t know if they both rendered mobile web pages, or whether they tried several times to make sure it wasn’t just a hiccup. But seeing that the architecture in a little phone can come anywhere near the performance of a desktop/laptop processor that’s still being sold makes one wonder about the future.
Update: I think this was the original source of the image.
FLiB is a fast, free internet browser for Android devices. Read on for more details ...
Parinfer is a tool that is currently in development, and it’s intended to help with the management of all those parentheses in languages like Lisp and Clojure. It looks like it is written in JavaScript, and intended to work with editors like Atom and Sublime Text.
In the last post about Mary Rose Cook, the reason I originally found her work again today is because she wrote a Little Lisp interpreter in JavaScript. (116 lines of code.) As shown in the image, the beginning of the article is a very quick introduction to Lisp.
This image is from a tutorial titled, Learning FP: Experiences on the Elm language.
I don’t know much about Elm yet, other than it’s an FP language for writing browser code, and it looks a lot like Haskell. As the tutorial author states, “Elm is a programming language that compiles to HTML5: HTML, CSS and JavaScript.” Another good quote is, “There are no worries about bugs due to weird mixed state as the state is always a direct result of input.”
This is a short series of quotes about learning from the book, A Smarter Way to Learn JavaScript. (With 947 reviews, that may be the most-reviewed technical book on Amazon.) It reminds me of the old quote by Sophocles that I learned in college, One learns by doing the thing.
I’ve written a couple of small Sencha ExtJS applications lately, and I can confirm that the following technique works to display a splash screen while your application is loading.
(This isn’t a tutorial per se. I assume that you know how to use ExtJS, and just want to see how to implement a splash screen (loading page) as the user waits for the application to load.)
In short, you’ll want code like this in your Ext.application
function:
There are probably better ways to do this, but here’s a JavaScript function I wrote for a Sencha ExtJS application that extracts the text from an anchor tag (hyperlink):