Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "js"
-
The JS Drinking Game:
1. Think of a noun.
2. Google "<noun>.js"
3. If a libary with that name exists, drink!16 -
Typical paranoia's when developing a website
- what if the user has JS turned off ?
- what if he is using the site without a monitor ?
- what if the user's electricity is off ?
- what if there's no user ?12 -
No I will not disable my AdBlocker to view your content.
I'll just disable JS in browser.
*Troll face*14 -
Improving an old JS code, replaced all 'var's with 'let's. Previous guy wrote a comment above his variables, which is now saying:
"letiabes"17 -
First day of college
- Enters the class
- Class starts
- Teacher starts teaching JS with notepad as editor on windows xp
- Leaves32 -
Haven't seen a JS framework in a while? Well say no more, I just created a framework to make sure the flow is ongoing:
https://github.com/tahnik/...
Enjoy!18 -
Rants about how big jQuery is (83 KB), misses project deadline trying to write efficient JS to "optimize" load time, eventually ends up saving 2 KBs.
-
Last week, i was giving my interview for a web development internship!
They asked me
what is the difference between :-
{} +[]
and
[]+{}
:(
Weird parts of JS strikes back :(18 -
Keeping up with new JS frameworks is like keeping up with celebrity gossip. It really isn't useful on it's own but you can talk to other people about it and be perceived as woke.9
-
Basically,
1+infinity = 1
But
infinity + 1 = NaN
My entire maths fundamental shuttered by the beautiful JS language....26 -
Dear lord spaghettimonster,
pls not another SomethingJS.io for the world!
There should be a limit on how many JS frameworks are allowed to exist at any time!20 -
My employer gives me a mission to complete in our project using plain js.
*Uses 30 hours of working time completing the mission using custom js elements*
*Presents the results proudly to the employer*
*Realizes Microsoft edge doesn't support custom elements*4 -
React-Redux's connect() function inspired me to create the coolest way to add numbers in JS:
<script>
function add(num) {
return function(otherNum) {
return num + otherNum
};
};
console.log( add(2)(3) ); // Outputs 5
</script>
I didn't know you could do that. Just found it out!12 -
FUCK FUCK FUCK
Started working on devRantron after a month holiday.
Major version upgrade to 4 different packages. All the upgrades are breaking the current configurations.
I just fucking wish JS community would understand the importance of backward compatibility.5 -
I'm so weary of JS right now but every time i want to code something in another language i just think:
"Why don't i just do this in JS. Would be much easier."
Please help me.13 -
Found this on a client's js code
// They forced me to write this code.
// Prepare yourself.
I found out later that month what that dev truly means2 -
So, I was going to complain about JS being finicky and not making a damned bit of sense, but it turns out that it wasn't JS's fault. Not entirely, anyway. It was the halfassed JS minifier middleware (written by the legendary dev himself) that was breaking the JS while writing it to the page.
The original problem:
My code worked. I removed some comments. Big ol' block of //'s. And suddenly $() isn't a function. But if I call $(); at the top, it all works!
It turns out the "minifier" caused JS to think my code was chaining off the previous JS line in the rendering pipeline instead of being a separate statement. so all it really needed was a `;` at the start. What threw me, though, was the last line of the previous blob of (non-minified) JS was a comment, so it should be a separate statement, right?
But as it turns out...
```
console
// JS really is finicky.
.log('Sigh.');
```16 -
We all know someone who's like this
writes
console.log("hello world");
calls himself a js developer.3 -
Once I was frustrated by a Javascript bug
So I Googled "Retarded JS'"
And holy fuckkk
I found a npm module 😁
Then I Googled "Asshole JS"
Holy mother of all fuckkks
I FOUND THE COOLEST JS LIBRARY EVER 😁😂9 -
I spent an entire week debugging my JS Gameboy emulator an year ago.
(The "C" register was read-only for some reason)
Turns out I typed "с" (cyrillic) instead of "c".4 -
When you don't know what's happening in your js so you put console.log at every third line and in every function...6
-
No matter what JS framework/library holds the #1 spot at any given time, jQuery will always have a special place in my heart.11
-
Vue 1.0 got released in 2015. Now it's 2021 and Vue 1 apps can no longer run in Firefox due to compatibility issue.
THIS IS JS FRAMEWORK FOR YOU. The lifespan of an app written on a JS framework is 5 years. But people will not learn, they will keep cmxll,xdl,d;'mzaaaaaaaxsxzxxxxxxxxxxxxxxxxxxxxxxxa12 -
The internet dev community is so funny
-Everyone loves js
-Everyone hates js
-Everyone loves react
-Everyone hates react
-Everyone hates angular8 -
I am worried of a future in which JS has taken over everything, fortunately wasm is here to help :D5
-
Lie in the interview saying he was a frontend web developer and try to hide the fact that they didn't know JS. Wtf.5
-
Every time I rant about JS, I get accused of:
- being a noobie
- not "REALLY" understand JS
- being an incel
- being dumb or low IQ
I'm starting to see a pattern of behavior, similar to the far right or far left political people on Twitter, and highly religious people.
I know, correlation != causation but it makes me think that maybe emotional attachment to ideas is bad for the brain14 -
Dear everyone who doesn't write JS and has some hand-wringing concern about its lack of static typing, lack of threading, or its suitability for large back-end services:
It's fine, we've got this. You go back to discussing contravariance or whatever it is you do.
Signed,
Team JS4 -
Well it seems Facebook's JS obfuscator is so good even Microsoft Edge can't read it...
SCRIPT1014: Invalid character
xob7zskxXZd.js (1,6)
Thanks Anniversary Update...2 -
So I always start learning JS frameworks and end up getting confused by their syntax among other things. Do you guys know of any good websites to learn vanilla JS? My problem is that I probably don't know enough of vanilla and end up getting flustered.11
-
Fuck you Ajax
Fuck you js
Fuck you jQuery
Fuck you {{insert js frameworks}}
I've been learning ajax now and this shit happend15 -
var a = {
value: -1,
toString: function() {
return ++this.value;
}
}
if(a & !a) {
console.log("F**k you JS!");
}
if(a == 2 && a == 3) {
console.log("F**k you again JS!");
}6 -
Really???
My whole finished Java project with database & gui - 277 files in source
Simple JS project nodejs & react - 15k files???
What the fuck?
I tried to like JS, but maybe later... Someday...25 -
Angular is still a pile of steaming donkey shit in 2023 and whoever thinks the opposite is either a damn js hipster (you know, those types that put js in everything they do and that run like a fly on a lot of turds form one js framework to the next saying "hey you tried this cool framework, this will solve everything" everytime), or you don't understand anything about software developement.
I am a 14 year developer so don't even try to tell me you don't understand this so you complain.
I build every fucking thing imaginable. from firmware interfaces for high level languaces from C++, to RFID low level reading code, to full blown business level web apps (yes, unluckily even with js, and yes, even with Angular up to Angular15, Vue, React etc etc), barcode scanning and windows ce embedded systems, every flavour of sql and documental db, vectorial db code, tech assistance and help desk on every OS, every kind of .NET/C# flavour (Xamarin, CE, WPF, Net framework, net core, .NET 5-8 etc etc) and many more
Everytime, since I've put my hands on angularJs, up from angular 2, angular 8, and now angular 15 (the only 3 version I've touched) I'm always baffled on how bad and stupid that dumpster fire shit excuse of a framework is.
They added observables everywhere to look cool and it's not necessary.
They care about making it look "hey we use observables, we are coo, up to date and reactive!!11!!1!" and they can't even fix their shit with the change detection mechanism, a notorious shitty patchwork of bugs since earlier angular version.
They literally built a whole ecosystem of shitty hacks around it to make it work and it's 100x times complex than anything else comparable around. except maybe for vanilla js (fucking js).
I don't event want todig in in the shit pool that is their whole ecosystem of tooling (webpack, npm, ng-something, angular.json, package.json), they are just too ridiculous to even be mentioned.
Countless time I dwelled the humongous mazes of those unstable, unrealiable shitty files/tools that give more troubles than those that solve.
I am here again, building the nth business critical web portal in angular 16 (latest sack of purtrid shit they put out) and like Pink Floyd says "What we found, same old fears".
Nothing changed, it's the same unintelligible product of the mind of a total dumbass.
Fuck off js, I will not find peace until Brendan Eich dies of some agonizing illness or by my hands
I don't write many rants but this, I've been keeping it inside my chest for too long.
I fucking hate js and I want to open the head of js creator like the doom marine on berserk20 -
Is React really that good? Some say if you don't know React you are doing JS wrong. But everyone says that for everything.13
-
I started working at a software company two weeks ago. Today I learned that their web app only runs so smoothly because of a single JS function called specialSnowflakeHandler()2
-
I was making changes in JS and it did not get reflected into the browser, spent 3 hours on it. Later realised I was making changes in the wrong JS file. Have never felt this dumb in my life.4
-
That awkward moment when you convert JS functionality into pure HTML CSS just to find out it's not working on IE.1
-
hey guys,
I've been working with js for like 5 years now, and I figured I could help some people out, if needed.
I wouldn't consider myself a js lord, but I have some decent experience, and even if I don't know something I'll be honest about it and at the very least I'm pretty sure I'll point you in the right direction.
I'm fond of vue, lodash, es6, node, eslint bla bla. I also know rails.
In any case, my objective with this is to learn myself.
So feel free to tag me if you have any type of question about anything js.
Cheers.11 -
It is ridiculous how many javascript frameworks out there. Just combine any nounce + JS, I guarantee you, there is Github repo existed already!2
-
I want to explain to people like ostream (aka aviophille) why JS is a crap language. Because they apparently don't know (lol).
First I want to say that JS is fine for small things like gluing some parts togeter. Like, you know, the exact thing it was intended for when it was invented: scripting.
So why is it bad as a programming language for whole apps or projects?
No type checks (dynamic typing). This is typical for scripting languages and not neccesarily bad for such a language but it's certainly bad for a programming language.
"truthy" everything. It's bad for readability and it's dangerous because you can accidentaly make unwanted behavior.
The existence of == and ===. The rule for many real life JS projects is to always use === to be more safe.
In general: The correct thing should be the default thing. JS violates that.
Automatic semicolon insertion can cause funny surprises.
If semicolons aren't truly optional, then they should not be allowed to be omitted.
No enums. Do I need to say more?
No generics (of course, lol).
Fucked up implicit type conversions that violate the principle of least surprise (you know those from all the memes).
No integer data types (only floating point). BigInt obviously doesn't count.
No value types and no real concept for immutability. "Const" doesn't count because it only makes the reference immutale (see lack of value types). "Freeze" doesn't count since it's a runtime enforcement and therefore pretty useless.
No algebraic types. That one can be forgiven though, because it's only common in the most modern languages.
The need for null AND undefined.
No concept of non-nullability (values that can not be null).
JS embraces the "fail silently" approach, which means that many bugs remain unnoticed and will be a PITA to find and debug.
Some of the problems can and have been adressed with TypeScript, but most of them are unfixable because it would break backward compatibility.
So JS is truly rotten at the core and can not be fixed in principle.
That doesn't mean that I also hate JS devs. I pity your poor souls for having to deal with this abomination of a language.
It's likely that I fogot to mention many other problems with JS, so feel free to extend the list in the comments :)
Marry Christmas!34 -
Recently started using js without semicolons...
Personal opinion but I think semicolons do make the code look ugly14 -
Before internship, js code with semicolons looked stupid to me. Then jshint happened and here I am at 3AM in the morning, adding semicolons to a forgotten but not abandoned design project of mine!
-
backstory: i was bored and decided to recreate basic hardware modules/ICs in JS
today, i just made a 555 in JS on the first try
am i god? :O4 -
So, does anyone else dream about programming? I had this awful nightmare last night about JS, I think I might been working to much..3
-
I hate it when I ask about a way to solve a very specific problem in js, and people be like:
"You should use this x library, it has the y utility that will solve your problem right away"3 -
Hey DR! I am a pretty inexperienced programmer who's learning about JS. When I was writing vanilla JS to do some simple DOM manipulation, JS seems like a pretty familiar language. However, when I start to learn about different frameworks (React, Express), the way that they code stuff (IDK how to pinpoint specific examples, it's just an overall impression) becomes very different from my experience with other programming language. I am wondering if anyone have any suggestions, have felt the same way, or know how to overcome this phase.
ps This is a general question. Please don't be pissed for lack of technical detail....8 -
Am I the only one who is sick of the Javascript, Javascript frameworks and anything ending with .js9
-
While taking the basic JS interview:
Me: what are the different data types in JavaScript
Candidate: We have a 'var' keyword
Me: :|2 -
What's with kids and with js framework(s) ? Like almost every jr student at University is wanking their dicks at it...3
-
"In matters of style swim with the current. In matters of principle, stand like a rock."
In matters of js frameworks, just give up. -
Well... Justy trying to migrate from Android to JavaScript development... Everything seems to be ugly in this world of functions... I really can't understand why JS is so popular, It is totally incapable language.10
-
If you're a javascript dev and you haven't read "You don't know JS", you should give it a try. Officially posted as a free git book.2
-
Heard a story about an interview taken by one of my teammates..
The guy had approx. 9 years of experience of full stack development having current exp in JS based work.
He was stubborn on the condition that he'll work only on JS for the rest of his career and nothing else.
I can't understand people having a raging boner on one language...
P. S : I am a JS developer too!2 -
*using random JS for website*
*finds stuff not working*
*opens JS file*
(mesh of code)
*select all*
*Format Selection*
I love you, Visual Studio :')4 -
Im a complete back end guy, decided to learn a js framework......
var whatToLearn = rand("angular", "react", " vue");
Suggestions..... :/24 -
When you want to make an unlinked copy:
JSON.parse(JSON.stringify(obj))
Holy mother Jesus, so many hours before I realised this. Really js!? Really...2 -
Today I discovered that Haskell can be compiled to js. This is both wonderful and disturbing: having the strengths of Haskell feels right and encouraging, but having to transpile it to js feels unnaturally dirty.
Still, I'm not sure I can apply this at my job in any future, but I might have just the case in the brewing.7 -
I have reinstalled node js 3 times to run JS scripts and "npm run dev" is not starting up the server. This is quite frustrating.29
-
"An array of arrays? What the hell?" - the client's dev team, failing to understand the parameters of the JS lib they chose to implement.2
-
Wtf JS.
It take two days that root of the problem is two char - "()".
Someone write isManageExp instead isManageExp()
maybe im too dumb about this fuckin js thing.
I go around all file to make sure the ouput is correct.
Damn js, damn damn7 -
Erlang... variables you can't vary? WTF!
Writing JS two weeks later...
const a =1
const b = a + 1
Why would I ever assign over a? Pfft.
const c = b + 1
...1 -
Got commissioned to write a simple js function. Drafted in python. Changed up some variable names while translating, but forgot to change one, and changed another to the old name... Spent a week trying to find the bug in a 30 line piece of js that worked perfectly in python. FML1
-
Have you been using node js for a while now? Are you aware of how things work internally in node js? the queues in node js? Doesn’t matter if your answer is yes or no, I will let you in on one little secret which will clear all your doubts regarding how node js works asynchronously under the hood.
Read the following article to know more
https://readosapien.com/queues-in-n...rant node-js event-loop callstack nodejs macrotask-queue callback-queue javascript microtask-queue js programming software2 -
Here's an idea for new drinking game
In circle one after another coders picking absolutely random word, and google it in format <word>.js and if there's a JS library named like that, guy that said that takes a shot
The one who survives -- wins!7 -
I feel like I know what I shouldn't know. I know a little about using jQ and JS (mainly little plugins) but I can't code js from scratch.
I use vanilla html and css and my environment is notepad++.
I feel like I should know SASS, Pug and use Webstorms or some other professional IDE. And learn js.
Which preprocessors do you prefer? Which IDEs and which point to start learning js from scratch?8 -
Today I discovered first thing I personally prefer in JS over PHP.
let's say you have:
//pseudocode
if(sth){
let ret = 1;
} else {
let ret = 2;
}
if(sth_else){
return ret.toPrecision(2);
}
return ret.toPrecision(8);
In PHP this will work. JS will throw up becouse it managed to separate scopes. Its actually what I would like to be the case with PHP.22 -
This appears to be a service designed for idiots. $89 a month for ho-hum specs. What strikes me more though is that with CentOS selected, it still gives me MSSQL options. Learn to js, n00bs!7
-
Guess I'm the equivalent of egg guy in twitter!
Anyways, JS in a pain in my ass.
That's it:)
P.S: I'd have blown if I didn't say this somewhere and possibly to someone. -
When you spend 2 days debugging .Net code even though you're not a .Net developer because the higher ups think everyone should be language agnostic. Never though I'd hear myself longing to go back to JS.1
-
Just had an argument (with myself ;)) whether to write a completely server rendered site or a js app.
The only stas I have manged to find is from 2010 saying potentially 2% of users could have js disabled.
Why cannkt I find newer stats :/4 -
when the pm chooses a js library but says can you just change this... either accept the library as you chose it or give a proper spec to write it from scratch
-
Just purchased a new domain and decided to once again design my website personally (Fuck wordpress man) but...
I absolutely hate working with HTML and JS at the same time (I actually love JS on its own), its like bloody Stockholm syndrome!
HTML may beat me senseless.. But i love it too much to stop!1 -
~ I knew a little bit of Django ~
~ Now I know a little bit more ~
~ I used to like Python ~
~ Not so anymore ~
~ Why though ~
~ I don’t know ~
I use JS professionally and I have majorly coded in JS in personal projects but I always had this liking towards Python. Now, that feeling is gone. Python doesn’t seem that attractive. JS seems better.
One of the reasons, I feel, is the syntax. JS can fuck-up in places but that C-style syntax is love.
Another reason could be that I still don’t know that much Python or Django to make an opinion? Maybe. Probably.9 -
- And also today I completed my to-do list
- Did you carry all the tasks out?
- No, just a new JS framework -
When you develop a standalone page using JS and the old JS, JQuery libraries interfere with your current libraries!
Delete
Delete
Delete
..
.
..
Open that js file rename
Open that min.js file rename
..
.
..
Still Not working!
Cleared cache ... works like a charm!
Damn you cache and min.js!!! -
I'm so happy it only took 2 months to fully dominate this outdated-in-few-months-js-library-or-framework.js1
-
What do you do when you have to deal with ancien minified js and no dev version left ? seriously , its a legit question ..7
-
Managing countless dependencies makes me wonder if we can escape the madness and return to the simplicity of vanilla JS. Must be better than being doomed wandering the labyrinth, right? 🤔🔄🕸️3
-
Hi fellow devs, I have a question for you.
Do you think asking questions like (related to JS):
- What is the type of null?
- What is the result of 0,1 + 0,2 (0,30004)
- and other JS specifics
in a job Interview for a Junior position is the right thing to sort out applicants?
I have several years of programming experience, just not in JS, and got rejected because I couldn’t answer these questions. Feels kinda weird😅 What’s your opinion?24 -
Mate asked me if Electron.js la good to build a desktop app. I suggested to write backend Api and so on in java and front-end in js using Angular or React.
What are your opinion about electron.js?9 -
Here I am wondering why I can't click the image then I realize I forgot to tell the html file where the JS file is.....1
-
The l33t h4ck3r experience: making a js bookmark that adjusts the video speed on an online LMS that reeally doesn't want you to watch at the same speed that you process information.
The trick is to continuously change the playback rate faster than the site can change it back to painfully slow. -
Question:
Should I make my own JS library/framework to make my work go faster, I would put the most used code in this library2 -
I was initially hating on JS for the weak typing and type coercion, but after taking a look at the underlying algorithm it actually somehow makes me think the whole thing is sort of sweet and endearing. Not sure if this makes me a bad person or not4
-
Should I learn JS or Python?
Python is the better choice for ai as far as I know and I'm interested in learning Django. On the other hand Node.js is great for backend and servers.4 -
Question..
Is it safe to stay with PHP or do you think js (in backend) is the future?
Php (laravel,..)
Js ( Angular, react,..)14 -
TIL following two lines are NOT the same in JS with webpack, even though logically they should be - it should be just an application of an eta reduction... First line works, second one crashes, probably because mysteriously executed too soon, before obj is initialized.
export const t = (...args) => obj.t(...args);
export const t = obj.t;
Sometimes I really hate JavaScript magic.2 -
Where can I get fullstack js codebase for small projects?
GitHub search shows humongous ones or otherwise repositories of js frameworks.
And/Or share your repos having the same
Gotta improve coding standards2 -
People nowadays.
Searched for JS/NodeJs frameworks.
Read the Docs for a couple of minutes and run some examples.
*Opens* CV / Linkedin to update Skillset.
---
So with the count of JS/Nodejs Frameworks, they probably have lots skills listed in their CV.2 -
When you watch "1024+ Seconds of JS Wizardry" on YouTube and you realize you have fuckin lot to catch up in JavaScript :|
-
How much knowledge you should know to be able to say that "I know this programming language" on your resume or CV? for cpp, js10
-
My fellow worker adds amazing method names in JS:
makeDataTablePagingMuchMoreComfortableIfNeeded
arraysHaveObjectsWithSameAttributes2 -
Anybody here know the "Nyet! Rifle is fine!" meme?
Yeah that's how I feel about all the JS framerks and bloat and all that instead of Vanilla JS.3 -
The moment you pull the latest changes just to find out that your new coworker edited all the js files in xcode1
-
Was going to have some fun refactoring js code on the weekend, gf dragged me to a jazz festival instead </3
I enjoyed it, though -
A JS framework and a library that combines all the respective JS frameworks and libraries into one single framework and library.
-
team member was tasked with doing only css changes to a webpage I made... they ended up rewriting most of my JS and totally broke the clients web app. sprint ends Friday... lol...2
-
I just realized: People bitching about JS standard library, bundle size, need to use polyfills etc - is useless IMO. We need to start viewing transpilers as compilers and overall JS ecosystem like we are developing something in ActionScript Flash/Java Applet and exporting it for use inside browsers. And forget about "bad parts" of standard clean JS overall. See clean JS like it's as bad as it was in the past. (because without polyfills you still don't have most of the major es6 features in the IE browsers)
In the past we needed Flash plugins, Java plugins for applets, and they had size way larger than average JS bundle nowadays.
What you think?2 -
var self = this;
if (args != null) args = Array.from(args);
return function(){
return self.apply(bind, args || arguments);
};
no wonder nobody likes js. this is not js. this is shit.5 -
When teaching JS, what would you say were the 5 most important base methods or properties such as 'length' or 'charAt()' ?7
-
I tried to use a vscode extension generator and filled in name as publisher, this is what I got...
Another reason to hate JS.1 -
Wait, I HAVE to use double quotes when referring to RiotJS tags within JS, otherwise the in-browser compiler just spits out errors? FU
-
Wtf is this a feature and I dont know? why on google I cannot find? or is this crappy bug? Why my file syntax is not highlighed in phpstorm? And file icon is different from other js files?7
-
Ok, it's the second day and still the same problem: creating JS apps takes like forever. I think it's maybe with the servers since my Internet is completely fine.
-
Does anyone have experience with using Kotlin as a front end language? Seems to have excellent JS interop and I really don't want to deal with the garbage fire that is JS or TS 😬5
-
https://youtu.be/lOlvJ9OdvlY
Demo of my Exam Test App, made with html/css/JS
please drop a like if you like the video1 -
node/JS is retarded
TIL that you can call return multiple times but it wont break
6 hours down the drain9 -
firstly, does anyone know of an online telegram or whatsapp group where i can ask silly stuff regarding web dev and get immediate answers, just like it is here?
secondly i am trying to learn js and there are just too many related terms that are messing with my brain:
"some features are supported ines5/es6/es15/es16/es17 , some are supported in chrome's v8/chakra/spidermonkey/android browser , some features are only supported in "serverside" and blocked in all browsers thanks to browser's vm environment; babel can't read this code, some features are provided only by node js..."
WHAT THE MESS IS THIS?
All i am trying to do is to write code that would make a website visible to everyone. if by specific browser , i want to target, chrome and its subsidaries and android chrome/other android browsers .
for other browsers am willing to make external converters later but don't want to change my code by 1 bit. And from what i know, each browser (at least the browsers am thinking of supporting) has the complete JS compilers already built in
can i or can i not built a complete functional website with those things?
and finally my main question : how to make custom exceptions in vanilla js? i saw this answer on stack overflow:
===================
function InvalidArgumentException(message) {
this.message = message;
// Use V8's native method if available, otherwise fallback
if ("captureStackTrace" in Error)
Error.captureStackTrace(this, InvalidArgumentException);
else
this.stack = (new Error()).stack;
}
InvalidArgumentException.prototype = Object.create(Error.prototype);
InvalidArgumentException.prototype.name = "InvalidArgumentException";
InvalidArgumentException.prototype.constructor = InvalidArgumentException;
Usage:
throw new InvalidArgumentException();
var err = new InvalidArgumentException("Not yet...");
=====================================
where is the error code? what would be the exception details? what is the line number/timestamp of error?why is that function making an error, i thought error/exception is a class in JS?4 -
Almost stuck with manual state management for JS. Dealing server side rendering manually. [almost crazy]
-
I feel like I'm too stupid for these reactive js frameworks ... js is not the problem .. my brain is the problem ..
On the other hand created something quite useful despite all the headbanging that went into it -
If interested:
https://github.com/denysdovhan/...
it's an entire GitHub repo on weird-wacky stuff of JS3 -
It is fucking annoying to do changes in someone else js and ts code... Always give some bullshit thing for which you have only one response kiss my piss IDIOT CODE.....
-
How much should I try to cater to noscript users? Some situations are just not practical without some js (Ajax and friends can sometimes be the only practical option).3
-
So I have started to learn JS ! Its been 2 months I dont know what the fuck am I doing and I think I m going to die soon!7
-
Any profile I get an internship in for, I end up fixing angular code, even if I never took the name of JS or close in my resume ! WHY GOD ?2
-
I really hate the hype with js frameworks. Every few months a new one appears F that F node.js and all the coffee es6 es5 bullshit. JavaScript should be like Latin. A dead language...3
-
Fuck JS. I want to import file and it just gives errors. In PHP for few years it never happens. You check if namespace is correct it always imports without problems. Fuck you JS creators. It asks to install a library, but I am not fucking importing a library. I am just importing my own created simple file. Fuck you.
import addCommas from 'formatter';
formatter.js
export default function addCommas(number)
{
console.log('aaa');
return number;
}
idiotism.13 -
Is there any JS framework by which i can make tree structure in frontend and where each node is input box, also addition of node(input box) should happen dynamically(with click)5
-
For those who coded js for years. How hard to pickup python backend? I refer js/ts node because I don't have to do context switching7
-
Why would you use 4 spaces instead of 2 in js ?
Why would u want to use semicolons in js ?
Why would u use html instead of pug ?
Just why ?7 -
Any node js devs on here that can tell me why this is happening? Node js is installed and from what I can tell WebStorm is set up correctly...2