Join The No-Test-Writing Movement 🤯

  Рет қаралды 39,686

Amigoscode

Amigoscode

Күн бұрын

Пікірлер: 105
@tubingforever
@tubingforever Жыл бұрын
LOL I use GPT all the time and I had never even thought of GPT being able to write my tests. Dude, this is too good to be true!
@henimbola
@henimbola Жыл бұрын
Just write good and testable code. That's also something to consider when trying to do that.
@tarikmujcic2966
@tarikmujcic2966 Жыл бұрын
You do really amazing job. Following you for couple of years now and you've really helped me with my career. It would be a great thing if you'd create some tutorial for Integration testing in Spring. I think a lot of people don't understand it and it would be great if you would explain it. Keep up the good work :D
@wawbagel
@wawbagel Жыл бұрын
Just don’t follow that particular advice he gave in this video:)
@wellnesspathforme6236
@wellnesspathforme6236 Жыл бұрын
Do know that once you send your code to ChatGPT, *someone* has access to it, so you have effectively handed your code over to The Borg. So make sure that you are OK with that.
@JorgetePanete
@JorgetePanete Жыл бұрын
Be careful, remember that ChatGPT doesn't check if outputs are correct
@Luukkaaasss
@Luukkaaasss Жыл бұрын
Also, there might be some corner cases that chat gpt doesn't know about.
@dhananjay.8
@dhananjay.8 Жыл бұрын
ChatGPT itself mentioning that output may vary as I don't have access blah blah blah... Imagine if it gets access 💀
@chriskeo392
@chriskeo392 Жыл бұрын
For now
@electronlabs2802
@electronlabs2802 Жыл бұрын
Chatgpt write a test that tests the test that tests your output
@DeGoya
@DeGoya Жыл бұрын
I'm learning Terraform at the moment and GPT gave me so many wrong answers, unfortunately. I hope it'll get better though. I think if you already have some knowledge, you can ask better and more specific questions, as well as check all its answer for correctness.
@ariuszynski
@ariuszynski Жыл бұрын
Don't outsource your knowledge and your natural AI. :)
@abu-dukhan
@abu-dukhan Жыл бұрын
Maasha Allah, that's so so superb. Nelson, you really are a genius because this idea didn't even cross my mind Wollah, I don't even know what to say actually, may Allah increase you in knowledge and wisdom. Ameen Ya Rabb
@omnipoten8
@omnipoten8 Жыл бұрын
What about TDD approach? Doesn't this defeat the whole purpose of writing test cases if Test is written after the class to be tested is created?
@malteplath
@malteplath Жыл бұрын
Same concern here. I think you argue that this is a good way to get tests and test coverage for existing (legacy) code, which facilitates refactoring. But otherwise it is what junior devs would do: test the implementation.
@RajinderYadav
@RajinderYadav Жыл бұрын
No one does TDD, who you kidding?
@NathanHedglin
@NathanHedglin Жыл бұрын
​@@malteplath No, the goal is to have tests to verify nothing breaks when you change code in the future; executable comments! TDD doesn't always work in practice. I don't always know how I'm going to architect some code before I write it. I may need to experiment a bit. Writing tests first can be cumbersome.
@malteplath
@malteplath Жыл бұрын
@@NathanHedglin Good to see that you agree with me on the usefulness of tests for refactoring. As for your comment about TDD, I am not sure about the extent of your statement. There's nothing wrong with experimenting, prototyping. The advantage I see in TDD is that it forces you to think about the interfaces, about how you want the rest of the world (also other parts of your system) to interact with what you are architecting. It does not prevent you from coding (or configuring) some infrastructure that you need before you can write meaningful tests. (After all, the tests will show if that infrastructure is up to the task. - To some degree, at least.)
@wawbagel
@wawbagel Жыл бұрын
@@NathanHedglinwhaaaaat? Is that really the goal for having test? I just hope you’re not working on anything critical 😂😂
@BnBWatcher
@BnBWatcher Жыл бұрын
Test cases should always be written around the expected behavior of the requirement (including edge cases); instead of looking at the code first, and then writing asserts which would then, obviously, pass. Using ChatGPT to help with writing test cases is like someone asking "Honey, do I look fat?" which will obviously result in an answer: "You look as thin as paper, my love!" - and this is exactly what ChatGPT will cheat us with, by using its own AI generated asserts which will pass and make everyone happy with good code coverage, but will, in fact be pointless, since it will not be able to detect any misses in the actual expectations of the business requirements. TL;DR: Super interesting video. But, right now, do not trust an AI writing your test cases. The AI will fail you; and yes, you'll still have your job if you do write the test cases by yourself! 🙂
@ThiagoRafaelFerreira
@ThiagoRafaelFerreira Жыл бұрын
Chat GPT is amazing tool, I used to create some scripts, when Im not in the mood, or create some code, some code I used sometimes but I dont memorized all parameters, but when I saw I know what todo, he simplify this, is good base of infomartion to check some code.
@jhonmasco1366
@jhonmasco1366 Жыл бұрын
There are plugins for that also. Diffblue and machinet for example. Of course you must pay something after a free period
@alexauto4578
@alexauto4578 Жыл бұрын
It looks like future have came. And you was right in one of you video - we all should understand the subject - java, or other programming language. As a tool this is awesome, as a AI developer - not.
@irshadmuhammed7740
@irshadmuhammed7740 Жыл бұрын
You are doing a great job. It is really helpful for beginners like me. Greetings from India ❤
@born2love6
@born2love6 Жыл бұрын
What do you think about the privacy aspect of sharing source code with chat gpt? I’m personally concerned about IP being leaked/stolen
@nagendradevara1
@nagendradevara1 Жыл бұрын
Even ChatGPT itself warns against copy pasting the Company code.
@viveknaskar
@viveknaskar Жыл бұрын
Yep, exactly.
@caffeinejavacode1475
@caffeinejavacode1475 Жыл бұрын
anyway for learning it's awesome
@wawbagel
@wawbagel Жыл бұрын
@@caffeinejavacode1475not really
@glaze4629
@glaze4629 Жыл бұрын
Your fullstack course looks pretty neat, but at the cost of twice the minimun wage where i live it is pretty expensive, not your fault I live in the thrid world tho, keep the good content
@phatanibrahim746
@phatanibrahim746 Жыл бұрын
Which software you use for java compiler
@umaribrahim33
@umaribrahim33 Жыл бұрын
This will be anti pattern for TDD as one has to implement the logic before generating Tests wit ChatGPT
@wawbagel
@wawbagel Жыл бұрын
TDD is like a cult. Few follow it since it’s not really practical. But it doesn’t change the fact that generating your tests like that is one of the dumbest things one can do.
@guigolum
@guigolum Жыл бұрын
To anyone who does that : please stop. Tests are supposed to test if the result matches the design, not if the result matches the code. Which it obviously does.
@Jumataev
@Jumataev Жыл бұрын
Will be great to see how to add and test payment feature in spring boot project
@aliakseydruzik7433
@aliakseydruzik7433 Жыл бұрын
Thanks for the video! Is it really Intelliji or it's Visual-studio-code as code-redactor?
@buddynole
@buddynole Жыл бұрын
Wow! Game changer.
@myworldletsplay
@myworldletsplay Жыл бұрын
wow thats wild ! nice tip
@avasiloaieflorin2344
@avasiloaieflorin2344 Жыл бұрын
What intelij theme are you using in this video? @Amigoscode
@inertia_dagger
@inertia_dagger Жыл бұрын
it's a default one
@Bloodylight03
@Bloodylight03 Жыл бұрын
I think Amigoscode noticed that too many people do not write test so he made this video lol
@znacly1184
@znacly1184 Жыл бұрын
I love your channel and this video. While I like this direction, playing with ChatGPT the past few months, I tend to like the other direction better as I find ChatGPT to tend to be more accurate => write tests and ask ChatGPT to write code that passes these tests. Still not 100 (needs review), but it has become my preference.
@wawbagel
@wawbagel Жыл бұрын
That is so dumb, omg 🤯 There’s going to be such a mess in codebases across the globe to clean in a few years, lovely
@narovorn
@narovorn Жыл бұрын
Thank you for sharing
@georgepro8481
@georgepro8481 Жыл бұрын
What can be happened in a case of missing some tetsts? Who will be fined or fired? :)
@aRahmanyildiz
@aRahmanyildiz Жыл бұрын
The first think I thought after I used chatGPT, when will IntelliJ integrate this 😅
Жыл бұрын
About ChatGPT writing the tests for the code: I disagree entirely with this approach of not writing tests. Instead, I prefer to elaborate on them and ask ChatGPT to write the solution. This is even more directed to "elaborating the question (or the prompt, as you wish)".
@birqan
@birqan Жыл бұрын
thx a lot ✌
@omongecalvince4701
@omongecalvince4701 Жыл бұрын
Hello Nelson. Which theme is this
@mryarix
@mryarix Жыл бұрын
Enable the new UI Press Ctrl+Alt+S to open the IDE settings and select Appearance and Behaviour | New UI. Select the Enable new UI checkbox and apply the changes. Restart the IDE.
@mryarix
@mryarix Жыл бұрын
+ Nyan Progress Bar plugin
@RajkumarAdhikari
@RajkumarAdhikari Жыл бұрын
what about micronaut
@gabrieldragone
@gabrieldragone Жыл бұрын
Nice video!
@Kaox
@Kaox Жыл бұрын
ChatGPT is heaven
@javadeveloper9442
@javadeveloper9442 Жыл бұрын
I don't like to use gpt, I prefer to write code my own.
@davidfernandotorres3484
@davidfernandotorres3484 Жыл бұрын
Awesome!
@exsesx
@exsesx Жыл бұрын
Tabnine has implemented writing tests, and they’ve been bragging about it for some time
@shaikhmudassir6874
@shaikhmudassir6874 Жыл бұрын
Assalamu Alaikum, Brother. Please make some vlogs. They are truly inspirational.
@FuNIpoxi
@FuNIpoxi Жыл бұрын
This is the worst piece of advice ever. ChatGPT does not learn from what you give it, and does not "think". It is a natural language AI, it analyses what words and sentence is more likely to come next given a massive load of pre-existing data. It is never going to be able to analyse your code the way a programmer think and write code that actually result from a true comprehension of what it does. And it is never going to execute the tests it provides to check their validity, but will always produce them as if they were pure truth. Saying that it can write the test for you is just opening the door to massive mistakes when actual programmers will begin to stop checking that every line produced by this AI is actually correct... As a professional that is trusted by a large community of people, this is totally irresponsible and dangerous to give this example as if it was actually a good practice.
@meilyn22
@meilyn22 Жыл бұрын
GPT writes my code and tests lol.
@billlee8670
@billlee8670 Жыл бұрын
Wish there is a Chat GPT plugin integrated in the IDE.
@xraick
@xraick Жыл бұрын
There is! For Visual Studio Code
@yl6608
@yl6608 Жыл бұрын
gpt is a game changer
@arbajshaikh
@arbajshaikh Жыл бұрын
Theme name ?
@mryarix
@mryarix Жыл бұрын
Enable the new UI Press Ctrl+Alt+S to open the IDE settings and select Appearance and Behaviour | New UI. Select the Enable new UI checkbox and apply the changes. Restart the IDE.
@mryarix
@mryarix Жыл бұрын
+ Nyan Progress Bar plugin
@caffeinejavacode1475
@caffeinejavacode1475 Жыл бұрын
I liitle bit scare that I won't find a job because of GPT rival
@NathanHedglin
@NathanHedglin Жыл бұрын
😂 You're fine. Clients cannot clearly define what they want to make ChatGPT to work
@neoplumes
@neoplumes Жыл бұрын
This is so much more scary than having chatgpt write code 😆
@daeskk
@daeskk Жыл бұрын
could you teach clean architecture using java?
@korponaiz
@korponaiz Жыл бұрын
I think it's very nice job from the ChatGPT, but it wrote a test about your code. If your code is wrong, the test will still good, because ChatGPT adapts the test to your code. I think the good way to write test with Chatgpt, only input parameters and logical conditions should be given to it. But you must not give him the program code.
@minor12828
@minor12828 Жыл бұрын
Good work 🫡
@rafalkopacewicz9772
@rafalkopacewicz9772 Жыл бұрын
I wonder when I`ll hear that there is no place for java developers on the market?
@Jumataev
@Jumataev Жыл бұрын
Hello @Amigoscode. I have the idea how to get more smash buttons. On the 3rd minute of video clip when you said about likes I made it by using shortcut 'F' to minimize screen and press ''like' then again press 'F' to full screen. It tooks less steps rather than moving a finger on the touchpad or a mouse. I just want to help this amazing channel for other programmers. Just try to say it in next videos and let's see what will be next.
@Jumataev
@Jumataev Жыл бұрын
🤝
@wawbagel
@wawbagel Жыл бұрын
To be honest, it’s such a misleading and harmful content…. Especially taking into consideration who’s your main audience - juniors or students. You just showed them how to generate poor quality code that shines green when ran against their junior/student quality code with bugs and logical mistakes. So many times you can find your own business/technical mistakes when writing test code - that’s gone with your approach. There’ll be so much more poor quality code in codebases across the industry in a few years… There’s already a regression when it comes to efficiency and hardware utilization due to picking “easy” prototyping tech stacks. With that approach it will be even worse.
@mamadoubarry3400
@mamadoubarry3400 Жыл бұрын
Nice
@AliAhmed-yl3qn
@AliAhmed-yl3qn Жыл бұрын
please make real time spring boot api
@michelchaghoury9629
@michelchaghoury9629 Жыл бұрын
can you please in the future make c++ tutorials from beginners to advanced please?
@streetfashiontv9149
@streetfashiontv9149 Жыл бұрын
He is mainly a Java developer
@mauiuwelcome6847
@mauiuwelcome6847 Жыл бұрын
I'm just shocked.😨
@abdullahsahin6901
@abdullahsahin6901 Жыл бұрын
Aleyküm selam:)
@wawbagel
@wawbagel Жыл бұрын
And btw amigoscode what’s most disappointing is that you simply do not understand how it works. It doesn’t learn form your code in a way you’re presenting it to your audience. It is super misleading. Terrible advices in that video.
@closetothee3785
@closetothee3785 Жыл бұрын
Interesting. It seems a good idea to let ChatGPT write the unit test crap.
@wawbagel
@wawbagel Жыл бұрын
It seems that you’re mediocre engineer if you’re not seeing what’s wrong with that approach.
@closetothee3785
@closetothee3785 Жыл бұрын
@@wawbagel come on dude. unit test is simply crap so what's wrong letting ChatGPT do that. Ideally unit test should cover every possible scenario and thus eliminate bugs. But in real world most unit test code only uses one or two sets of data and passing the test only means the code passes the most basic check. Most bugs are found in integration testing.
@wawbagel
@wawbagel Жыл бұрын
@@closetothee3785 in real world you’re a terrible engineer, if at all. No wonder why most code bases are such a sewage
@closetothee3785
@closetothee3785 Жыл бұрын
@@wawbagel Well it's ok if saying those words makes you happy 😄
@wawbagel
@wawbagel Жыл бұрын
@@closetothee3785 listen, if you cannot see what’s wrong with you approach, then what are we talking about? You’re writing pointless and crappy code and then calling it reality. I mean, come on… There’s plenty mediocre devs with similar thinking so you can kinda feel ok. As long as you want to be mediocre ofc
@ngetichishmael
@ngetichishmael Жыл бұрын
assertEquals("Amigoscode","crème de la crème");
the right way to organise your code
17:33
Amigoscode
Рет қаралды 204 М.
Learn SOLID Principles with CLEAN CODE Examples
28:35
Amigoscode
Рет қаралды 283 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
"The Clean Code Talks  -- Unit Testing"
32:08
Google TechTalks
Рет қаралды 287 М.
New AI chatbot 'ChatGPT' interviewed on TV
13:17
Channel 4 News
Рет қаралды 879 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 1 МЛН
10 Spring and Spring Boot Common Mistakes You Need To STOP
15:49
Amigoscode
Рет қаралды 162 М.
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
Learn Dependency Injection and Write Better Code
21:52
Amigoscode
Рет қаралды 178 М.
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 90 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,3 МЛН
10 Most Common Java Developer Mistakes
16:13
Amigoscode
Рет қаралды 113 М.