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"
-
So I need to create a nice new web app. Let's look at some cool JS frameworks that I can work with.
*5 mins later* Hm, Angular sounds good, is there any good competitor?
*5 mins later* Wow, React sounds awesome as well. Let me learn it.
Google search result:
"Planning to use react? Check out Vue JS first"
*5 mins later* Ok so vue seems faster than React and much easier to learn. Let me see if Vue is the final choice.
Google search result:
"Angular VS Knockout VS Ember VS React VS Mithril VS Mercury VS Ractive VS Vue VS Riot"
Nope, fuck it56 -
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 -
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 -
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
-
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.
-
Basically,
1+infinity = 1
But
infinity + 1 = NaN
My entire maths fundamental shuttered by the beautiful JS language....26 -
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 -
I have found myself more confused than a chameleon in a bag of skittles because I can't figure out why my ajax(beginform()) won't fire off any of the JS functions I write.
Did my Googles and that didn't help. Verbally abused my monitor and rubber duck, didn't help. I've got a blood sacrifice to the Javascript gods scheduled for tomorrow. Maybe that'll work.8 -
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 -
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 -
Real story at a screening interview:
Me(interviewer): how do you convert a string into a number in Javascript?
Candidate: what do you mean?
Me: (writes "123" -> 123 on paper) How do you convert "123" to 123 in JS?
Candidate: (starts writing program on paper)
str.replace(/\"/g, '"")
mind==blown!!12 -
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'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 -
We all know someone who's like this
writes
console.log("hello world");
calls himself a js developer.3 -
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 -
Try this code in JS:
++[[]][+[]]+[+[]]
This is valid and returns the string "10" in JavaScript :)))
Source: in comment👇5 -
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
-
So it appears that by a good bit, JavaScript is either the Least Hated or the Most Loved language among ranters here. Interesting.
Come to think of it, most JS-related rants I've seen here were making fun of the number of Frameworks.10 -
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
-
When you find a bug in a "min" js file and you don't have the not minified version anymore... ok, it's not a bug it's a feature.6
-
young user @Mizukuro asked days ago for ways to improving his javascript skills.
I wasn't sure what to say at the moment, but then I thought of something.
Lodash is the most depended upon package in npm. 90k packages depend on it, more than double than the second most depended upon package (request with 40k).
Lodash was also created 6 years ago.
This means lodash has been heavily tested, and is production ready.
This means that reading and understanding its code will be very educational.
Also, every lodash function lives in its own file, and are usually very short.
This means it's also easy to understand the code.
You could start with one of the "is..." (eg isArray, isFunction).
The reason for such choice is that it's very easy to understand what these functions do from their name alone.
And you also get to see how a good coder deals with js types (which can be very impredictible sometines).
And to learn even more, read the test file for that function (located in tests/<original file name>.js. For the most part they are very readable and examples of very good testing code.
Here's the isFunction code
https://github.com/lodash/lodash/...
Here's the test for isFunction
https://github.com/lodash/lodash/...
The one thing you won't learn here is about es5, 6, or whatever.3 -
Tiny little line of random JS code.
"No Comments in the code"
Me: I think this is not required, let me remove it.
"Deletes the line..."
*Entire App Breaks*
Me: OK, It must be important.
"Cmd + Z"
*Plot twist: The APP is still broken*
Guess who just needs to stay up late in office.1 -
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 -
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.13 -
I'm just saying... The guy who decides to come up with the ".js" TDL, is gonna get rich preettyy faast...5
-
Fuck you Ajax
Fuck you js
Fuck you jQuery
Fuck you {{insert js frameworks}}
I've been learning ajax now and this shit happend15 -
Just lost my shit with a colleague which went for the Nth time "Oh MaN tHiS sCrIpT sUcKs So BaD".
Dude, I wrote the thing in 5 days, and back when I did I had no experience whatsoever with JS -or with programming at all, for that matter. It was pretty much my first project and I was as green as it can possibly get.
And yet, that script served us well for well over a year and a half without being touched once. It always worked for everything you could possibly want. Shut your mouth or do it yourself, buddy.3 -
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 -
No matter how many frameworks and supersets I try, I always conclude that nothing beats vanilla JS. ES6 in particular is such a beautiful language, and I love having fine control over what happens under the hood.
When I'm done I can just transpile it to whatever ES version, although it's slowly becoming a non-issue.2 -
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
-
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
-
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!
-
Recently started using js without semicolons...
Personal opinion but I think semicolons do make the code look ugly14 -
It is ridiculous how many javascript frameworks out there. Just combine any nounce + JS, I guarantee you, there is Github repo existed already!2
-
Debugging JS,
*uses chrome devtools*, breakpoints work, everything loads, can work on fixing bug
*uses firefox devtools*, takes more time than IE to show up, the UI doesn't show up, can cry in the corner.
Why is firefox debugger so bad :/6 -
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 -
Every fucking time I install a new npm package
npm WARN deprecated core-js@2.5.7: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/...
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated domelementtype@1.3.0: update to domelementtype@1.3.1
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.21 -
How a node js developer's Terminal history look like --
npm install random_package
npm install shitty_package
npm install I_don't_know_what_it_does
npm install crap2 -
Not much of a haxk, just a stupid thing that works.
In my hs videogame programming class, the teacher has this program called LANSchool (most of you have heard of it) which he used to restrict apps/browsers to the point of uselessness . He didn't (and still doesn't) know anything about the stuff he 'teaches', most is tought by TAs.
Here's the dumb part: he WHITELISTED APPS. A friend, one of the TAs, figured out that if you rename something 'Google Chrome', lanschool wouldn't care. So I got Chromium (for unblocked internet) and switched its blue icons in the exe for original chrome icons, then renamed it 'Google Chrime'. Woo.
LANSchool is such a bad program (you can even unblock a site by spamming the F key for refresh).
The teacher did, and still does, treat the TAs like trash. He's a babysitter while students listen to online vids and the TAs.2 -
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 -
What's with kids and with js framework(s) ? Like almost every jr student at University is wanking their dicks at it...4
-
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....9 -
Working continuously on a task for like 3 hrs, cant get it done
*goes out, mind refreshed and completes the same task in 5 mins*1 -
Am I the only one who is sick of the Javascript, Javascript frameworks and anything ending with .js9
-
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
-
Just an advice:
Keep in mind that you can now have ES modules in nodejs with the esm package. And it's a zero config install.
For those that don't know, in js ES modules is the import/export syntax and is a huge upgrade from cjs (the require syntax) because you find out "pre runtime" when a specific import is non existent.1 -
we(Friends) discovered this yesterday.
Steps:
1. created a file.js and added a console.
2. renamed the file.js to file.java
3. ran that file.java through node
result: displayed in that image.
Javascript running .java .....seriously?
js how many hidden surprises you have for me. it was even running in .txt, .php etc
Okay let's come to actual point .
I tried to research on this. however, i couldn't find any links related to it.
Well, I tried the same with casperjs and python.It behaved the same.
is this behaviour because it is a scripting language?
Please do share your thoughts on this16 -
Hey guys,
I just released my first decent npm package: https://github.com/zzyyxxww/abides
It took more work than I expected and releasing it means a lot to me since I had a non existent portfolio before this.
I wrote it because I didn't like the de facto validators and I just wanted to do things my own way.
i know creating js packages is usually ridiculed, but at least I created this with a conscience and good code coverage.
thanks for reading.5 -
Im a complete back end guy, decided to learn a js framework......
var whatToLearn = rand("angular", "react", " vue");
Suggestions..... :/24 -
I wish we’d stop coming up with “the new best js framework out there” every fucking quarter of the year2
-
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
-
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.24 -
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 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
-
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. -
I am a student working on an academic project. I had put up a request for people with experience in JS to help out with the web UI. There is this girl in my class who was very excited to hear that and offered to help.
Turns out that she has developed a couple of Android apps and she thought Java is same as JavaScript.
I tried explaining her and she called me a jerk for not appreciating the help -_-8 -
"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
-
Dear everyone,
Stop turning off the monitors. That doesn't sign you out or turn off the computer, it just makes the next person wonder what's taking so long.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
-
Why am I still crazy enough to believe that software development could somehow become predictable even though experience tells me it never will?
Probably has something to do with learning JS. -
I just came with a problem trying to get the value of an HTML input of type date and trying to throw it into a Javascript Date object... After about an hour of searching (Google, Stackoverflow) I realized HTML5 date inputs use UTC timezone (defined by W3C) and Javascript uses your local timezone and this difference is messing with my code giving me a JS obvject 1 day before the HTML date...
Why they do this kind of thing?2 -
Kyle simpson the author of "you don't know JS" said after 17 years of experience writing JS he still don't have the bold to say that he's a master of JavaScript. Kyle are you trolling at us?1
-
!rant
Got my new pc up and running, asrock x370 killer sli/ac mobo, ryzen 2200g cpu and radeon rx550 with 12g ram (don't ask). Nothing fancy but sure beats my old am2 system! New pc is so quiet :D9 -
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 -
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 -
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
-
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
-
I'm so happy it only took 2 months to fully dominate this outdated-in-few-months-js-library-or-framework.js1
-
Pluralsight or lynda or udemy or udacity or treehouse or tutsplus or edx or coursera or codeacademy or codeschool or video2brain
Which one is the best for JS related courses?
Currently I use pluralsight, udemy and udacity
So much to learn so little time :|5 -
Note to JavaScript beginners:
Dont use vanilla JS, use ECMAscript6 or typescript.
Its so much better4 -
I mostly did backend until now but now I am trying to learn js to learn more of frontend programming. I have no problem doing html & css and I am even getting behind js but:
Why do I even need js frameworks?
Can’t I do everything in plain basic js?3 -
feathers js is pretty fucking garbage. All of typescripts types are junk, and the fact that it's "Getting started" example is a mother-fucking chat service drives me god-damn nuts.
Just show me how to return some fucking text first, yeah? Maybe some json? Is that so fucking hard!?
Fucking Garbage!3 -
New idea for js framework comes...
google...
the framework does exist...
back to the thinking...
jump to point no 1 -
When you are asked in the interview to output something like given below with only using JS closure and without using a global variable or function caching in JavaScript:
myAddFunc(1,2); // output: 3
myAddFunc(4,5); // output: 3 + 9=12
.
.
.
.
.
True Fucking Story :(1 -
What do you do when you have to deal with ancien minified js and no dev version left ? seriously , its a legit question ..7
-
Anybody else really annoyed at all these people getting mad at zuckerburg? Like, I've always questioned privacy of the internet in general. If you're dumb enough to put sensitive info on the internet (especially on social media) then you shouldn't have the right to complain about privacy. It's your responsibility to protect your information.4
-
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 -
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
-
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?11 -
Question..
Is it safe to stay with PHP or do you think js (in backend) is the future?
Php (laravel,..)
Js ( Angular, react,..)14 -
I have just learnt that you can label for statements and break them in an inside loop
Wakanda crazy crap is this?
fyi here is an example:```js
outerLoop:for(let i = 0; i<5; i++){
for(let j=0; j<5; j++){
console.log(i*j);
if(i*j === 8) { break outerLoop;}
}
}
```
Why do we even set a label with a colon, why?6 -
When you watch "1024+ Seconds of JS Wizardry" on YouTube and you realize you have fuckin lot to catch up in JavaScript :|
-
https://developer.mozilla.org/en-US...
When I see a js project or other with instructions to "start by creating a manifest.json" I as a beginner expect this level of explanation about the available manifest options. What each line is for, why you would use it, and if it is optional or not.
Otherwise it's just another cryptic and useless file occupying space in the symbol table that exists in my head, floating there without reason, description or purpose..kind of like a js lib without adequate documentation on its manifest.json.
One more arbitrary thing I have to remember, (and thus will forget) each time I have to use that library.1 -
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 -
!rant
Frontend people, I need your opinion.
I will soon start building the next version of a rather large project's frontend but I am mostly a backend guy.
It is a custom made web application (PHP, Postgres) that handles all business aspects of a shipping company of about 50 people (trucks, truck free space in shipments for new packages, package tracking via gps on the truck, invoicing, reselling shipping services to other businesses, everything).
The existing frontend is using an ancient version (1.x) of the YUI framework and uses AJAX heavily to refresh the user interface. It's usable, but maintaining and extending it is getting really hard as the project grows larger and larger and more systems are integrated.
So the question is, given this use case, what JS framework do I use and what is a good resource to start learning it?5 -
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 -
Don't jump over php to java and to c#. Specialist is important, I wasted few years trying to become like I know everything. My friend who's only good in JS earn higher coz he has a JS engineer title in a mnc. That only happens only when u focus.2
-
In js
[ ] == true // false
But
[ ] ? console.log('a') : console.log('b');
Prints 'a'
Wtf, i lost so much time on this. And i thought i had a grip on js weirdness.8 -
Almost stuck with manual state management for JS. Dealing server side rendering manually. [almost crazy]
-
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 -
When teaching JS, what would you say were the 5 most important base methods or properties such as 'length' or 'charAt()' ?7
-
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 -
I wanted to build a custom notetaking app, because all the alternatives are shit
I have a decent bit of experience with web development, but I've never tried electron before
Anyway, I decide to go with electron, because it seems like the easiest choice for my skill set
I build most of the app, and it's all working pretty well, and so I go to bed for the night
I come back the next day, and now the motherfucker won't load and display HTML pages aside from the main one.
So I start debugging. I go through each line of code, each external link, all my dependencies, everything. There's no JS debug output, nothing
I leave for a few minutes to get a glass of water, and now all of the sudden it works again
And I don't even know what happened, how it got fixed, or what even caused it
Electron is weird9 -
My fellow worker adds amazing method names in JS:
makeDataTablePagingMuchMoreComfortableIfNeeded
arraysHaveObjectsWithSameAttributes2 -
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 know there are so much js libraries out there, however I never thought there would be THIS amount of libraries. I mean, this is ridiculous...
https://www.javascripting.com/
I'll make mine just to be a part of it. Wish me luck!1 -
There are so many JS Frameworks out there that i even completly lost track of what is "trend" and what is basically "old".
Well i guess a bunch of you relate to this, and just because i am not a JS Dev, doesn't mean that i am not open for new stuff :D
The only thing i am not open for is Java.10 -
JS: dont worry, we got this simple decode function build in.
Node: yeah we had this build in but we took it out, now you have to require the module first and then declare it and then you can use it! -
Okay I always found these js weirdnesses that you see in memes more or less logical if you think about it, but so far I could not find any logic behind this:
true&&undefined
>undefined
false&&undefined
>false
can anyone explain wtf they thought about there? undefined is falsy so why not just convert it to boolean implicitly!5 -
A JS framework and a library that combines all the respective JS frameworks and libraries into one single framework and library.
-
I'm just new here
and I see alote of devrent users hate js and spesialy node why?
its cross platform lang and that all what you need to be fast and got the work done 😉
imin love with jquery 😳5 -
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.....
-
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 -
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?8
-
<!-- JS rant -->
JS question.... I have a feed that is on....feed.php but it doesn't work with my script. I know why. it's in the code as g = indexOf; can it only work on the index page or how can I make it work on the feed page?!?!2 -
https://youtu.be/lOlvJ9OdvlY
Demo of my Exam Test App, made with html/css/JS
please drop a like if you like the video1 -
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 -
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
-
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 -
For learning there are a lot of sites are available. But I was not comfortable with hackerrank or geeksforgeeks etc. Finally I found a website edabit.com that was totally free. It is amazing site and it helps me a lot for understanding JS method like map, filter etc. Now I have started solving hard problems too :)1
-
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
-
Many people seem to hate jQuery and want to do stuff in some library's way, and I'm here like... What? jQuery is a perfect way of doing things like DOM manipulation, when everyone comes along with their libs, they will only exist for 1 microsecond before it gets abandoned, while jQuery has been around for YEARS and it still works the way it first has been
I don't get the appeal for new JS libs and hate for jQuery, at this point I'm suprised its included in standard browser contexts2 -
Hey guys college student here. This easter I'll be focusing on learning JavaScript better. Yeah I've done some stuff with js, some small spa with angularjs (1.0), as well as some stuff in combination with a template engine ,(like thymeleaf). Should I start learning typescript along with angular 2/4 or es6?2
-
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 ?10 -
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
-
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
-
How the faculté of choice can be at the same time a wonderful delight as well as a freaking pain in the ass. espcially when considering JS frontend