# Latest

**URL:** https://forum.kirupa.com/latest.md?page=92

[Latest](https://forum.kirupa.com/latest.md) · [Categories](https://forum.kirupa.com/categories.md)

**Page:** 93

---

## [Simplicity Rules - Or Should It ?](https://forum.kirupa.com/t/simplicity-rules-or-should-it/644372)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 3\
**Last updated:** [September 30, 2020, 3:20pm UTC](https://forum.kirupa.com/t/simplicity-rules-or-should-it/644372 "2020-09-30T15:20:44Z")

</div>

// Object oriented programming /\* Winston - nickname - age - x - y \*/ var Winston = function(nickname, age, x, y) { this.nickname = nickname; this.age = age + "yrs old"; this.x = x; this.y = y;…

---

## [Calling an Object with a Function](https://forum.kirupa.com/t/calling-an-object-with-a-function/644318)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 11\
**Last updated:** [September 26, 2020, 1:52am UTC](https://forum.kirupa.com/t/calling-an-object-with-a-function/644318 "2020-09-26T01:52:52Z")

</div>

this code should be putting out the following - at the co-ordinates specified. But of course it doesn’t. I have to admit that this is quite a complex thought process but I thought I had it right with the code. What a…

---

## [Trying to code Snake Game](https://forum.kirupa.com/t/trying-to-code-snake-game/644316)

<div class="topic-metadata">

**Author:** [@HenryHell0](https://forum.kirupa.com/u/HenryHell0)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 5:48pm UTC](https://forum.kirupa.com/t/trying-to-code-snake-game/644316 "2020-09-25T17:48:43Z")

</div>

Im mew to javascript and am trying to make a snake game. I have everything minus the loosing part. Heres my code: var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); var gs = 20; var xpo…

---

## [How to increase the speed of opencart website?](https://forum.kirupa.com/t/how-to-increase-the-speed-of-opencart-website/644336)

<div class="topic-metadata">

**Author:** [@Rahul\_Kumar](https://forum.kirupa.com/u/Rahul_Kumar)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 7:29am UTC](https://forum.kirupa.com/t/how-to-increase-the-speed-of-opencart-website/644336 "2020-09-25T07:29:20Z")

</div>

Hello everyone, I want to increase the speed of my website by uploading images on cloud CDN. Can anyone tell me how to do it? Is there any extension to do so? Thanks and Regards

---

## [Finding Elements In The DOM Using querySelector | KIRUPA](https://forum.kirupa.com/t/finding-elements-in-the-dom-using-queryselector-kirupa/636210)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 5\
**Last updated:** [September 24, 2020, 8:49am UTC](https://forum.kirupa.com/t/finding-elements-in-the-dom-using-queryselector-kirupa/636210 "2020-09-24T08:49:01Z")

</div>

As you saw in the JavaScript, the Browser, and the DOM tutorial, your DOM is nothing more than a tree-like structure made up of all the elements that exist in your HTML document: This is a companion discu…

---

## [Those Pesky Stars](https://forum.kirupa.com/t/those-pesky-stars/644255)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 6\
**Last updated:** [September 21, 2020, 8:03pm UTC](https://forum.kirupa.com/t/those-pesky-stars/644255 "2020-09-21T20:03:32Z")

</div>

So I have come along with this project quite nicely and at the moment, the enclosed code gives me the following - the final task is to get the 4 stars into the other 2 books. Previously, I did get the stars in all 3 …

---

## [Typical Distribution of Letters in English Text](https://forum.kirupa.com/t/typical-distribution-of-letters-in-english-text/644248)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 19, 2020, 5:51am UTC](https://forum.kirupa.com/t/typical-distribution-of-letters-in-english-text/644248 "2020-09-19T05:51:12Z")

</div>

(from here) This makes Wheel of Fortune’s RSTLNE letters provided for “free” in the last round make more sense :slight\_smile: :bookmark:

---

## [Using codepen.io as a testbed...SOLVED](https://forum.kirupa.com/t/using-codepen-io-as-a-testbed-solved/644230)

<div class="topic-metadata">

**Author:** [@Brian\_Pettitt](https://forum.kirupa.com/u/Brian_Pettitt)\
**Replies:** 1\
**Last updated:** [September 19, 2020, 2:13am UTC](https://forum.kirupa.com/t/using-codepen-io-as-a-testbed-solved/644230 "2020-09-19T02:13:27Z")

</div>

EDIT: I was able to work out this issue. I had to change the \<div\>'s at the bottom to . I also think (but am not sure) that the spacing on the return statements is important. It seems to require them to be on the same li…

---

## [New Decorators for JS Proposal (Again)](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 2\
**Last updated:** [September 16, 2020, 2:22am UTC](https://forum.kirupa.com/t/new-decorators-for-js-proposal-again/644165 "2020-09-16T02:22:10Z")

</div>

The proposal for decorators in JavaScript has been updated… again. This will mark, if my counting is correct, the 4th major revision of this specification. If anyone is curious about the previous 3 iterations, I have a…

---

## [Why don't work letterStyle ?](https://forum.kirupa.com/t/why-dont-work-letterstyle/644182)

<div class="topic-metadata">

**Author:** [@reexel](https://forum.kirupa.com/u/reexel)\
**Replies:** 3\
**Last updated:** [September 15, 2020, 9:46am UTC](https://forum.kirupa.com/t/why-dont-work-letterstyle/644182 "2020-09-15T09:46:22Z")

</div>

Hello, all! I read book from Kirupa. It contains this code: \<! DOCTYPE html\> \<html\> \<head\> \<meta charset="utf-8"\> \<title\>React\</title\> \<script src="https://unpkg.com/react@16/umd/react.development.js"\>\</s…

---

## [Behind the burn, there is a good point :P](https://forum.kirupa.com/t/behind-the-burn-there-is-a-good-point-p/644175)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [September 15, 2020, 3:33am UTC](https://forum.kirupa.com/t/behind-the-burn-there-is-a-good-point-p/644175 "2020-09-15T03:33:40Z")

</div>

:grinning:

---

## [I Have Done This Before](https://forum.kirupa.com/t/i-have-done-this-before/644138)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 10\
**Last updated:** [September 14, 2020, 2:27am UTC](https://forum.kirupa.com/t/i-have-done-this-before/644138 "2020-09-14T02:27:57Z")

</div>

I have gone over this before so it pains me to have to backtrack but this code is meant to output 3 rectangles, each of a different color, sitting on a bookshelf - but nothing prints out - I checked my array and it looks…

---

## [Bad Idea: Animating Text Size/Scale](https://forum.kirupa.com/t/bad-idea-animating-text-size-scale/644151)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 13, 2020, 8:02am UTC](https://forum.kirupa.com/t/bad-idea-animating-text-size-scale/644151 "2020-09-13T08:02:29Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/animations/bad\_idea\_animating\_text\_size\_scale.htm

---

## [Portfolio for review](https://forum.kirupa.com/t/portfolio-for-review/644038)

<div class="topic-metadata">

**Author:** [@Umair\_Ashraf](https://forum.kirupa.com/u/Umair_Ashraf)\
**Replies:** 4\
**Last updated:** [September 12, 2020, 4:36pm UTC](https://forum.kirupa.com/t/portfolio-for-review/644038 "2020-09-12T16:36:40Z")

</div>

Hello guys, I have been using this forum for a while and found it quite helpful and informative and i am looking to get an honest opinion about my portfolio. I have started to learn coding 4 months ago and really enjoy…

---

## [AVIF Images](https://forum.kirupa.com/t/avif-images/644111)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 3\
**Last updated:** [September 12, 2020, 5:47am UTC](https://forum.kirupa.com/t/avif-images/644111 "2020-09-12T05:47:59Z")

</div>

Someone from work just shared this and I thought it was pretty impressive: AV1 Image File Format (AVIF) (pronounced \[əˈ vif\]) is an image file format specification for storing images or image sequences compressed wit…

---

## ["Shooting Stars"](https://forum.kirupa.com/t/shooting-stars/644144)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 1\
**Last updated:** [September 11, 2020, 7:12pm UTC](https://forum.kirupa.com/t/shooting-stars/644144 "2020-09-11T19:12:46Z")

</div>

var x = 15; var y = 15; draw = function() { background(0, 255, 234); fill(255, 162, 0); ellipse(x,y,15,15); x +=1; y +=1; }; this codes for a “shooting star” that goes from upper left to lower right now I would…

---

## [Perfect way to cook bacon!](https://forum.kirupa.com/t/perfect-way-to-cook-bacon/644139)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 11, 2020, 3:58am UTC](https://forum.kirupa.com/t/perfect-way-to-cook-bacon/644139 "2020-09-11T03:58:48Z")

</div>

I started getting worried when the process became increasingly more complex (for higher scores) as I was going down the list. Luckily, the 10/10 approach of using parchment paper is easy. I use the cast iron skillet ap…

---

## [Recoil State Management for React](https://forum.kirupa.com/t/recoil-state-management-for-react/644135)

<div class="topic-metadata">

**Author:** [@senocular](https://forum.kirupa.com/u/senocular)\
**Replies:** 0\
**Last updated:** [September 10, 2020, 2:38pm UTC](https://forum.kirupa.com/t/recoil-state-management-for-react/644135 "2020-09-10T14:38:14Z")

</div>

Recoil is the hot, new (experimental) state management library coming out of Facebook for React. Makes it easy to efficiently share state update across components using a useState-like Recoil hook. Example (partial) f…

---

## [addEventListener load for Dynamically Loaded Script](https://forum.kirupa.com/t/addeventlistener-load-for-dynamically-loaded-script/644091)

<div class="topic-metadata">

**Author:** [@Shraddha\_Ingale](https://forum.kirupa.com/u/Shraddha_Ingale)\
**Replies:** 5\
**Last updated:** [September 10, 2020, 7:37am UTC](https://forum.kirupa.com/t/addeventlistener-load-for-dynamically-loaded-script/644091 "2020-09-10T07:37:34Z")

</div>

I want to modify css of the container that loaded from dynamic script I tried to use myScript.addEventListener(“load”, scriptLoaded, false); but it is getting null values.

---

## [Title Missing From Book Cover](https://forum.kirupa.com/t/title-missing-from-book-cover/644128)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 3\
**Last updated:** [September 9, 2020, 5:56pm UTC](https://forum.kirupa.com/t/title-missing-from-book-cover/644128 "2020-09-09T17:56:31Z")

</div>

var library = \[ //array of 3 objects { title:”I Know Why The Caged Bird Sings”, author:”R. Michener”, stars:4 }, { title:”Alaric the Goth”, author:"Boin", stars:4 }, { title:”Caesar Invades Gaul”, author:”Gold…

---

## [3 Rectangles - 3 Colors](https://forum.kirupa.com/t/3-rectangles-3-colors/644115)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 3\
**Last updated:** [September 9, 2020, 2:30am UTC](https://forum.kirupa.com/t/3-rectangles-3-colors/644115 "2020-09-09T02:30:18Z")

</div>

fill(173, 117, 33); //draws bookshelf rect(0, 120, width, 10); var library = \[ //array of 3 objects { title:”I Know Why The Caged Bird Sings”, author:”R. Michener”, stars:4, color:(100 + i50, 100 + i50, 100 + i\*…

---

## [React Taxonomy](https://forum.kirupa.com/t/react-taxonomy/644097)

<div class="topic-metadata">

**Author:** [@GregB997](https://forum.kirupa.com/u/GregB997)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 10:34pm UTC](https://forum.kirupa.com/t/react-taxonomy/644097 "2020-09-07T22:34:41Z")

</div>

All, Taxonomy. I love that word. Say it with me… Taxonomy. I think the first time I truly encountered that word was while I was working on my Masters Degree in CS. And I was forced to read thru the ACM ( as any…

---

## [Hidden Topic](https://forum.kirupa.com/t/hidden-topic/643962)

<div class="topic-metadata">

**Author:** [@GregB997](https://forum.kirupa.com/u/GregB997)\
**Replies:** 11\
**Last updated:** [September 7, 2020, 7:33pm UTC](https://forum.kirupa.com/t/hidden-topic/643962 "2020-09-07T19:33:25Z")

</div>

Kirupa and the Mods, As I have explained in a previous post, we are developing a Javascript Frameworks React.js Community College Class, And we are using your “Learning React” book at the text for the class. And I hav…

---

## [Run On Sentence Needs Breaking Up](https://forum.kirupa.com/t/run-on-sentence-needs-breaking-up/644078)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 4:34pm UTC](https://forum.kirupa.com/t/run-on-sentence-needs-breaking-up/644078 "2020-09-07T16:34:26Z")

</div>

var apple = { employees:400, locale: { state:“California”, town:“Palo Alto” }, revenues:1000000 }; fill(100,200,90); textSize(30); text("Apple has " + apple.employees + " people working at " + apple.locale.to…

---

## [Chrome Dev Tools Tricks for Front End Developers](https://forum.kirupa.com/t/chrome-dev-tools-tricks-for-front-end-developers/644083)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 0\
**Last updated:** [September 6, 2020, 5:54pm UTC](https://forum.kirupa.com/t/chrome-dev-tools-tricks-for-front-end-developers/644083 "2020-09-06T17:54:45Z")

</div>

This is a companion discussion topic for the original entry at https://www.kirupa.com/hodgepodge/chrome\_dev\_tools\_for\_frontend\_developers.htm

---

## [I Thought I Had It Solved](https://forum.kirupa.com/t/i-thought-i-had-it-solved/644069)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 3\
**Last updated:** [September 4, 2020, 5:59pm UTC](https://forum.kirupa.com/t/i-thought-i-had-it-solved/644069 "2020-09-04T17:59:15Z")

</div>

this code should result in the following printout Mmm … Mole! Serves: 2 Ingredients: cinnamon cumin cocoa but I am not getting a printout - any idea why? - the code has been run through the Senocular quote tool so…

---

## [I wrote a book on Arrays!](https://forum.kirupa.com/t/i-wrote-a-book-on-arrays/644010)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 4\
**Last updated:** [September 3, 2020, 11:48pm UTC](https://forum.kirupa.com/t/i-wrote-a-book-on-arrays/644010 "2020-09-03T23:48:30Z")

</div>

For reasons unknown (possibly the Covid-related lockdown), I wrote a book on…Arrays! :stuck\_out\_tongue: I’m seriously considering writing more such books going deeper on some JavaScript topic that nobody really write…

---

## [Not Printing As It Should - yet again](https://forum.kirupa.com/t/not-printing-as-it-should-yet-again/644037)

<div class="topic-metadata">

**Author:** [@John\_Stern](https://forum.kirupa.com/u/John_Stern)\
**Replies:** 7\
**Last updated:** [September 2, 2020, 5:33pm UTC](https://forum.kirupa.com/t/not-printing-as-it-should-yet-again/644037 "2020-09-02T17:33:22Z")

</div>

I thought that this code var favRecipe = { name:”Mole”, serves:2, ingredients:\[“cinnamon”,”cumin”,”cocoa”\] }; for(var a=0 ; a \< favRecipe.ingredients.length ; a++) { textSize(20); fill(190,180,170); text(favReci…

---

## [Needing to get hold of a database file](https://forum.kirupa.com/t/needing-to-get-hold-of-a-database-file/644042)

<div class="topic-metadata">

**Author:** [@PasquereS](https://forum.kirupa.com/u/PasquereS)\
**Replies:** 0\
**Last updated:** [September 1, 2020, 11:01pm UTC](https://forum.kirupa.com/t/needing-to-get-hold-of-a-database-file/644042 "2020-09-01T23:01:38Z")

</div>

Hey. I need help please. I am looking for a GIS map in Belgium of the entire streets and their GPS coordinates.

---

## [Once you learn more about software, does the "magic" about it go away?](https://forum.kirupa.com/t/once-you-learn-more-about-software-does-the-magic-about-it-go-away/643937)

<div class="topic-metadata">

**Author:** [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Replies:** 5\
**Last updated:** [August 31, 2020, 5:54am UTC](https://forum.kirupa.com/t/once-you-learn-more-about-software-does-the-magic-about-it-go-away/643937 "2020-08-31T05:54:11Z")

</div>

This is a question I ask myself frequently. After having seen so many different technologies come and go, and having spent time reading about how many of these technologies work, I don’t think I’ve had the “Wow! That’s a…

[Previous page](https://forum.kirupa.com/latest.md?page=91)

[Next page](https://forum.kirupa.com/latest.md?page=93)
