in Italy, when tv started becoming popular, the government made government-sponsored channels and they promised to never show commercials
Later, they started asking for a mandatory tax from all those who own a tv in order to cover costs..
The funny thing is, they started showing commercials anyway
So now you pay a tax to support government-sponsored tv without commercials, but they don't deliver on the promise
In fact it's almost a joke. They can't oblige you to pay if you don't own a tv, and since they can't just come in and check, pretty much nobody pays the tv tax
@MadaraUchiha o/ on a scale of 1 to 10... how likely you'd make use of TS if you were presented a yuuuuge SPA spaghetti and kinda made responsible of it?
On government sponsored tv here, you get shows where often there'll be pretty girls dressed up nicely which don't speak a word and just dance at the beginning or the end of the show
I'm looking at a result of ~10 developers who went in there not giving a single fluck apparently. For the sake of having soome structure someone started an angular 1.5.3 version of it on one side... and apparently he is leaving now :-P that already had a big Nope vote from me at the meeting.
@MadaraUchiha there are plenty of them in plenty of directories under root. I feel like this needs some cleaning though to be able to asses this way. I saw a good bunch of html files having over 700 loc script tags where you see almost all click events. Same thing only worse number of loc for backend files...
I noticed one part of the system has bundled files and a package.json whereas the actual user facing side has nothing but above
@MadaraUchiha with this I get 50 for one of the mid size files
@MadaraUchiha sorry, maybe I failed to convey but the entire application loads the pages with ajax calls. There's a big app.js, a good bunch of js code seems to be within html, hence I thought it first of all needs some cleaning
@MadaraUchiha I feel like there's possibly plenty that can be removed also. It's just too spreaded everywhere right now. I guess TS needs to wait then. The fact that they have given plenty of time made me want to get started at it, but oh well..
Callbacks are also problematic in other ways. If you want to ensure that one function is called after the other, you need to nest callbacks, which is not fun.
I simplified the example, but most callbacks in node actually give two parameters, an error which will be null, and you must check if it isn't before continuing, and the result.
But the advantages are that the function now returns something, I can attach my callback with .then() on that "something", I can pass that "something" around, I can handle errors predictably and safely.
For example, a feature of .then() is that if I return a Promise from it, the next .then() in the chain will also wait for it.
Write a program that asks the user to enter the numbers from 1 to 16 (in any order) and then display numbers in a 4 by 4 arrangement, followed by the sums of rows, columns, and dialogues:
Example Run:
Enter the numbers from 1 to 16 in any order:
16 3 2 13 5 10 11 8 9 6 7 12 4 15 ...
do you fill it through raw html or do you use some xhr / fetch magic to request data with javascript and fill your page with that dynamically? also do you have images in your context? do these image tages have fixed width and height attributes? do you render your html within your javascript world with something like angular, react, glimmer, vue or similar?
Been a while since I was here. I like the new carpets... anyway, in theory -- let's say you have a string - a sentense. Like "How I met your mother was dope until your mom screwed it for us" and you want to get only the words beginning with 'm'. How would you go about it?
@KarelG when i made my own progress bar in 2015, the original <progress> had displaying bugs in chrome for windows 7 when you switched tabs. like.. literally showing a wrong progress.
I have 20 ish filters I think. 2 of those are very specific (filtered by email) because I know those two persons just mails me for nothing. I just ignore.
@nicoan Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
I almost bought this laptop with optane but I just couldnt help but feel unsure about it lol I'm just tired of my current laptop overheating like crazy no matter what kinds of "fixings" i do
@Neil A farmer has a circle of grass with a fence around it. He wants to tie a goat up on the inside of the fence. How long should the rope be so that the goat is only allowed to graze on 1/2 of the area of the circle?