3 Features Java Got First And C# Later Copied

Поділитися
Вставка
  • Опубліковано 8 чер 2024
  • Check out my courses: dometrain.com
    Become a Patreon and get source code access: / nickchapsas
    Hello everybody I'm Nick, and in this video, I will show you 3 language features that Java got first and then C# ripped off.
    Don't forget to comment, like and subscribe :)
    Social Media:
    Follow me on GitHub: bit.ly/ChapsasGitHub
    Follow me on Twitter: bit.ly/ChapsasTwitter
    Connect on LinkedIn: bit.ly/ChapsasLinkedIn
    Keep coding merch: keepcoding.shop
    #java #dotnet #csharp

КОМЕНТАРІ • 326

  • @nickchapsas
    @nickchapsas  Рік тому +59

    If you are not watching this video on release day, then maybe look at the release date before commenting

  • @adamsarkany92
    @adamsarkany92 Рік тому +317

    "Java had before C# had it, which of course makes it better" I had to rewind it 2 times to make sure that I heard correctly, then I looked at the calendar and it all made sense.

    • @modernkennnern
      @modernkennnern Рік тому +1

      Honestly though, if you have something to go off of, you can prematurely fix all the issues that the other part might not have the luxury to do so.

    • @mad_t
      @mad_t Рік тому +1

      oh cmon you've ruined that) your comment is on the top)

    • @minhhieugma
      @minhhieugma Рік тому +1

      I guess it is like Android vs iOS

    • @iGexogen
      @iGexogen Рік тому +1

      You should read it like - java had it before C# that makes java better in that times when only java had it)) but it is still not true, there are some garbage features which existence in java makes no sense))

    • @NickSteffen
      @NickSteffen Рік тому +8

      @@iGexogenNonsense, Fortran is the best language because it had variables and if statements in the 50s. It will always be best until time travel is invented 😂

  • @alexanderkvenvolden4067
    @alexanderkvenvolden4067 Рік тому +32

    Man, I loved how hard it was sometimes to make Java sound better than C#.

  • @leetaeryeo5269
    @leetaeryeo5269 Рік тому +63

    😂 You can almost feel physical pain radiating from the video at things like the lack of string interpolation, mandatory escaping, and hanging brackets. This was a great one for today. Made me laugh

  • @benderbg
    @benderbg Рік тому +257

    I'm happy we're getting Java content from Nick even if its 1 day per year.

    • @nickchapsas
      @nickchapsas  Рік тому +42

      😂😅😂

    • @alirezanet
      @alirezanet Рік тому +6

      @@nickchapsas well I think he was serious 😂😂

    • @michelchaghoury9629
      @michelchaghoury9629 Рік тому +2

      @@nickchapsas I really would like to see more content related to java please consider it and thank you

    • @iGexogen
      @iGexogen Рік тому +1

      I alway thought that this channel is specifically about C#, till today))

    • @ivanp_personal
      @ivanp_personal Рік тому +2

      and we get it on this special day :))))

  • @AbhinavKulshreshtha
    @AbhinavKulshreshtha Рік тому +65

    Those who are old enough, remembers that c# itself felt like a java clone when it was first announced. Not to mention the whole j# and a lawsuit on api architecture between sun and ms. I was in college when this happened so at that time I couldn't understand the big technical background around this whole situation but I remember my vb/microsoft teacher, and java/linux teacher arguing a lot on this, during lunch hours.

    • @iGexogen
      @iGexogen Рік тому +9

      C# had tough destiny, it made through many wrong turns and complete purification until it became white swan we know today)

    • @agentvettel8720
      @agentvettel8720 Рік тому +2

      C# is a Java clone from Microsoft.
      In early Java days Microsoft took part in the development of Java but then decided to develop their own "Java", called C#

    • @iGexogen
      @iGexogen Рік тому

      @@agentvettel8720 They also had their own javascript with blackjack and hookers called JScript, that was very funny time)

    • @warny1978
      @warny1978 Рік тому +2

      @@agentvettel8720 Microsoft even built its own java VM... and its own base classes also. Then Sun prohibited that.

    • @phantomapprentice6749
      @phantomapprentice6749 Рік тому

      @@warny1978 And good thing they did , JVM sux.

  • @figloalds
    @figloalds Рік тому +21

    He really programmed in Java, he put an excruciating amount of effort into this joke

  • @billy65bob
    @billy65bob Рік тому +21

    while C# isn't really an innovator, I do appreciate that the features it copies are generally better thought out than they were in their respective languages of origin.

  • @rustamhajiyev
    @rustamhajiyev Рік тому +30

    Specially liked the moments with zooming 😂 You rock, Nick!🤘

  • @boast03
    @boast03 Рік тому +18

    I laugh and cry at the same time, because I had to switch from C# to Java (new Job). Think of those fellow programmers who have to deal with that horrible disease everyday. Not just on April 1st.

    • @bluesillybeard
      @bluesillybeard Рік тому +2

      Java isn't that bad, really. There are so many worse languages that they could use.

    • @Yous0147
      @Yous0147 Рік тому

      I had to switch to Java very recently too and I do miss C# as I prefer it, but honestly Java has it its strong sides too. In earnest I'm just happy I can code in both languages relatively pain free because they're so similar.

    • @futurexjam2
      @futurexjam2 Рік тому +1

      @@Yous0147 without LINQ, without Generic Type usage and overloading... Java hits you on the ground after C# :))

  • @iGexogen
    @iGexogen Рік тому +15

    It is shame that for some most tasty features that exist in C# you have to use third-party library like lombok in java, I talk about extension methods in first place. The second thing in java that I cannot understand are generic collections, they can be casted to non-generic collection, that means that value types in collections are always boxed in objects under the hood, java generic collections are only for convenience, missing memory efficiency. On the other side java includes exceptions in method signature - this is awesome feature that lacks in C#. But I still use and love both, all java language differences are minor, inconsiderable and just matter of habit. Really big difference is in java ecosystem, in that long trail of useless legacy code that follows java cause of it's maturity, some concepts are evolved and implemented completely different modern days, but java not keeping up this pace, they still offer you spring MVC as default way to do web and no even sign of middleware approach from C#. And I didn't mention that monstrous app servers like JBoss, Weblogic, etc mandatory to do some enterprise stuff, which in C# can be done out of box. What is conclusion - I always start new projects in C# to use all modern approaches, but still comfortable to work with some legacy code in java cause it is very good language as well.

    • @ClickOkYT
      @ClickOkYT Рік тому +2

      "exceptions in method signature" this is highly disputed topic, lots of devs hate Java because this

    • @vasiliychernov2123
      @vasiliychernov2123 Рік тому

      Checked exceptions don't scale well and for this reason are deemed as unsuccessful experiment. Also boxing in generic classes is going to be solved, check out Project Valhalla.

    • @fluffydoggo
      @fluffydoggo 10 місяців тому

      string LocalizationService.Translate(string key) throws ArgumentNullException, ArgumentException, InvalidOperationException, KeyNotFoundException.
      Even tho xml docs are ass to work with, you can describe each exception with a lot more detail, and xml docs arent required

    • @julianjupiter5890
      @julianjupiter5890 5 місяців тому

      Middlewares like Helidon, Javalin, Vert.x?

  • @johndenver8907
    @johndenver8907 Рік тому +12

    I honestly think the enum's as classes thing is never going to be copied. It's a feature I've called an anti pattern lots of times. The enum in C# is just a way to document the meaning of these values, but really in behind it's an int or something. It doesn't need to be used to encapsulate logic.

    • @Kitulous
      @Kitulous Рік тому +1

      sometimes enum classes can be used in a neat way, but we can already emulate their behavior by using records and having static readonly instances of these records inside it. slightly more code, slightly more verbose, but it's ok. especially after the target type new was added.

    • @simtrip6452
      @simtrip6452 9 місяців тому +1

      Yeah I think Java's enums being classes is a terrible idea. One one hand you sort of have to give it to them for being so relentlessly consistent, but in practice it just eliminates the perf benefits of using enums for things like bitfields etc. The Android SDK for example uses ints in place of enums (which is a massive headache as you now have to separately look up which constants each method accepts as flags) but it's because they quite rightly decided that having the overhead of a heap-allocated object every time you want to use an enum just is not worth it.
      I don't do any "enterprise" .NET stuff, but the ability to use extension methods for enums is easily enough for me, for things like string conversions or checking if a flags enum is in some special configuration

    • @pinkfloydx33
      @pinkfloydx33 8 місяців тому

      Oracle (or Sun) holds a copyright on enum classes. That's one of the reasons c# doesn't have it...

  • @haydensprogramming6766
    @haydensprogramming6766 Рік тому +25

    You forgot about non-generic ArrayLists, because why define a type when it just gets in the way and only supports storing one type /s

    • @nickchapsas
      @nickchapsas  Рік тому +51

      You are so right. I’ll make that video on Boxing Day

    • @glaubergft
      @glaubergft Рік тому +1

      @@nickchapsas touché 😂

    • @AftercastGames
      @AftercastGames Рік тому +4

      Some of us are old enough to remember .NET 1.0…

  • @zsolt2108
    @zsolt2108 Рік тому +3

    When your sarcasm is so advanced that people actually think you are stupid. 5:01

  • @LzBy1
    @LzBy1 Рік тому +1

    2:46 The expression on your face with the reference check 😂.

  • @parlor3115
    @parlor3115 Рік тому +2

    Don't forget Java's amazing cli tool that can create Java projects based on numerous templates and Java's amazing standard package manager.

  • @pokpok313
    @pokpok313 Рік тому

    i love this kind of humor. 😂 please do more like this!

  • @MagicNumberArg
    @MagicNumberArg Рік тому +10

    Those are all such great features... Too bad our app is still forced to use Java 8.

    • @stephenJpollei
      @stephenJpollei Рік тому

      Seems like 8 should be EOLed and migrated from. I tried Java SE 17 and it had features that I used that weren't in Java SE 11 . I think that it would drive me nuts to have to target java 8

    • @bluesillybeard
      @bluesillybeard Рік тому

      @@stephenJpollei Agreed, I honestly see ZERO reason to use such an outdated SDK.

  • @rade6063
    @rade6063 Рік тому +6

    Firstly when I got notification I was confused, you rearly post outside of your schedule, but when i watched the video I understood why you posted today. Java >>>> C# thats why we support you!

  • @stanislav7228
    @stanislav7228 Рік тому +6

    If it wasn't April first, it would actually start a riot :)

  • @BenMakesGames
    @BenMakesGames Рік тому +10

    I learned Java and (Mono) C# on my own ~8 years ago, while having PHP jobs, and decided to go all in on C# solely on my own feelings from using both languages at the time. I think I'm happy I did so: C# has grown so much, and though MS's early attempts at C# for the web were embarrassing, today there isn't a language I'd rather use. that said, when I saw the introduction of raw strings in C#, I was literally laughing; the syntax feels too silly to be real. (pattern matching syntax also isn't anything to be proud of, I feel...) still: looks like C# landed somewhere better than whatever Java came up with, so I guess I'll take it :P

    • @parlor3115
      @parlor3115 Рік тому +2

      With you on the pattern matching syntax but not on raw strings. What's wrong with them?

    • @UnashamedlyHentai
      @UnashamedlyHentai Рік тому

      @@parlor3115 opposite for me. i use pattern matching _all the time_ and I love them.

  • @NWessel
    @NWessel Рік тому +22

    Nick, did you see that .NET 9 you can have other developers write your code for you?

    • @amichelis
      @amichelis Рік тому +2

      No need, we have Indians on UA-cam!

    • @nmarcel
      @nmarcel Рік тому +1

      you mean the new "gpt" source generator feature?

    • @NWessel
      @NWessel Рік тому +2

      @@nmarcel nah, didn't mean anything with it. Was just a continuation of the april fools

  • @Speiger
    @Speiger Рік тому

    Great video!
    Had a great laugh xD

  • @pburczyn
    @pburczyn Рік тому

    ohh Nick... you make my day!

  • @TheNotedHero
    @TheNotedHero Рік тому +7

    Generics are also cool in Java because Java has them. Don't look at or compare the implementation details or runtime behaviour with C#, it has them and that's cool.

    • @Kitulous
      @Kitulous Рік тому +2

      java erases generics. and that's cool! less stuff to dead with, the runtime is faster and binaries are smaller in size! /s

  •  Рік тому +3

    There were some lol moments in this video. Thanks Nick, you made my day 😂

  • @eliaskoumoutshs9534
    @eliaskoumoutshs9534 Рік тому

    νικολα πες και κατι για front end .. αυτο δεν θα ειναι πρωταπριλιατικο αστειο ... ποσους controllers να φτιαξουμε ?

  • @R3ap4r
    @R3ap4r Рік тому

    The part where you zoom in and say "Excellent" made me laugh , i was imagining Mr Burns voice and hand gesture to go with it.

  • @burndasbr
    @burndasbr Рік тому +6

    Can't believe Java actually still has no string interpolation

    • @wagnernoise
      @wagnernoise Рік тому

      Well, if you use the format function it does the same thing

    • @burndasbr
      @burndasbr Рік тому +2

      @@wagnernoise It's much more cumbersome and less readable.

  • @jwbonnett
    @jwbonnett Рік тому

    Three qutotes can replaced with one backtick and you can use string interoplation with it, and with the enum you can do better too...

  • @paolo4995
    @paolo4995 Рік тому +1

    c# records and pattern matching are very similar (copied) to f#, does f# copied from java??

  • @petrucervac8767
    @petrucervac8767 Рік тому +1

    Nick having some fun on the 1st of April

  • @PaulSebastianM
    @PaulSebastianM Рік тому +3

    Laughing hard while watching one of Nick Chapsas' technical videos is the last thing I would have imaged I'd be doing. 😹
    Loved the subtle sarcasm, 'was just perfect! 👌

  • @romka2009
    @romka2009 Рік тому

    Great video for April 1st :)

  • @tempusmagia486
    @tempusmagia486 Рік тому

    You're the best one dude, definitely loved the video

  • @Baraka-yl2dp
    @Baraka-yl2dp Рік тому +1

    Now do another video explaining the features that appeared in C# first and later copied in Java and that make C# better.

  • @brokencrayon3476
    @brokencrayon3476 Рік тому +12

    You should really do this video idea but with kotlin as I think kotlin is way more comparable to c# especially as of recently

    • @nickchapsas
      @nickchapsas  Рік тому +37

      Kotlin is a really well designed language so it would be a serious video. I actually really like it

    • @brokencrayon3476
      @brokencrayon3476 Рік тому

      @@nickchapsas I really have to agree, C# was my favorite language to write in until I found kotlin.

  • @charliersfrederic660
    @charliersfrederic660 Рік тому +5

    There is no need to say that Java or c# are better.. the both languages are very clean and powerfull. I am pretty sure we could find some stuff created on C# and retreived after somme times in Java.. And even if it is not the case, the both languages have ++ and -- .. chose the one you prefer, and enjoy! :).. for a 1st April it is a nice video.

  • @jaymuraleedharan
    @jaymuraleedharan Рік тому

    Keep these comparisons coming...

  • @trxe420
    @trxe420 Рік тому

    Dammit, you actually got me. I forgot the date. you win.

  • @thisisnotajoke
    @thisisnotajoke Рік тому +1

    Well played, Nick, well played! 😂

  • @Dustyy01
    @Dustyy01 Рік тому +4

    Nice another Video 🔥

  • @camlcase
    @camlcase Рік тому

    Thank you Nick for teaching us Java 🤓 ❤

  • @nickst0ne
    @nickst0ne Рік тому +6

    Someday, Nick Chapsas will finally realize Cobol is the future.
    Can't wait for this channel to embrace the change.

  • @Tsunami14
    @Tsunami14 Рік тому +2

    This is gold!

  • @antonmartyniuk
    @antonmartyniuk Рік тому

    Lol, Easter Egg style video. Happy April 1st

  • @ernestgunning7246
    @ernestgunning7246 Рік тому +8

    Performances between Java and C# would be awesome

  • @cyril113
    @cyril113 Рік тому +1

    3 things you showed are unironically better: exhaustive switch on enums without default arm, being able to use multiple statements inside switch expressions and you aren't forced to return a value.

  • @MrOnePieceRuffy
    @MrOnePieceRuffy Рік тому +1

    I know it was an April 1st Video, I also think it was very good one, but I've true Story for this Topic:
    I've written simple Singleplayer Game Trainer in so much different languages in over 20 years and I can tell you, it was in every language kind of the same amount of work.
    The lower languages (C and Pascal) had as benefit that it's not complicated at all to mess with the memory, but all the higher languages made it good with syntax sugar, even JavaScript.
    Let's say with 200 lines i'd already something Hotkey controlled..
    And then I faced my Enemy... I always hated Java, but it had to be done.. And hey, I only needed to write 3 Interfaces, 3 Adapters and invoke 2 binary jar files for calling the Windows API Functions I needed. I was able to write at least a trainer which worked if I told it what the process id of the Process was because for getting the Processes ID of a Process alone, it had me costs 2 other Interfaces and Adapters.. So I know very good, that Java is not the right Tool for it, but at least 15 other languages which I made it with, also not.. so xD I don't argue there is no worse one.

  • @KosPerera
    @KosPerera Рік тому

    How is Java dealing with SDK-style project templates? I'm curious to see how todo Java in VS Code since Visual Studio doesn't support Java

    • @julianjupiter5890
      @julianjupiter5890 5 місяців тому

      You can even use Notepad and CMD only. VS Code is now the primary text editors for Java. If one needs quick update, instead of IJ, he/she would just open it in VS Code. There are now Java devs who go all in on VS Code. VS Code supports Java. There is a plugin being delivered by both MS and Red Hat.

  • @TampaCEO
    @TampaCEO Рік тому +1

    I'm so glad I read some of the comments before commenting myself. 🙂

    • @FunWithBits
      @FunWithBits Рік тому +1

      I wish I did! 🙂

    • @TampaCEO
      @TampaCEO Рік тому +1

      @@FunWithBits LOL! Don't worry - I thought Nick had lost his mind myself. Thankfully I read the right comments first. ;-)

  • @MrNidnan
    @MrNidnan Рік тому +2

    Almost got me there foools❤

  • @marceloalves6guitar
    @marceloalves6guitar Рік тому +6

    I'm trying to switch from c# to java, and I have to be honest, there are somethings in java that bother me a lot. I'm aware that most of it comes from the fact that I have been using c# for the last 12 years and I got used to do things in c# way, besides that fact that the languages resemble but they are not equal.
    One thing that a really miss on java are the class properties,
    and among the things that a really don't like are those classes with too much constrution parameter.

    • @TampaCEO
      @TampaCEO Рік тому +8

      Look at today's date. The video will make more sense.

    • @arctan-k
      @arctan-k Рік тому +1

      then just use Kotlin instead of Java! Kotlin is a great programming language that can do a lot that Java can't and can

    • @petrusion2827
      @petrusion2827 Рік тому +1

      May I ask why? I'm genuinely curious why you'd want to switch to Java after such a long time in C#

    • @ivanp_personal
      @ivanp_personal Рік тому +1

      Then better switch from C# to Kotlin

  • @the-avid-engineer
    @the-avid-engineer Рік тому

    On a serious note, java does allow static methods on enums 👀 is that syntax sugar or..?

    • @nickchapsas
      @nickchapsas  Рік тому +1

      Yeah it does. I actually really like Java enums

  • @poqdavid
    @poqdavid Рік тому +4

    Nice one😂this is my fav part 2:48

    • @tibba69
      @tibba69 Рік тому

      😂😂😂 I was cracking up

  • @bhatsanket
    @bhatsanket Рік тому

    Bruh, I woke up and saw the video notification and thought did I wake up in different reality and timeline.😂

  • @Cafe-O-Milk
    @Cafe-O-Milk Рік тому

    Excellent.

  • @bnm0312
    @bnm0312 Рік тому +1

    Reading the comments is funny. It's April Fool's Day folks (for those watching at a later date.) The sarcasm was dripping!

    • @FunWithBits
      @FunWithBits Рік тому

      yup, he got me! I was one of those comments. :-)

  • @gilbes1139
    @gilbes1139 Рік тому

    Does Java have type safe function pointers yet

  • @JVimes
    @JVimes Рік тому

    Legit helpful funny video. Nice!

  • @evanboltsis
    @evanboltsis Рік тому +4

    This video made me want to write async void methods 😂😂

  • @shaikh.quadeer
    @shaikh.quadeer Рік тому

    with c# u get azure that u dont get anything like that in java ?

  • @DucaTech
    @DucaTech Рік тому +1

    I have to say that the text block already existed in Python way before Java did.

  • @marklord7614
    @marklord7614 Рік тому

    If you're not paying attention, you'll miss the point of the video. I actually had to watch the video again to be sure, so great job Nick.

  • @pharoah327
    @pharoah327 Рік тому

    Can someone explain to me why C# warns about coverage in switch expressions when you have an enum and you have every enum value covered. Like why does it want you to put a default case when there isn't a value you haven't accounted for?

    • @nickchapsas
      @nickchapsas  Рік тому +2

      Enums can be casted from integers so technical you can have an enum that is "out of range"

    • @cyril113
      @cyril113 Рік тому

      Also enums are used for flags and then you can use bitwise or on them to apply multiple flags. In my opinion this is some legacy stuff and has no place in a modern language.

  • @nthonymiller
    @nthonymiller Рік тому

    Awesome 🎉

  • @bensadik
    @bensadik Рік тому

    I decided to switch to Java, but I got this error: the switch expression does not cover all possible input values 😢

  • @jaans3712
    @jaans3712 Рік тому

    I watched this video in the morning and I was confused. It all makes sense now of course

  • @EnchikO
    @EnchikO Рік тому

    I code in both as well and what I like the most in Java is JPA + Hibernate. Its so much better and easier to learn then EF and Dapper.

  • @olebogengthothela1191
    @olebogengthothela1191 Рік тому

    Oh. It's that day of the year

  • @Yogs01180
    @Yogs01180 Рік тому

    I was waiting for the twist 😂

  • @BlingPiece
    @BlingPiece Рік тому

    Nick you are brilliant, I have to switch to Java from c# in my role so I did a couple of advent of code and I hate it already, even just the lack of baked in linq equivalent. Still got a lot to learn and I’m sure there are 3rd party libraries that mimic linq but urgh

    • @vsf1
      @vsf1 Рік тому

      take a look at java's stream api (since java 8) ;)

    • @bigbiz990
      @bigbiz990 Рік тому

      @@vsf1 As a C# developer using java streams very unintuitive to me. It takes 3 lines in Java to do what I can do in just 1 line using linq in C#. But I am not a Java expert - maybe missing something here.

  • @julianjupiter5890
    @julianjupiter5890 5 місяців тому

    The rules for having multiple records in a file are the same as in the classes, interfaces, and enums. Only one of them should be public record and it should be the file name.

  • @antonmartyniuk
    @antonmartyniuk Рік тому +1

    I wonder how Nick could be so serious in the video talking about Java 😂

  • @sunilanthony17
    @sunilanthony17 Рік тому +2

    O M G,...lmao. @ 2:49 mark.

  • @panoskousidis
    @panoskousidis Рік тому

    I admire your ability to keep a straight face describing all these "features" 😂

  • @andriisnihyr6497
    @andriisnihyr6497 Рік тому

    Trollface :D :D :D Thanks, for the laugh and happy April fools day :)

  • @TheFinalParadox
    @TheFinalParadox Рік тому +1

    Seeing laid out like this really makes it feel like Java devs are beta-testers for features for C# devs.

  • @simonaspacauskas56
    @simonaspacauskas56 Рік тому

    Plot twist: Nick is a java developer really! Thanks for the content!

  • @PierreH1968
    @PierreH1968 Рік тому

    That is all confusing I'll wait April 2nd to watch it again...

  • @stevenbroshar7948
    @stevenbroshar7948 Рік тому +1

    Seems like you showed that c# implements record better.

  • @TanUv90
    @TanUv90 Рік тому

    "The third of anything is the best - Disney on preludial"

  • @drysdalechivhanga4630
    @drysdalechivhanga4630 Рік тому

    😂 the grin after FALSE on == in java

  • @benjamininkorea7016
    @benjamininkorea7016 Рік тому

    Genius! :D

  • @mikolash8246
    @mikolash8246 Рік тому +2

    He started writing the equals method with a capital letter at 2:21. It looks suspicious🤔🤔🤔

    • @corinnarust
      @corinnarust Рік тому

      pascal case is the most offensive method to use against java developers

  • @shanemoore3410
    @shanemoore3410 Рік тому

    Love this!🤣

  • @asdasddas100
    @asdasddas100 Рік тому +1

    I'm switching to Java now thank you Nick

  • @TanUv90
    @TanUv90 Рік тому

    no shade was left undrown

  • @denniswhite6779
    @denniswhite6779 Рік тому

    maybe you can also investigate and report on the superiority of GW-BASIC??

  • @cdarrigo
    @cdarrigo Рік тому

    Do a video on configureAwait

  • @Krimog
    @Krimog Рік тому +1

    The fact that you can escape characters in Java text blocks makes it pretty useless.

  • @frossen123
    @frossen123 Рік тому

    I'd love you to make a video about the impact this video if any analytics is available, people are often religious about programming langauges.

  • @brianm1864
    @brianm1864 Рік тому +9

    I'm sold!! Half of the engineers where I work use Java or Kotlin. I've always been a C# developer, but you've convinced me to switch. I'm so embarrassed that I was pushing such a slow, backwards language for so many years. Thank you for opening my eyes Nick!!

  • @x0rld159
    @x0rld159 Рік тому

    for me the fact that switch expression must return something is normal in c#, because an expression return something

  • @christianschulz4475
    @christianschulz4475 Рік тому +1

    We need more coffee content

  • @sebastiangudino9377
    @sebastiangudino9377 Рік тому +1

    Not a single person in the entire planet would be trying to write """ into a java block string and say "Huh, i guess if i add a fourth quote i will all magically work" lol. Like, i do think it is a kinda clever solution from C#. But it is definitely not the "Logical intuitive thing" someone would try in that situation

  • @o5_25kuhen4ik
    @o5_25kuhen4ik Рік тому

    🤣 That was hilarious, I loved that sarcasm

  • @mkwpaul
    @mkwpaul Рік тому +4

    Dangerous content, but I enjoyed it

  • @bluesillybeard
    @bluesillybeard Рік тому +2

    I really like Java's inline documentation system, they even made an entire tool to create a documentation website based on the code. C#'s inline docs are good as well, but they don't feel as refined and clean to me.
    Other than that, I can't think of a reason to choose it over C# other than for legacy applications

  • @keletsoa.botsalano4531
    @keletsoa.botsalano4531 Рік тому +1

    Wait what? Oh it’s April 1st 😁