Тёмный

My Experience with JavaScript as a Java Developer 

ForrestKnight
Подписаться 563 тыс.
Просмотров 57 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 188   
@fknight
@fknight 2 года назад
Just by making this video I'm already a better JavaScript Developer. Thanks to everyone for sharing their knowledge and correcting where I was incorrect. That was actually a big goal of mine in making this video and putting myself out there - to learn. A lot of individuals that post on social media want to act like they know everything, when in reality, they don't. I'm not talking about the commenters here, I'm talking about people trying to up themselves. But in doing so, they won't learn just as I did by making this video - even the simple things, like how JavaScript has classical inheritance and not just prototypal inheritance lol. Hope you enjoyed this video and learned something along the way.
@dannyt503
@dannyt503 2 года назад
@jeff pentagon EVERYTHING in JS is an object. console.log( 'string'.a ) // undefined console.log( (1).a ) // undefined Object.prototype.a = 1; console.log( 'string'.a ) // 1 console.log( (1).a ) // 1
@evebella3118
@evebella3118 2 года назад
@jeff pentagon You can change the built-in objects or classes just for the existing session not forever. So it's actually like in Java. Try for example to change at Math how it shows the PI value. Make it 5, for example. To see what has Math under his belt, you simply first run console.dir(Math) ; // which is *display interactive* and shows you a tree structure of Math (or of any other built-in // or not // object, class, function if needed, be it Date, Array, Object, Boolean - or everything else you can think of) Then ... surprise ... surprise ... run this code: Math.PI = 5; // it's 5 now -- you can check that by using directly console.log(Math.PI = 5) // 5 console.log(Math.PI); // 3.1415.... yep, it's again the default value, even at the very next line of code. For @ForrestKnight Javascript is the only language that runs in the browser - therefore the reason for its huge adoption. Actually it runs on 3 various environments: browser (as vanila Javascript alone , or plus its 'friends' : react, vue, angular, you name it/them); in Node, which is another environment, or finally in Unity (gaming development). It's pretty nice to have such coverage, in my opinion, for a single programming language (even if in several flavors). By the way, I wrote earlier below a comment even before watching your entire video, about the 'extends' word - which also exists in Java - and am curious about your insight in that matter.
@evebella3118
@evebella3118 2 года назад
@jeff pentagon TS was probably just a way to use a hand from the neighbors, to fill a gap (like was "use strict" for example in ES6). Many languages borrowed from other ones, it's a fact. About Math.PI, it's very simple, we 'consume' at runtime like a PI shadow, not the original one, an image of the built-in stuff (else every hacker could permanently alter our browser API and invade our computers). As time as we ask again the Math it delivers a fresh 3.14 PI. Therefore it's elasticity not plasticity the specific of the way in which the built-in entities are stored in the browser. We can always reuse the clean version. It's like the meaning of var or let, they are conceived to be modified after initial assignment - because everything in browser must be used through either browser events as onload or human interaction as onfocus, onclick, on change, etc) - think as initial or future state in React. Funny thing, in initial specification of JS, at times when html4 was still spread, one could select an element directly by name or id, with prevalence for the name, if existed. Very revolutionary, I could say, so you wouldn't need the ugly sentence document.getElementById("demo").innerHTML = "Wow"; - because you could write (as you today can , too) directly demo.innerHTML = "Wow"; as time no other JS variable would be called again 'demo' of course to overwrite our div identifier. But at that time there were no modules whatsoever, no third-party external scripts, no CDNs, not even the age when Yahoo started to deliver us viruses through their infamous advertising banners loaded in s (where bad guys changed their original jpegs into bad things :^) Today we shouldn't complain too much, as we have Babel to make code work in any client (as we have SASS or jQuery meant to generate compliant CSS or JS code for each vendor browser)
@fknight
@fknight 2 года назад
This is an automated comment to display likes & dislikes for the video you're currently watching, since RU-vid decided to disable the dislike count on videos. Views: 17574 Likes: 1064 Dislikes: 27 Ratio: 97.5% Last Updated: Dec-29-2021 RU-vid, please don't ban or shadowban me. I learned how to do this from your own docs. Lol thanks.
@shadofermusic
@shadofermusic 2 года назад
lol wow nice workaround
@KennethFromSkarpt
@KennethFromSkarpt 2 года назад
Damn, this is not in sync 😅¨¨
@jdude99lolz
@jdude99lolz 2 года назад
They closed off the api recently did this break it?
@jestech4617
@jestech4617 2 года назад
Ah damn I think it broke :(
@alejandrocabrera6089
@alejandrocabrera6089 2 года назад
Yeah I don't think its working no more, every field is at 0.
@panmateusz
@panmateusz 2 года назад
In javascript you can also use extends keyword in your class definition and it works almost the same like in java.
@fknight
@fknight 2 года назад
Good to know. Is that or prototype best practice? Or is it just purely based on preference?
@TerriTerriHotSauce
@TerriTerriHotSauce 2 года назад
@@fknight extends is best and really current practice and prototype is well... legacy. You now use extends and explicity inherit properties and methods from the parent/base class by calling super.
@panmateusz
@panmateusz 2 года назад
@@fknight definitely you should use this new class syntax just because it is much cleaner, however objects created with this method are still based on prototypes that are just 'hidden' inside modern syntax.
@the1badams
@the1badams 2 года назад
@@fknight To expand on what others have said, the class keyword in JS doesn't add any new functionality - behind the scenes, you're still using the prototyping that you use in this video - only in a cleaner, newer syntax. And as a java developer, you will find that syntax much more familiar than the method you had been employing.
@abdoo89
@abdoo89 2 года назад
@@fknight The class method with the extends keyword is the new syntax. In the background, it is just a syntactic sugar on top of the prototypical inheritance, so it is still good to understand prototypical inheritance. But in general, just use the class syntax as it is the more modern way.
@TerriTerriHotSauce
@TerriTerriHotSauce 2 года назад
The Java does look neat, but I would recommend that you write Javascript classes the ES6 way. Like so: class Bike { constructor(wheels = 2) { this.wheels = wheels; } } class Dirtbike extends Bike { constructor(engine = 125) { super(); this.engine = engine; } } const ktm = new Dirtbike(); console.log(`Amount of wheels: ${ktm.wheels}`); console.log(`Engine size: ${ktm.engine}`);
@theblindprogrammer
@theblindprogrammer 2 года назад
JavaScript, as a language, seems poorly-designed language. Java is great because it is modeled after C, which is the gold standard of all programming languages.
@killerdroid99
@killerdroid99 2 года назад
@@theblindprogrammer well javascript is also designed over c/c++ the for, while, do-while loops are same if-else, switch-case etc are same and the simplest object oriented method to create an object by simply using a function (factory function) and inheritance is just so easy with Object.assign() method in js no classes no syntactic sugar its well designed and maintained with well written docs on MDN, u just have to learn it the JS way
@theblindprogrammer
@theblindprogrammer 2 года назад
@@killerdroid99 JavaScript as a language is not special, anything you can do with JS, Python or PHP can do it better. If you want to write optimized iOS app you use either Swift/Objective-C, Java/Kotlin for Android, web-apps for Python/or PHP, Anything low level C/C++ dominate; so what the hell does JS is good for? JavaScript is good example for language that wants to be everything for everyone, but in reality it turns out to be nothing to no one.
@RoastLambShanks
@RoastLambShanks 2 года назад
@@theblindprogrammer Do you even Front-End?
@aoeu256
@aoeu256 Год назад
That way is too verbose, just have objects inherit from other objects also use json.
@ederolima
@ederolima 2 года назад
My tip for learning JS is: Don't strictly follow paradigms. Javascript is a multiparadigm language, you can use whatever paradigm you like in it. As you start learning JS, you'll se that most modern JS relies on functional patterns, such as HOFs, closures and functors.
@iorekby
@iorekby 2 года назад
While it might be multi-paradigm (most popular GPLs are tbf) language but some of the support for those paradigms as has been mentioned, (like OOP) aren't the best in JS compared to other languages.
@sangamo38
@sangamo38 8 месяцев назад
that's just a lie.
@ericryu599
@ericryu599 2 года назад
imagine me, i came into university and learned python the first year then java... the transition... oh my... i've only dabbled in javascript, but it seems like its as if java and python had a baby. tbh nowadays i find python super handwavy so i totally understand the part where u talk about python being a dynamic typing language!
@bayardolopez4144
@bayardolopez4144 Год назад
As a JS developer, I think JavaScript is the weirdest of the languages. I love it but I can see how it creates confusion.
@DaveO0808
@DaveO0808 2 года назад
a newbie here as a Java main and javascript side so glad to find this channel!
@philipferrari5130
@philipferrari5130 2 года назад
If you want to prevent variable reassignment, use “const” instead of “let”.
@balwamaargaming
@balwamaargaming 2 года назад
But you won't be able to change its value, right?
@GabrielRUrsu
@GabrielRUrsu 2 года назад
@@balwamaargaming You won't be able to change it's value type. You can have something like: const arr = []; //empty array; Then you can use arr.push(2) //arr = [2] and it will work because the type of arr is still an array.
@study-me1oe
@study-me1oe 2 года назад
@@GabrielRUrsu thats what knight meant: somewhat poorly designed
@pixelsam123
@pixelsam123 Год назад
@@study-me1oe Really? The only language where you can declare a truly non-mutable variable is Rust, really.
@90percentdev
@90percentdev 2 года назад
you are correct. you enjoy doing what you know and don't what you don't. i can respect that
@FellTheSky
@FellTheSky Год назад
I've been using java and c# for years and when a js user teaches me something I can't avoid to think to myself "Look what they need to mimic a fraction of our power"
@ebenmeluifechukwu4298
@ebenmeluifechukwu4298 2 года назад
Java makes me feel like a Senior Developer (even though I am not) and Javascript makes me feel like a Junior developer. every time I run into bugs like 'undefined' or some creepy bugs because of Javascript's dynamic variables thingy. But I still like how Javascript is. I hate es6 classes, so I just use functional programming style Javascript, because I don't understand the 'this' keyword. Or maybe I am just dumb.
@carldrogo9492
@carldrogo9492 2 года назад
The "this" keyword is one of the biggest idiosyncrasies of the language! I understand your frustration.
@mattstyles4283
@mattstyles4283 2 года назад
I'm a java developer so don't know anything about JS version of 'this'- but does it not just hold a reference to the object from within which code is currently being executed? I.e. it refers to itself
@shadon_official2510
@shadon_official2510 2 года назад
@@carldrogo9492 I agree, dealing with “this” can be very annoying!
@allanacree
@allanacree 2 года назад
Honestly wouldn't mind more videos on this topic of you continuing to use JS, would be cool to see you work on some of your projects being relatively new to JavaScript.
@jesinthejust2205
@jesinthejust2205 2 года назад
Man ....never thought jesus was into coding. Amen
@badkar7523
@badkar7523 Год назад
The comment of the year 👍👏🏻😅
@mywork1522
@mywork1522 Год назад
My reply after year😂😅🤣
@ezeasikobia5059
@ezeasikobia5059 5 месяцев назад
😂😂😂
@okfire3186
@okfire3186 22 дня назад
Amen
@SneakySnorunt
@SneakySnorunt 2 года назад
I mainly develop using javascript, both in the work environment and personal stuff. I do remember loving SML in college because I was good at it and I could just solve problems easier with it. Never committed to it because I didn't think I'd find a job in SML. Great video as always!
@dannyt503
@dannyt503 2 года назад
Point 1 about types: You are right. Types in JS are terrible. TypeScript was invented to fix that problem in JavaScript. Point 2 about classes: ES6 introduced JS classes that is roughly the same as the Java version of classes.
@stevofficialmusic
@stevofficialmusic 2 года назад
To me, such a big difference between JavaScript and Java is the “typelessness” of JavaScript vs. the strict typing of Java. I feel like that alone makes the approach I take with JavaScript more of an “on the fly”/“ehhh I’ll let it handle this at runtime” approach vs. with Java you have to have things much more strictly defined and organized because it is typed and you have to compile it. Furthermore, I feel like with those approaches, I tend to just write functions for my repeatable code in JavaScript (maybe that’s not the correct way, but it’s my way😊) vs. with Java I’m more likely to create a class for something repeatable. Lastly, when I approach something with JavaScript, it’s most likely going to be front end interacting with a UI, so to me it’s a much more trial and error, visual, UX, creative/right brained process, so I am hacking away at it until I get it right or am pleased with it, but with Java it’s more about planning and thinking in a more left brained way. That being said, I guess that’s why I tend more towards just writing functions with JavaScript and creating classes with Java. Maybe I should do more planning and create classes with my JavaScript, but at the end of the day if you have a solution that works for what you’re trying to achieve, I believe that’s what matters most. Just my two cents. Great video, got me thinking!
@javier.alvarez764
@javier.alvarez764 2 года назад
Java also now has that but yeah companies are stuck on Java 8 not the newer versions.
@trinimac2026
@trinimac2026 2 года назад
There are 3 words you should not use in JavaScript unless you are forced to: class, prototype and this. You have closure and first class functions. Use them!
@muhdzafri7551
@muhdzafri7551 2 года назад
Hey Forrest! Are you interested in making a video about the Log4J thing?
@dannyt503
@dannyt503 2 года назад
I would love to see a follow-up video to this saying your thoughts on TypeScript as a Java Developer. Your two main gripes with JS are the types issue and the classes issue. TS fixes the types issue and ES6 classes fix the classes issue. You say you already have some projects that use TS on the front end so you could maybe request to work on the FE of those projects for a bit to get a feel for it. Alternatively you can convert the JS project you made for this video to a TS project. Converting a JS project to a TS project is more difficult to get the types working than working with TS from the start though.
@dannyt503
@dannyt503 2 года назад
@jeff pentagon I'm working on converting our component library to TS at the moment. I need to try to avoid making any breaking changes. I need to write some pretty gnarly types to get it working for some components 😬
@EthanStandel
@EthanStandel 2 года назад
So... JS has a class keyword. That kind of feels like a major miss here on such a quick comparison. If you thought that was a TS feature, it's not. You seem to imply that JS and TS are very different but they are exactly the same except for type annotations. It sounds like you should just... add TS to your JS projects. 🤷‍♂️
@devilkitchen3526
@devilkitchen3526 2 года назад
I find Java is just more satisfying to program in rather than JavaScript
@legitlinus9052
@legitlinus9052 2 года назад
ye
@cgme9535
@cgme9535 2 года назад
I do as well. I work with JS because it's literally everywhere. But the loose rules with non-static typing, function hoisting, == vs ===, strange functional implementations, and ambiguities with local & global variables are obnoxious. It doesn't feel like I'm programming. It feels like a kid told me rules to his game; the rules aren't consistent, logical, or standarized with other languages. I'd say C, Java, and maybe C++ are my favorite languages to work with. I do know Python and quite a bit of JS fundamentals. But that's just because they're so contemporary.
@btrsl
@btrsl 2 года назад
I watch your videos since I started learning programming and you become one of my models, and watching this video really makes me happy because I don't know a lot stuff, haven't build anything big but I know some stuff and still learning. People act like they know everything at best and when you follow that people you think that you're stupid and you try to learn more other stuff and you get lost but this is wrong. You're a Java developer, a good one I assume (I don't know much about Java) but just not best at JavaScript, does it make you more less programmer? No. And now I see, I can somehow become a closer version of one my models makes me feel great. I hope you continue working on JavaScript, maybe making video series? Not comparing to Java but trying to make project(s). I don't know it feels really good when a good programmer leaves their comfort zone and try something new and share it with people like me. Btw, I feel like I'm better than you at JavaScript concepts but you'll easily do better if we both try to build a JavaScript project which makes you more valuable for industry and me still being end up learning more about JavaScript's prototype based model.
@DemetriPanici
@DemetriPanici 2 года назад
Very interesting insights here
@andyperaltaperez8699
@andyperaltaperez8699 2 года назад
Bro thanks, I've been a learning a lot from your vids keep it up!. Also congrats for you brand new podcast. I was wondering if you could make a video about how to network in the tech industry. It would be very helpful.
@scotttang6229
@scotttang6229 2 года назад
I use CONST 99.9% of the time. And I often apply functional paradigm with JS vs OOP. JS OOP isn’t the same as the classical OOP we see with Java. And I really do not like using prototypal syntax. ES6 makes it more manageable but why use it? We can use composition instead of inheritance. JS is far more natural to use as functional vs OOP. Keep mutations down to the minimal and you will rarely if ever run into the issue of assigning variables from string to num and etc. I avoid using let and var unless I know specifically where and when I need to reassign that variable. And usually never more than 2 times. The reassignment happens 1-3 lines below the declaration of the variable.
@rustystrings0908
@rustystrings0908 2 года назад
Start using const for variables that aren't being reassigned. You can even see the creator of React in interviews very recently saying that he doesn't even care about const vs let, however const is definitely the safest way to catch yourself reassigning by accident.
@JDMorris81
@JDMorris81 Год назад
I recommend you give Kotlin a try. It's exactly like Java without all the disadvantages.
@wilsein9443
@wilsein9443 Год назад
Totally unrelated to the video but I love how he gets glasses as soon as the sponsor section begins and loses them as soon as it ends.
@hoolaboola968
@hoolaboola968 2 года назад
Regarding having to explicitly write String in Java, since Java 10 (or so) it's been possible to just say var myVar = "Hello, World!"; in cases where the compiler can infer the type (e.g. a method returns an ArrayList, so a variable assigned to the result value will always be an ArrayList). The type of the variable is still String, but you don't need to specify it. As for JavaScript - my absolute favourite thing about it is how you can mess around with functions in ways that are super cumbersome in many other languages (like Java's Lambda syntax is way harder to do). Pass a function as an argument to a function? Sure, no problem! Return a function from a function? Sure! You can do pretty much anything with them, which is super great but also easy to mess up with 😎 It's also a pain in the ass, because JavaScript is so lax about types and such, but when it works for you, it really works for you.
@CrazyCodingChannel
@CrazyCodingChannel 2 года назад
Very interesting, do more of these conversational videos
@praveendilruck1169
@praveendilruck1169 2 года назад
Thank you Sir for your valuable information❤💪
@geekthegeek730
@geekthegeek730 2 года назад
what you are referring lomobk is automatically doing for you just by using annotations. In JS there is a similar concept called decorators. Best advice is to use Typescript which is superset of Javascript and eslint rules
@TynamiZ
@TynamiZ 2 года назад
Never would’ve thought that Jesus Christ himself is learning JavaScript at the same time as me…. W
@albdelgado
@albdelgado 2 года назад
I like js. I like java. And I get what you mean. But try passing functions as arguments in js and you'll know what all the fun is about in js
@walimorris2406
@walimorris2406 2 года назад
Wait so… Java 8 isn’t the only version available? 🤪
@fknight
@fknight 2 года назад
That's what they say lol
@walimorris2406
@walimorris2406 2 года назад
❤️
@shanix6617
@shanix6617 2 года назад
i can't find the automated message
@fknight
@fknight 2 года назад
Just pinned it
@ADKBuddy
@ADKBuddy 2 года назад
@@fknight Are you sure? I only see the "Just by making this video I'm already a better JavaScript Developer."-comment pinned
@wdeath
@wdeath 9 месяцев назад
They are very different languages, and i think the main difference is the asynchronous programming 1. dynamic VS static 2. JSON(many things is just data, doesn't become new types) VS Classes for everything (UserDetailsRepositoryReactiveAuthenticationManager etc) 3. more functional VS very object oriented 4. asynchcronous (either callbacks, or async/await, or reactive programming) VS syncrhonous(threads or virtual thread now) Javascript as exception using typescript can be static looking, and easier to write object oriented code. Java as exception can be more functional with streams and with reactive programming can be asynchronous(after project loom will be reduced even more)
@MrMortonFizzback
@MrMortonFizzback Год назад
I'm coming out of a Java bootcamp, and as I try to see why Node or Java are chosen for a project, I mostly hear poeple advocating for Node because of the minimal boilerplate. But now that we have things like copilot and tabnine does this mean there's even lesser excusses no to choose Java. What if I want to build a personal project and hopefully turn it into a product with millions of users (lol i know) is Java the way to go ?
@andiuptown1711
@andiuptown1711 Год назад
Kotlin
@KLuqman01
@KLuqman01 2 года назад
I have an amateur question. Can you do front end development, especially for the web, with Java alone. I’m learning Java, and have a little experience with Python. I know you can use Django with Python for web apps, but my limited understanding/belief is that you “must” use JavaScript/HTML/CSS for front end/web development, even if you program in Java or any other language. Thanks
@dieselfreak28
@dieselfreak28 2 года назад
TL;DR - no, you cannot build a front end purely out of Java code. HTML, CSS, and JavaScript (optional, but will make your site/app far more usable) are all a browser understands. ------ You cannot create a front end with java alone, in that browsers only understand HTML, CSS, and JavaScript. The JavaScript is optional, although it makes things MUCH faster and gives a much better experience with it for the end user. If you don't use JavaScript, you're likely going to be using (for example) Django (using python), or Rails (using Ruby) or something equivalent to render the HTML on the page. However, the issue with that is every time you do just about anything on the site, it will have to refresh the page to render the new state. (In a nutshell) JavaScript makes it faster and easier because it can dynamically change the HTML that is already rendered in the browser, instead of having to refresh the entire page. Hopefully this all makes sense haha. I don't know if Java has a Django equivalent.
@DerChrilleAusBln
@DerChrilleAusBln 2 года назад
Depends. JS still is dominating for modern web stuff. With Java alone I think not, at least not in todays landscape. There’s probably some way to “compile” frontend code from Java but at the end it gets “compiled” to js/html/css. Maybe at some point it’ll be possible through web assembly, but that itself is pretty uncommon and in early stages.
@EthanStandel
@EthanStandel 2 года назад
@@dieselfreak28 I feel like you skipped the fact that just as you can use Django with Python or Rails with Ruby, you can use Spring with Java to make SSR web apps. Same limitations, obviously, no dynamic behavior and all that, but I feel like you only made your point more confusing by bringing other languages into the topic.
@dieselfreak28
@dieselfreak28 2 года назад
@@EthanStandel I mentioned at the end of my comment that I wasn't sure if Java had an equivalent or not. I'm not really a Java dev so I wasn't sure. I brought up Django because the original comment mentioned it and it seemed like I could use that to help my explanation. You're probably right that I should have left rails out maybe though. Apologies if I made things a little confusing. My TL;DR still stands though I think.
@EthanStandel
@EthanStandel 2 года назад
@@dieselfreak28 yeah, nothing you said was inherently wrong, but now most Java applications today are web apps, but oftentimes it's just services that don't actually have a frontend though they do have the ability to SSR
@Zayelion
@Zayelion Год назад
I hear these arguments a lot, and I some what get them but at the same time my mind goes to "why would you even try to combine or redefine into different types". Seeing you use proto in JS reaffirms my belief that JS is just poorly taught by most people. There are SEVERAL other ways of doing that same thing that model the way classes are created in Java. For someone only knowing one way I see why this would be difficult. The best way of learning JS in my experience is Douglas Crawfords videos here on YT followed up by Eric Elliots articles on Medium.
@AshtonMotana
@AshtonMotana 7 месяцев назад
My variable doesn't change data types thise which do must really like the hunger games
@ilkrsrc081
@ilkrsrc081 2 года назад
I also don't understand how anyone can say Java looks more appealing over Javascript but maybe I'm biased too as Js developer. Because of all the keywords and types like string public void before you even log something to the console. I would quit if I were to start from Java.
@ShivamSharmabtp
@ShivamSharmabtp 2 года назад
yeah i would also not have become a developer if i had started with java. would have worked on carrot farm instead.
@legitlinus9052
@legitlinus9052 2 года назад
coming from an amateur java developer, java is just extremely consistent and logical. everything is part of a class, even the main function. this way, there are only class functions and instance functions. if you dont like it, you can just straight up ignore the class containing the main method. it really depends on what youre used to
@kolega1999
@kolega1999 2 года назад
@@legitlinus9052 The same can be said about JavaScript/TS where everything is an object or part of a object and the functions you are using are methods on these objects or instances of functions, which also are objects. There is no main method, you have the global window object and you can do whatever you want, wherever you want. It is as logical, just different.
@kolega1999
@kolega1999 2 года назад
@jeff pentagon Doesn't change the fact that the developer experience is the same, or I'd say better in ts
@evebella3118
@evebella3118 2 года назад
Totally agree ! It's same hideous extra verbosity in front of each variable name as in php where everywhere you see the $ sign in front of the variable name instead of the clean names as in JS. I don't say that the verbosity in Java isn't somehow needed, but I suppose that instead of repeating as crazy that verbosity one could better just apply some simpler syntax // or naming // convention (as is in Underscore JS where you see things as _.name or _.price or _.length). I'm not saying that JS is perfect, because even here you have idiotic ways of naming the things -- as is writing the word `extends` instead of something better. Imagine how nice would be to write class Car { constructor(wheels) { this.wheels = wheels; } } // followed by class ElectricCar uses Car { // which is more logical than `EXTENDS` // some code here, too } because ElectricCar is another Car that doesn't actually extend anything, it's not giving any extra `arms and legs` to the initial Car. Obviously, it just import, applies, uses the old stuff from the ancestor Car, for ITS own use. ElectricCar just begs (and receives stuff from the merciful Car), not the other way around. Saying Car extends ElectricCar sounds like saying that a Beggar giving something to ElonMusk :))))) I could accept to see isExtendedBy or From but never the stupid extends. It does not "extends" anything because the ElectricCar is a different thing and the older Car stays imutable as it was in the beginning, despite the fact that a younger brother of it is just born. It's not something as `let x = 2;` followed by ` /*you know what ? */ x = 5; /*from now */ ` :) Sadly in a world that might be construed on the absolute precision, even the words that are called to explain the stuff in the clearest form are sometimes like damaged. Consider also other stupid naming, for example in CSS, where you say that a child has "position: absolute" compared to its parent (and the parent is having position instead "relative"), while in reality we shouldn't care where is the parent, because we only care that the child is 2 px towards left side relatively to the parents' position. Obviously someone from CSS Working Group never heard of Einstein and his theory of the relativity concept (related to // compared to // in relation to someone or something // the observable relative to the zero point of reference, etc). It's a pity that when even the mere [ humble dwarf ] html5 introduced the revolutionary semantic keywords when evolving from html4, the [big giants] programming languages didn't align themselves to clean the nonsensical garbage from their own verbiage. Or the MySQL the stupid thing of keeping that nonsense of third party logic (instead of dual as is in boolean logic) since E.F. Codd wrote it in the 12 principles of relational databases (3. Null values must be uniformly treated as “missing information,” not as empty strings, blanks, or zeros.). The discussion could go on. I remember that even about OOP some great coder (I think it was the Erlang creator) said something controversial but really funny and having some real ground : *when you ask a variable value in OOP is like you ask a banana and instead of receiving one you see coming to you a gorilla not only with the banana but with trees and basically the entirely jungle behind it just to bring you that banana* ROFL - www.johndcook.com/blog/2011/07/19/you-wanted-banana/
@handyman787
@handyman787 Год назад
Starts at 5:20
@Hunt92
@Hunt92 2 года назад
One the surface yes java is oop based and js feels more functional programming baised but js also has a traditional oop way of writing code so you really dont have mutate your variable object rather you can create a class
@josephthecreator
@josephthecreator 2 года назад
I HONESTLY wanted to start off with Javascript. However, my college starts off with Java programming next semester so....JAVA it is for me ☕😅
@andiuptown1711
@andiuptown1711 Год назад
Update? Cuz same
@yasinnkhann
@yasinnkhann 2 года назад
I like the Car and Carpet example but I think Car and Cart would be better
@RedJackWZ
@RedJackWZ 2 года назад
Please make a Java developer Roadmap
@sumant2000
@sumant2000 Год назад
how do you get clients who pay you? as a freelancer, every newbee freelancer has this question.
@DevlogBill
@DevlogBill 2 года назад
Hi, forest knight. I’m from New York City there is a job market for Java. Basically, I love the language and I wanted to know from your experience. Do you need college in order to find a job knowing Java? At the moment I am a beginner and I’ve been learning JavaScript and some Python and recently I played around for 2-3 weeks Java using Eclipse and I like the language, what are your thoughts?
@johndo8143
@johndo8143 2 года назад
you don't need a degree. just need to know your stuff and prove that you can do the job. if you choose to learn java then learn core java and after that learn the spring framework
@MBXD001
@MBXD001 2 года назад
Bro’ amazing projects! Uve been coding for how long ?
@sp3cterproductions
@sp3cterproductions 2 года назад
Java is a Semi-Truck. JavaScript is Optimus Prime. "Same same but also different but still same." - Wiseman
@bastisprogrammingcorner
@bastisprogrammingcorner 2 года назад
I like to think of programming languages and technology in general as tools. Every tool in my box has certain strengths and weaknesses. Some tools are more general and may overlap in their use cases, others are highly specific. A knife for example can be used for many things but I would prefer a hammer to place a nail into the wall. Sure, I may be able to use a spoon for that, but it will be much harder to do.
@bisark1
@bisark1 2 года назад
to my knowledge jest is the most popular test runner, with some great mocking features. Java/.Net feels to heavy for me. full stack js/ts developping is like the sweet spot for me
@unlisted8042
@unlisted8042 2 года назад
They have an AI that can finish your code? So, how long before the AI replaces you?
@endchoice1073
@endchoice1073 2 года назад
If you are java spring boot developer then try nest js with typescript really same and nice
@cuervo7029
@cuervo7029 2 года назад
Man i just bought Java Programming Masterclass covering Java 11 & Java 17 It is over 80 hours , would you still recommend learning Java in 2022 and for the upcoming years , and if you could please please upload a video comparing Java Vs Java Script And Why Is java or Java Script better, Best regards!
@gyanendrauniyal3595
@gyanendrauniyal3595 2 года назад
Hey man , no issue that is a great course and i am following it myself . But you can always switch to other language plus the course you bought will always remain there whether you complete it now or sometime in future. The confusion is normal I have it too and guess what other developers out there too , good this means you are serious about this. Learn what interests you and don't limit yourself with one tool or language . If you want to switch to js then do it and later when you want to do full stack you can come back to Java or python or node.js . The only factors are time and consistency, time you will have a lot and consistent is something that's in your hand . Have a great learning and career
@awinashkumar5535
@awinashkumar5535 2 года назад
Is 2nd Generation core i5 8GBB DDR3 RAM 240GB SATA SSD good for Coding/Software development? Like: MySql, VMware,Kotlin, Android studio, Java, NetBeans,Sql, vs cose, intellij idea
@asoukes
@asoukes 2 года назад
Weird, when I have comments sorted by top, I can't see your automated message at all, but if I sort by newest and go to the bottom, then I can. Might be just me tho.
@oumardicko5593
@oumardicko5593 2 года назад
once you get used to typescript, it's hard to go back to js
@kiramaticc
@kiramaticc 2 года назад
I will never go back to plain Javascript after having used Typescript, especially for newer projects. The type safety that Typescript provides makes it impossible for me to use plain Javascript nowadays. Also, since Typescript is just a superset of Javascript, everything you can do in Javascript you can do in Typescript. There are literally no downsides to using Typescript over Javascript in my opinion.
@oumardicko5593
@oumardicko5593 2 года назад
@@kiramaticc absolutely
@enlightened7354
@enlightened7354 2 года назад
Once you lean java other shi ts looks so simple in my opinion. Especially you practiced java with android development then it seem a lot easier to learn front end.
@sameersaini2394
@sameersaini2394 2 года назад
yeah m doing js as my first language kinda after learning python and prototyping is straight up wierd
@sameersaini2394
@sameersaini2394 2 года назад
still a super beginner tho
@stephenjason7575
@stephenjason7575 2 года назад
just use const instead of let it will solve the problem
@Pixelflames1
@Pixelflames1 2 года назад
This was one of your more frustrating videos. For more than half the video you drill the disclaimer that your not used to javascript then you do a sponsor bit. Then you spend maybe 10% of the video actually talking about your opinion and say...I geuss ill end it there. WTF man if its a 13 min video atleast give a 10 min opinion/ expierience video.
@antonioilievski6801
@antonioilievski6801 2 года назад
I want to start coding,I literally have 0 knowledge which language should i start learning?Java or javascript?
@johndo8143
@johndo8143 2 года назад
java
@bezelyesevenordek
@bezelyesevenordek 2 года назад
c++
@Eduardo36005
@Eduardo36005 2 года назад
Why don't you try typescript?
@kitrodriguez992
@kitrodriguez992 2 года назад
I love JavaScript. Mainly because of Discord bot development.
@randompotato258
@randompotato258 2 года назад
@ForrestKnight i think if you are in web app dev it is good to have at least some basic javascript knowledge regardless of the language you are actually using because it will be actually helpful and will help you push ur skills and what you can do to the next level
@dorupopa
@dorupopa 2 года назад
This comparison was a miss due to the fact that you can write classes in js just like in java
@MsScarletcrimson
@MsScarletcrimson 2 года назад
Actual video starts at 5:20
@fronix5060
@fronix5060 2 года назад
"I want to dig a hole, now I know we have excavators, but that's not the point. I wanted to dig the hole with a shovel because... why not?" Jokes aside, great that you want to learn JS, but I would not recommend this to anyone. TS just solves so many issues that JS has had since it was created, and I'd never go back unless I had no choice.
@uziboozy4540
@uziboozy4540 2 года назад
Should've compared Java to TypeScript instead..
@noskillz900
@noskillz900 2 года назад
TypeScript
@fknight
@fknight 2 года назад
I also prefer TypeScript lol
@noskillz900
@noskillz900 2 года назад
I'm exploring how to do this with python as well. I saw this during an interview I had, I was so lost because I had never seen this done in python. I didn't pass the interview lol
@yugeshkk3062
@yugeshkk3062 2 года назад
I'm learning programming should I start with javascript...
@philipferrari5130
@philipferrari5130 2 года назад
Depends on what kind of software you want to build. JavaScript is used for web development.
@EthanStandel
@EthanStandel 2 года назад
I would argue JavaScript is the most versatile language, even if it's not the best thing for most scenarios. I think it's a good starter if you want to engineer software, but not a great start for general computer science.
@johndo8143
@johndo8143 2 года назад
imo you should learn a statically typed and strong typed language. Java, C# comes to mind
@im_inkfix
@im_inkfix 2 года назад
Funny pro developer has a same complaint as someone learning programming with javascript
@samuelcarter8021
@samuelcarter8021 2 года назад
I’ve been seeing a lot more front-side videos pop up. One of my classes just had us do a semester project that runs a web app in Spring Boot, is there any need for junior software engineers to know that? Sometimes I wonder if I need extensive front-end skills to get a good job
@outofboundsbro
@outofboundsbro 2 года назад
In my experience searching for jobs their are alot for Spring Boot.
@samuelcarter8021
@samuelcarter8021 2 года назад
@@outofboundsbro Do they specialize in Spring Boot or are they SE jobs that require Spring Boot knowledge to do the job?! Sorry if this is a silly question
@outofboundsbro
@outofboundsbro 2 года назад
@@samuelcarter8021 I'm gonna say both. Also do personal projects in something that interest you by yourself or a group of friends so you have something to show when you graduate. Also internships good luck! 👍
@rakeshchowdhury202
@rakeshchowdhury202 2 года назад
To me Javascript is ok as long as no one decides to use js for desktop applications. The very reason discord experience sucks is because no one wants a ram hogging js app to voice chat with friends during a intense game
@j0gi
@j0gi 2 года назад
Strange, I have absolutely no problems using discord and gaming with it and I've never heard of anyone else I know having a problem with it.
@Levi_OP
@Levi_OP 2 года назад
inheritance is literally something you can do in javascript. what you showed in java is literally something you can do in javascript, with out the proto stuff. did you just never try it or what?
@jayheikt
@jayheikt 2 года назад
Amazing
@DevlogBill
@DevlogBill 2 года назад
Good video
@muhawenimanajanvier6280
@muhawenimanajanvier6280 2 года назад
So you went from Typescript to Javascript === "I don't want peace, I want problems"
@beaker8111
@beaker8111 2 года назад
A java dev who doesn't like Javascript? I'm shocked. Hot take there, Farrest.
@Kats0unam1
@Kats0unam1 Год назад
Use Typescript
@radudilirici
@radudilirici 2 года назад
7:05 Because in Java.. that's blasphemy.
@jameshans7459
@jameshans7459 2 года назад
Did you watch tutorials and docs from 2010 to learn JavaScript? 😳
@unisbangura8038
@unisbangura8038 2 года назад
My a JS developer you don’t know.
@LIFEIS702
@LIFEIS702 Год назад
Stop saying sorry to those JS kids. Javascript could have been better tbh
@muhdzafri7551
@muhdzafri7551 2 года назад
Some people block JavaScript and enable it on some sites only (choice)
@LIFEIS702
@LIFEIS702 Год назад
You literally spent half the video explaining useless stuff
@nonub9781
@nonub9781 2 года назад
bfs greedy bfs 🤣
@nemanja6290
@nemanja6290 2 года назад
JAVA IS GOAT!
@sanusihassan7125
@sanusihassan7125 2 года назад
Fun Fact Javascript is older than Java
@bobi8091
@bobi8091 2 года назад
javascript kills java and pyton and c++
@sajanah1253
@sajanah1253 2 года назад
Maybe you should call this video My *first experience with JS as a senior Java dev... xD also side note : 5 mins for snowflake warning and sponsors are too long mannn :/
@Andrumen01
@Andrumen01 2 года назад
JavaScript and web programming are horrible. I think it is overrated in terms of flexibility, modularization, access to the local system, etc. How the web survived without the current frameworks? Difficult to tell...
@wildhogsm
@wildhogsm 2 года назад
That's just bad use of JavaScript, I didn't like how you used it either ROFL
@carldrogo9492
@carldrogo9492 2 года назад
I find it quite absurd and irresponsible not to know JavaScript in the modern era. Even the most mediocre Shitdevs know it because of its ubiquity!
@fknight
@fknight 2 года назад
lol this satire? There's no point in learning JS if you don't use it. Plenty of web devs don't even know JS, but only know of JS.
@whiteboard_Life
@whiteboard_Life Год назад
If it's work don't touch it classic
@godhandinfamous
@godhandinfamous 10 месяцев назад
as long as it works, JS is just a tool
@ademineshat
@ademineshat 2 года назад
Java C# same thing. About JavaScript you're right, not just that you are Java Developer.😊
@GratuityMedia
@GratuityMedia 2 года назад
What do you think about the HHKB keyboards made for programming ?
Далее
6 Mistakes Beginner Programmers Make
13:52
Просмотров 154 тыс.
What You Need to Know for Your Coding Career
16:31
Просмотров 388 тыс.
Beatrise (пародия) Stromae - Alors on danse
00:44
We're not even at PCIe 6.0 Yet!
28:19
Просмотров 864
How I Would Get My First Job If I Started Over
5:10
Просмотров 306 тыс.
How Many Programming Languages Should You Learn?
12:37
Просмотров 121 тыс.
8 Data Structures Every Programmer Should Know
17:09
Просмотров 17 тыс.
Why I Code on Linux Instead of Windows
7:34
Просмотров 957 тыс.
How to ACTUALLY Get an Entry Level Programming Job
13:46
Programmers Need More Math
5:17
Просмотров 34 тыс.