Prolog Tutorial

  Рет қаралды 910,666

Derek Banas

Derek Banas

Күн бұрын

I wrote a Techno-Thriller called Whispers if you're interested: amzn.to/4cfdtNW
I'd greatly appreciate a review for it if you have time.
Get the Cheat Sheet Here : goo.gl/rgEPPX
Subscribe to Me: bit.ly/2FWQZTx
❇️ LIVESTREAMS : / derekbanas
❇️ DISCORD : / discord ( Contact Me Anytime )
MY UDEMY COURSES ARE 87.5% OFF TIL December 19th ($9.99) ONE IS FREE
➡️ Python Data Science Series for $9.99 : Highest Rated & Largest Python Udemy Course + 56 Hrs + 200 Videos + Data Science bit.ly/Master_Python_41
➡️ C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month bit.ly/C_Course_41
➡️ FREE 15 hour Golang Course!!! : bit.ly/go-tutorial3
Installation 01:08
Introduction 05:40
Facts 09:55
Rules 12:00
Variables 15:30
If Statement 23:54
Complex Terms / Structures 25:56
Format 28:38
Comparison 31:13
Trace 33:36
Recursion 36:16
Math 39:10
Reading / Writing Console 44:08
File I/O 46:10
Looping 49:29
Changing the Database 53:31
Lists 56:51
Strings 1:00:47
Like the channel? Consider becoming a Patreon! Check it out here:
►► / derekbanas
Watch More Learn in One Videos
►► Java - • Java Tutorial
►► C++ - • C++ Programming
►► Python - • Python Programming
►► MySQL - • MySQL Tutorial
►► PHP - • PHP Programming
►► Kotlin - • Kotlin Tutorial
►► C# - • C# Tutorial
►► JavaScript - • JavaScript Tutorial

Пікірлер: 1 200
@derekbanas
@derekbanas 5 жыл бұрын
Learn in One Videos for Every Programming Language Subscribe to Bookmark them: bit.ly/2FWQZTx C++ : kzbin.info/www/bejne/iKbFXn2pn7Kbjbs Python : kzbin.info/www/bejne/hGXQdq18ec-kqqM Java : kzbin.info/www/bejne/pF7bcqSZd6iqqZY PHP : kzbin.info/www/bejne/bYWpYWOef65qbrs MySQL : kzbin.info/www/bejne/r4HYZ6SMasesq5Y JavaScript : kzbin.info/www/bejne/nJvYapyfbb6mfdU C# : kzbin.info/www/bejne/oprWmqqLj6-Lp7M HTML5 : kzbin.info/www/bejne/oXXce4FtprZ4iqM CSS3 : kzbin.info/www/bejne/eYbbeZKojLh8Z80 JQuery : kzbin.info/www/bejne/eIi7mJp4YrlkoLM TypeScript : kzbin.info/www/bejne/Y4G1kIunjJ59gLc ECMAScript : kzbin.info/www/bejne/gJLOoJxmfJ2feMk Swift : kzbin.info/www/bejne/mnzEoJ2Fj5KUsJo R : kzbin.info/www/bejne/qWSpoK2Mm8lqp5Y Haskell : kzbin.info/www/bejne/ZmPCeWaCn9aAqJo Handlebars : kzbin.info/www/bejne/annYcqGDa8dlmpo Bootstrap : kzbin.info/www/bejne/naKydqKLh5qFfsk Rust : kzbin.info/www/bejne/i2Kod5p5g7F3eJo Matlab : kzbin.info/www/bejne/hIS2hZ6hgLeUmKs Arduino : kzbin.info/www/bejne/h4DCe5-wZtajetk Crystal : kzbin.info/www/bejne/eqmpgWCNn9anqcU Emacs : kzbin.info/www/bejne/f5LKk6lvbJl6orM Clojure : kzbin.info/www/bejne/mZqqqnuhedqDd6c Shell : kzbin.info/www/bejne/nqjVn6CHqtKnhtk Perl : kzbin.info/www/bejne/jXbKmXyOqJ15bMU Perl6 : kzbin.info/www/bejne/omHdgaqenLyHna8 Elixir : kzbin.info/www/bejne/pnOxgJSsh9SBgpI D : kzbin.info/www/bejne/qKi9d4ekm56Verc Fortran : kzbin.info/www/bejne/lZCVhpp8g76anJo LaTeX : kzbin.info/www/bejne/jJnQnH-ohM9_qdk F# : kzbin.info/www/bejne/mWjIf3eAg5xobrc Kotlin : kzbin.info/www/bejne/fpDSeJxuqtp3pqM Erlang : kzbin.info/www/bejne/f3bLqJZoppatfZY Groovy : kzbin.info/www/bejne/eGqbm5Zuncmob8k Scala : kzbin.info/www/bejne/equppWOPoL-ibq8 Lua : kzbin.info/www/bejne/n37ElKuQhrKDjtU Ruby : kzbin.info/www/bejne/epvManSCeMyZpq8 Go : kzbin.info/www/bejne/eXechGeHj9qJaZI Objective C : kzbin.info/www/bejne/a5bWgqSQfq9rack Prolog : kzbin.info/www/bejne/iarOqYqme9yAfdU LISP : kzbin.info/www/bejne/r562ometfdekr7c Express : kzbin.info/www/bejne/rnWmfJaEd6umq6s Jade : kzbin.info/www/bejne/omakiZaOdrVnqJo Sass : kzbin.info/www/bejne/rauWnHiigcd4fqc
@hypothetic3945
@hypothetic3945 3 жыл бұрын
Hi. in 53:17, the answer was supposed to be just 'you guessed it'. You explained the solution as "I should've put 'this is not the number' up here at the top." So, I tried to put that specific code both before and after the X equation and this didn't seem to fix my problem. I'd love to receive a little bit of your help. I'm writing a thesis and using this program.
@reasonerenlightened2456
@reasonerenlightened2456 3 жыл бұрын
​ The problem of Prolog is that the meaning is assigned by the human . loves (stacy, chad). for Prolog is different than l ( s, c). Basically, the meaning remains in the head of the human and Prolog is completely void of capturing the meaning of 'Stacy loves Chad'. The same applies to any other programming language I am aware of. THEY ALL FAIL TO CAPTURE MEANING, AWARENESS, CONTEXT, etc. ! Why the programming languages are still not self-aware in the 21-st century????!!!!??? Somebody Explain. (is it because the captains of the software industries are afraid for their empires?) It is outrageous that nobody is doing something about it (i.e. as a far as I am aware) !!!!
@user-cf8wl9hk2q
@user-cf8wl9hk2q 2 жыл бұрын
Could you add 00:00 mark in description. That way we can see the sections in the progress bar
@JuubiDimension
@JuubiDimension 2 жыл бұрын
how do we get the terminal on windows
@eonstar
@eonstar 2 жыл бұрын
​@@hypothetic3945 Your thesis is probably long finished, but to help out those who are looking for answers. This is how I rewrote the number guessing game: %rewritting guess number thing guess_num:-loop(start). loop(start):- write('Guess Number '), read(Guess), loop(Guess). loop(15):-write('You guessed it'). loop(X):- X\=15, write(X), write(' is not the number '), loop(start).
@h3w45
@h3w45 3 жыл бұрын
can't believe my college is making me learn this instead of python in 2020.
@derekbanas
@derekbanas 3 жыл бұрын
I agree
@itskathan7940
@itskathan7940 3 жыл бұрын
Same Bro :/
@JITCompilation
@JITCompilation 3 жыл бұрын
SAME
@ManojKumar-qg9bw
@ManojKumar-qg9bw 3 жыл бұрын
IKR!!!
@jardondiego
@jardondiego 3 жыл бұрын
If all you want to do with your CS major is building Wordpress websites then it's understandable why you don't understand why would you want to learn Prolog.
@creeperraper1337
@creeperraper1337 7 жыл бұрын
that video was worth it. learned more in the first 10 min then what i did in my college course after a half of a semester. thank you very much :D
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm very happy that it helped
@vasteritzasrb2198
@vasteritzasrb2198 7 жыл бұрын
hey man , is this working on windows or only for mac ?
@mucgake8763
@mucgake8763 7 жыл бұрын
works for both windows and mac.
@thallan
@thallan 7 жыл бұрын
why did the c++ tut take me here? I am terribly sorry
@Toopa88
@Toopa88 6 жыл бұрын
Seriously? If that's the case either your teacher sucks or you never did anything for the course...
@cheatcode9296
@cheatcode9296 4 жыл бұрын
5:30 Tutorial starts (To skip installation process)
@PurpleMomgoose
@PurpleMomgoose 4 жыл бұрын
He has that (and lots of other timestamps) in the video description.
@arran3451
@arran3451 Жыл бұрын
Genuinely would've failed my course if it wasn't for this video. Seems to be so little information about prolog online, and my lecturer was no use at teaching it either. Thanks a lot for making this.
@martinoplaya7805
@martinoplaya7805 7 жыл бұрын
Its so great that you use sound engeneering for your mic and cut the moments when you write code. so the presentation is compact and dense with information that is easy to watch. I really appreciate this quality in your videos (Ive seen few already, like HASKELL) :]
@carlrossi
@carlrossi 5 жыл бұрын
None of the editors allow a .pl file to be created that are on my OSX. Looking for the editor this author used.
@alice_in_wonderland42
@alice_in_wonderland42 5 жыл бұрын
@@carlrossi it is sublime text, but you can use vs-code
@ZenoDovahkiin
@ZenoDovahkiin 5 жыл бұрын
@@carlrossi Lirterally any editor that isn't comlete garbage should be able to edit text files, regardless of suffix.
@integralyogin
@integralyogin 5 жыл бұрын
you seriously go above and beyond with these. So high quality in so many ways. The time stamps and cheat sheet I am especially grateful for. Thank you.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@aryankashyap7
@aryankashyap7 3 жыл бұрын
Thanks for making this video, the first 45 mins for enough to cover all the topics that we covered in one semester
@abdulelahaljeffery6234
@abdulelahaljeffery6234 7 жыл бұрын
Note: to print out text, you can use writef() instead of format() and % instead of ~ [ just because writef() is close to printf() from C which many would be more familiar with ].
@Shiroach
@Shiroach 6 жыл бұрын
Derek Banas, I tried slogging through the "Art of Prolog" but was recommended your video by a friend of mine. You not only effectively concatenated a detailed reading of the first few chapters, but improved upon their clarity. I feel like I can return to the later chapters of the book now with an improved understanding. Thanks again.
@derekbanas
@derekbanas 6 жыл бұрын
I'm happy I was able to make Prolog easier to understand. Yes that book is very complex I agree
@FracsoMehdi
@FracsoMehdi 5 жыл бұрын
For all you guys asking about the source of the db.pl file, you'll have to create manually, follow these steps: 1- Go to gnu prolog menu and click on file then change directory 2- Use a current directory or just create a new folder that will only be used for prolog projects 3- Create your db.pl file using any text editor on your OS (leave the file empty)
@derekbanas
@derekbanas 5 жыл бұрын
Thank you for sharing :)
@FracsoMehdi
@FracsoMehdi 5 жыл бұрын
no problem
@charbelalam2648
@charbelalam2648 2 жыл бұрын
Also make sure it's db.pl, and not db.pl.txt I made that mistake.
@ayoobalkindy2390
@ayoobalkindy2390 Жыл бұрын
Thank you so much, on the course of 8 weeks of studying prolog, I barely knew how to write a prolog program, but thanks to your video, I can easily do it now!!!
@puremarbib
@puremarbib 8 жыл бұрын
Amazing video, sums up a quarter of my semester in an hour! Why don't we have more teachers like you in university! :)
@derekbanas
@derekbanas 8 жыл бұрын
+Marb Thank you :) I'm here for free when ever you need me.
@khaiyuw
@khaiyuw 2 жыл бұрын
It's already 2021 and this video saved me! Thank you. As we're taking remote classes, my teachers didn't have enough time to teach it
@derekbanas
@derekbanas 2 жыл бұрын
I'm very happy that I could help :)
@khaiyuw
@khaiyuw 2 жыл бұрын
@@derekbanas Please make an Oz tutorial haha We really need it. Our teacher decided to teach us that language and there aren't many sources online about it :,)
@Josh-vc6zl
@Josh-vc6zl 7 жыл бұрын
Wow, thanks a lot! I went from not even knowing where to start with this language because articles I found were very confusing even though I am an experienced programmer. Even though you did not cover installation on Linux I was able to gather enough information as to what I needed and that was enough to get me started. Excellent tutorial as always.
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm happy I could clear up a very useful language
@oddyseus95
@oddyseus95 6 жыл бұрын
Derek, you are an amazing man! I've just founded your channel, and now there are tons of videos to watch for me and learn them all. Apprecieta that man!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :) I hope you enjoy them
@farmerfootball27
@farmerfootball27 8 жыл бұрын
hey dude. this is awesome. i'm not going to say "subbed" or anything, rather i'm going to watch every single video you got. one thing you forgot was the environment variables. i already know how to do it, so i was lucky, but i remember a time when i didn't and it took forever and lots of frustration to figure it out. thank you so much for the video! you do really well
@TS-cg8nt
@TS-cg8nt 5 жыл бұрын
Great lecture. Wish there was more on lists as it relates to recursion.
@Maxens8888
@Maxens8888 7 жыл бұрын
If anyone struggles at 5:00 just save the text file as .h and then save a copy as .cpp :)
@thallan
@thallan 7 жыл бұрын
but how does it become an application?
@andrewkovachik2062
@andrewkovachik2062 7 жыл бұрын
By using the terminal he creates. g++ helloworld.cpp -o helloworld
@oskarjankowski5709
@oskarjankowski5709 6 жыл бұрын
thanks
@Dakun
@Dakun 3 жыл бұрын
You taught this so well and concisely. thank you very much, helped me out a lot
@bitmp
@bitmp 7 жыл бұрын
Just the right amount of detail and explanation for someone who is familiar with imperative languages. I definitely prefer watching this tutorial than reading through 80 different sources for documentation on prolog, thanks for the video Derek.
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm happy it helped
@weewoowarrior7023
@weewoowarrior7023 7 жыл бұрын
Reminder: 2:27 - On this page, Derek already had the packages selected...if this is your first time installing, then these packages would have n/a beside it. In order to get those two boxes with the x in the first one, press 'Skip'...yes, it toggles. Check off all the corresponding packages mentioned in this tutorial. 5:00 - Notice there are two files, helloworld.cpp and helloworld.h, in the directory. How did helloworld.cpp get there? I could be wrong, but maybe he saved the file as another file with .cpp as the extension. That's what I did and it worked for me when I ran the helloworld.cpp file.
@weewoowarrior7023
@weewoowarrior7023 7 жыл бұрын
+GettnSehway 1. Make sure your file has the .cpp extension 2. Make sure that file is located in the folder with your name in the home directory for cygwin (ie: cygwin64 --> home --> (your name). If that doesn't work, then sorry I'm not too sure what to do.
@Walsh2571
@Walsh2571 7 жыл бұрын
if the compiler doesn't like the line "#include " does that mean the installation hasn't worked?
@JR-mk6ow
@JR-mk6ow 3 жыл бұрын
Just that example at 12:53 between if and the prolog syntax makes everything much more clear. Why did my prof had to make it look so complicated... Love you Derek
@derekbanas
@derekbanas 3 жыл бұрын
Love you too :)
@MANULINHOS
@MANULINHOS 7 жыл бұрын
Derek, Oh man... always there when I need a good old tutorial. Kudos for you!
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm happy I can help
@HenriqueJGBelo
@HenriqueJGBelo 6 жыл бұрын
Exactly what I was searching for: clear and brief intro to understand Prolog throught examples. Thanks.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'm glad it helped
@guteksan
@guteksan 3 жыл бұрын
51:35 - there is an error in your count_up implementation, check with value of Low other than 0. You should skip 'Z is ...' statement and go directly for write(Y). With our implementation, Y already starts from the Low, so there is no need to add it.
@amarshpedapati
@amarshpedapati 4 ай бұрын
@@May-zs7rf Sorry if i'm late by 2 years, count_down(Low, High):- between(Low, High, Y), Z is Low+High-Y, write(Z), nl.
@parasdsingh
@parasdsingh 8 жыл бұрын
Thanks a lot for the awesome tutorial Derek. Resolved a lot of my confusions! Can you do a video on Assembly please :)
@derekbanas
@derekbanas 8 жыл бұрын
Paras D You're very welcome :) Yes I'm moving towards assembly. I'm going to start making a few electronics tutorials as well soon.
@emmadabdelkrim3073
@emmadabdelkrim3073 8 жыл бұрын
Derek Banas I am Looking Forward To it Thank You Mr.Derek
@marciliodacolneto4290
@marciliodacolneto4290 5 жыл бұрын
Excellent Tutorial, thanks Derek! I had Prolog during College for 6 months and learn nothing at all, now I am trying to keep up to speed with AI and your tutorial was very complete and understandable.
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :) I'm very happy it helped
@rjbray01
@rjbray01 2 жыл бұрын
Wow that is honestly fantastic. I have looked at tons of tutorials and not one of them actually showed me how to write my first one-line program. Thank you so much - gottit !
@derekbanas
@derekbanas 2 жыл бұрын
Thank you very much Happy I could help :)
@Mrmegaminergames
@Mrmegaminergames 7 жыл бұрын
20:45 wrong bob is the parent, this code works shows the actual grandparents get_grandparent :- parent(X, carl), parent(X, charlie), parent(Y, X), format('~w ~s grandparent ~n',[Y, "is the"]).
@sergevanhaag6811
@sergevanhaag6811 6 жыл бұрын
lmao. i was confused scrolling through the comments trying to find proof for this flaw.
@ujjwalthakur96
@ujjwalthakur96 6 жыл бұрын
I also got confused at this.
@erayk96
@erayk96 6 жыл бұрын
Actually this code is enough as you don't need two children to get the grandparents: get_grandparent :- parent(X, carl), parent(Y, X), format('~w ~s grandparent ~n',[Y, "is the"]).
@PaulGraphov
@PaulGraphov 7 жыл бұрын
Good intro. p.s. count_up and count_down seem wrong, only work well if Low is 0.
@deusexvelo
@deusexvelo 2 ай бұрын
Simply the best Prolog tutorial. This is much much better than my intro Prolog university subject!
@henokberhe6944
@henokberhe6944 5 жыл бұрын
Many Thanks! I really enjoyed watching this valuable video. I can't stress enough how it changed my attitude towards the language.
@donguth
@donguth 7 жыл бұрын
I think the name and the sentece are deceptive : get_grandparent :- parent(X, carl), parent(X, charlie), format('~w ~s grandparent ~n', [X, "is the"]). This is better : get_parent :- parent(X, carl), parent(X, charlie), format('~w ~s ~n', [X, "is parent's carl and charlie "]). (sorry about my english mistakes, my english isn't perfect)
@symelex1965
@symelex1965 6 жыл бұрын
Noticed that too and decided to check the comments. Thanks!
@Vandaliah
@Vandaliah 5 жыл бұрын
Here is how to find all who are grandparents :) get_grandparents :- parent(X, Y), parent(Y, Z), format('~w ~s ~w~n', [X, "is grandparent of", Z]).
@mariuspetrescu6126
@mariuspetrescu6126 6 жыл бұрын
Great tut but I think that at 9:30 the question you're typing is "who romeo loves" instead of "who loves romeo". But, you know, with love beeing mutual in this case, unlike in the real life :), the answer is the same for both questions.
@GIDEONCHAWINGA
@GIDEONCHAWINGA 25 күн бұрын
Love your work sir , you make it so easy to understand
@aybo836
@aybo836 6 жыл бұрын
Dude this is what we call teaching skills! A perfect tutorial! Thanks a lot!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you very much :)
@alexandremarques8735
@alexandremarques8735 8 жыл бұрын
Great tutorial!! And I didn't know that penguins produce milk! :-O Thank you Derek
@derekbanas
@derekbanas 8 жыл бұрын
+Alexandre Marques Thank you :) They produce milk in a weird way. I love slipping in strange topics like that. It is called crop milk. Crop milk bears little resemblance to mammalian milk, the former being a semi-solid substance somewhat like pale yellow cottage cheese. I'm strange by the way :)
@chendavid9582
@chendavid9582 8 жыл бұрын
The best tutorial I've ever seen. I'm a learn-by-example guy so your 1 hour video helped more than 5 hours of lectures my professor gave with vague explanations and theories.
@derekbanas
@derekbanas 8 жыл бұрын
+Chen David Thank you for the nice compliment :) I'm happy that it helped.
@lyndaa7937
@lyndaa7937 7 жыл бұрын
Thank you so much for this tutorial. I was having trouble with my homework and this helped clear up concepts for me.
@derekbanas
@derekbanas 7 жыл бұрын
I'm very happy it helped :)
@MrMyyBin
@MrMyyBin 8 жыл бұрын
Дякую! Срані держіспити, це лайно вчити!
@andrewverden459
@andrewverden459 3 жыл бұрын
Like якщо з 3го курсу могиляночки
@thanosage4904
@thanosage4904 7 жыл бұрын
His voice sounds so mechanical, nice tutorial as well!
@ChristosHDJ
@ChristosHDJ 8 жыл бұрын
Excellent video man! You 've summed up half a term's material in one hour. Love yah!
@derekbanas
@derekbanas 8 жыл бұрын
+Χρίστος Χατζηνικολή Thank you :) I'm happy I could help.
@sharvanshshukla1679
@sharvanshshukla1679 2 жыл бұрын
Thanks a lot man, really appreciate this tutorial, still a long way to go but a little hopeful now!
@ralphclark
@ralphclark 3 жыл бұрын
If on Windows 10, dont try to install cygwin - turn on the WSL 2 package, install a Linux distro from the windows store, then open a linux terminal and install prolog there using apt install.
@ohgrimreaper2878
@ohgrimreaper2878 7 жыл бұрын
@4:34 how do you open that folder
@JamWard
@JamWard 7 жыл бұрын
Thank you for taking your time to make this video. this was the perfect video to refresh what I had learnt a few years ago!
@derekbanas
@derekbanas 7 жыл бұрын
You're very welcome :) I'm happy it helped
@luchitox96
@luchitox96 8 жыл бұрын
Great tutorial! It was great for university, thanks and continue doing this kind of videos
@SebasCapo2013
@SebasCapo2013 8 жыл бұрын
Thank you for another video! :D I'm learning so much about different languages with them! By the way, What about Unity? :P Stay awesome, thanks! :D
@derekbanas
@derekbanas 8 жыл бұрын
SebasCapo You're very welcome :) I can't wait to start making games. I'll do it for the rest of the year after I finish the languages.
@SebasCapo2013
@SebasCapo2013 8 жыл бұрын
Derek Banas Looks cool! :D I'l be waiting for them! Keep awesome, cya!
@kimy9100
@kimy9100 7 жыл бұрын
Wow, great tutorial! Thanks!
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :)
@OktayAkgul1
@OktayAkgul1 7 жыл бұрын
One of best tutorial ever that I've watched! Thank you.
@derekbanas
@derekbanas 7 жыл бұрын
Thank you very much :)
@1257mp
@1257mp 5 жыл бұрын
All of his videos are super helpful and informative. Thank you so much for making them!
@derekbanas
@derekbanas 5 жыл бұрын
Thank you very much :)
@fredericosevergnini9348
@fredericosevergnini9348 7 жыл бұрын
Installation problem: I'm checking if cygwin was properly installed. At the terminal, when typing " g++ hellowoworld.cpp -o helloworld", I receive the message "-bash: g++: command not found". I also noticed that I only have the helloworld.h file (after creating it with notepad++). How do I get the .cpp file that? Thanks for the video!
@fredericosevergnini9348
@fredericosevergnini9348 7 жыл бұрын
also, when checking the "Devel" items to download, I couldn't find these options shown in the video. I'm not sure it it's related to the problems I'm having at the installation.
@mariav1234
@mariav1234 7 жыл бұрын
Same thing is happening for me. Did you find the solution for this?
@fredericosevergnini9348
@fredericosevergnini9348 7 жыл бұрын
So, here is what I noticed: the options inside "Devel" that are being worked with are usually minimized. Try finding them by checking the code number or names, that worked for me. But I ran into another problem after installation, so I'm learning C++ using Microsoft Visual Studio instead, and other video tutorials
@matt3609
@matt3609 3 жыл бұрын
Great series of videos! At 22:14 should I read it " X is the grandparent of Y , as long as, Z is the parent of X and Y is the parent of Z." If so should it not be named grand_child? I'm very possibly reading it wrong.. ??
@mbatu4
@mbatu4 2 жыл бұрын
Nope, you are right.
@Raphaelshreds
@Raphaelshreds 6 жыл бұрын
I would have been doomed without this very helpful video. My project was to make a program that a had bunch of facts for symptoms of diseases and we were tasked with adding symptoms to a person and running tests and getting it down to one disease or more that all have the same tests or symptoms and treatments, unfortunately he didn't go over dynamic facts or how to format of I/O. We also didn't have a book for this, greatly appreciated this video. Thank you!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'm very happy that it helped
@ChristianLCroigverg
@ChristianLCroigverg 8 жыл бұрын
Dude, amazing tuto! I love it! Thank you Derek! From an Argentinian guy! You've helped me a lot.
@derekbanas
@derekbanas 8 жыл бұрын
Thank you:) I'm very happy that it helped
@zangruver132
@zangruver132 5 жыл бұрын
I read the thumbnail as "How to prolong one video" :/
@derekbanas
@derekbanas 5 жыл бұрын
That's funny :)
@eccentricHellion
@eccentricHellion 7 жыл бұрын
Did you cover how to do what you did @ 4:43 because I don't understand completely what that is.
@oriclesqueiroz
@oriclesqueiroz 6 жыл бұрын
Perfect! You opened my mind to news ideas about prolog. Thank you so much!
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'm very happy to be of help
@aloysiusrebello6799
@aloysiusrebello6799 7 ай бұрын
Love your work dude, you are amazing. Thank you.
@jco199
@jco199 4 жыл бұрын
in 20:35 where you modified the get_grandparents function, it actually became the get_parents function. You forgot to change the string and name to match that.
@garth2356
@garth2356 Жыл бұрын
True, I was gonna comment just that.
@dragonqwan10
@dragonqwan10 7 жыл бұрын
Better than college! Thank you!
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :)
@dragonqwan10
@dragonqwan10 7 жыл бұрын
You are helping me a lot! I came back to tell you that in 4 days,with your starting tips on this video i learned much more than i did in half a semester . My skill got from 10% to 90% because i finally understood how Prolog works and i aced the exam.Now i`m working on creating a MySql database project with help from your videos later on watching your Haskell tutorial and who knows what goodies i`m going to find next! I`m reccomending you to my coleagues so they can catch up the things that college unfortunately didn`t manage to teach us ! God knows why.
@Mariana-ee8dg
@Mariana-ee8dg Жыл бұрын
Hey, Derek, thank you for this tutorial!
@johnfreen3533
@johnfreen3533 7 жыл бұрын
very helpful, i learned more in this video than the whole month of college course. Keep it up!
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm happy it helped
@travisdelly377
@travisdelly377 7 жыл бұрын
Worst language in the world. But very helpful for that one class you hate.
@derekbanas
@derekbanas 7 жыл бұрын
It is quite odd I agree
@travisdelly377
@travisdelly377 7 жыл бұрын
You seem to know it quite well though! What is the main purpose of this language? Would you be able to answer that for me? Also thanks again for the video, got me through my homework!
@abhichakladar5279
@abhichakladar5279 7 жыл бұрын
It's meant to be used for artificial intelligence to help store information and help robots make decisions. Other than AI though it's basically useless lol
@DarkF1b3r
@DarkF1b3r 7 жыл бұрын
I am trying to learn PROLOG to use on constraint logic programs (CLP) in a staff scheduling context, namely to find efficient staff schedules for 24-hour operations given a set number of people and a set budget of available time per person. No robots are involved :-) I still have a long way to go. List creation through recursion warps my mind and declarative predicate programming is still a new concept to me.
@derekfrost8991
@derekfrost8991 6 жыл бұрын
I really like prolog but example code always shows crappy family trees etc.
@Welzi1234567890
@Welzi1234567890 4 жыл бұрын
18:03 So... Alice and bob are siblings, and the parent of carl...?
@storyls
@storyls 4 жыл бұрын
Welzi1234567890 sweet home alabama
@norcal6181
@norcal6181 4 жыл бұрын
Yes, incest is common in prolog
@peacemekka
@peacemekka 3 жыл бұрын
@@norcal6181 lmao.
@michalnarbutt2057
@michalnarbutt2057 5 жыл бұрын
Got a Prolog final this coming Monday. This is better than the last 6 weeks of class. Thank you! #lifesaver
@derekbanas
@derekbanas 5 жыл бұрын
Thank you :) Best of luck on your final
@DarshanParajuli
@DarshanParajuli 7 жыл бұрын
I have a final in a few days on Prolog and Haskell, your videos on them are such a great review, thanks!
@derekbanas
@derekbanas 7 жыл бұрын
I'm very happy I could help :) Best of luck on your finals.
@ZenoDovahkiin
@ZenoDovahkiin 5 жыл бұрын
produce_milk(penguin). yes Ok.
@derekbanas
@derekbanas 5 жыл бұрын
That's funny 😁
@krisjanisliepa7969
@krisjanisliepa7969 8 жыл бұрын
Will you cover iOS development any time soon, with objective-c or perhaps even with swift?
@ASDFG856
@ASDFG856 8 жыл бұрын
Alberts Klavins he already has a series on swift and object c , check out his channel :)
@derekbanas
@derekbanas 8 жыл бұрын
Alberts Klavins I'll see what I can do.
@krisjanisliepa7969
@krisjanisliepa7969 8 жыл бұрын
Derek Banas That would actually be great because i am new to iOS development and through you i actually learned basics in Android Development and I am grateful about that. So keep your work and thank you for your awesome videos. :)
@alexanderzharkov6953
@alexanderzharkov6953 2 жыл бұрын
Derek, you helped me so much with this video. I really appreciate that!
@derekbanas
@derekbanas 2 жыл бұрын
I’m very happy I could help :)
@joshux3210
@joshux3210 7 ай бұрын
51:24 count_down only works when Low is 0. Should be "Z is Low+High-Y". Similarly for count_up, should be "Z is Y".
@ibm5155
@ibm5155 7 жыл бұрын
why not swi-prolog on Windows?
@ibm5155
@ibm5155 7 жыл бұрын
well not in my zone. The last dev that I saw using Linux formated his own hdd by mistake while he was trying to format an external hdd on terminal :B And the mac ones, ehm, I Always see them Always using dual boot :S ... And idk why did I made that question rofl, swi-prolog is bad everywhere
@MatTaNg100
@MatTaNg100 8 жыл бұрын
Where was this when I took my AI class last semester!
@derekbanas
@derekbanas 8 жыл бұрын
Matt Ng Sorry it took so long :)
@sidneyygracee
@sidneyygracee 4 жыл бұрын
great quality and SO helpful -- thank you for this!
@derekbanas
@derekbanas 4 жыл бұрын
Thank you :) Happy I could help
@StreetArtist360
@StreetArtist360 3 жыл бұрын
Dude, I really enjoyed this session. Thank you very much.
@derekbanas
@derekbanas 3 жыл бұрын
I'm very happy I could help :)
@psyk2642
@psyk2642 8 жыл бұрын
42:10 succ
@umadbroyo2388
@umadbroyo2388 6 жыл бұрын
Good succ....
@nomealow
@nomealow 4 жыл бұрын
1:03:06
@spiritwolf448
@spiritwolf448 8 жыл бұрын
CAN YOU PLEEEEASE DO ASSEMBLY. please????
@derekbanas
@derekbanas 8 жыл бұрын
How to's for blender I'm working on it as well as a tutorial on electronics.
@farithadnan
@farithadnan 5 жыл бұрын
thank you! i needed this, i've been troubled understanding the basic up untill now 😁
@derekbanas
@derekbanas 5 жыл бұрын
Happy I could help :)
@Fernando-xh2ko
@Fernando-xh2ko Жыл бұрын
You just saved my entire module, god bless
@perfectketchup
@perfectketchup 6 жыл бұрын
penguins doesnt produce milk,that stuff its not really milk :P great basic tutorial tho, thanks a lot! All other info on control logic programing looks like written in soviet russia
@derekbanas
@derekbanas 6 жыл бұрын
That's funny :) I'm glad you liked it
@dmitryponyatov2158
@dmitryponyatov2158 5 жыл бұрын
Totally right, I almost never read _learning_ textbooks on anything written by russian scientists - they can't write tutorials in principle, but dump their brain knowledge porridge onto paper, so you must already know a lot to read that mind flow.
@VerthElone
@VerthElone 5 жыл бұрын
This got me darn confused...
@rohanarcot2955
@rohanarcot2955 8 жыл бұрын
How many proggramming languages do u know?
@derekbanas
@derekbanas 8 жыл бұрын
+Rohan Arcot I have used pretty much everything over my 30 years of programming
@ayami123
@ayami123 8 жыл бұрын
+Derek Banas do you know how to install XPCE ?
@NaeemAkramAndroidiOSApp
@NaeemAkramAndroidiOSApp 8 жыл бұрын
+Derek Banas is the Zeus of programming! :p
@madman6903
@madman6903 8 жыл бұрын
+Derek Banas lol i thought you were 25-30 years old
@VaibhavGupta9
@VaibhavGupta9 8 жыл бұрын
How do you remember it all! I keep confusing the syntax between the 2 languages I know!
@tinni19995
@tinni19995 7 жыл бұрын
you are the best Derek, huge respect
@derekbanas
@derekbanas 7 жыл бұрын
Thank you very much :)
@user-up9gf1ff2m
@user-up9gf1ff2m Жыл бұрын
Thank you so much for this video it helped me so much with learning prolog
@FireWolfVids
@FireWolfVids 8 жыл бұрын
404 views. Cannot find page
@Streta2k11
@Streta2k11 8 жыл бұрын
FireWolfVids lmao
@asadwaqqas7035
@asadwaqqas7035 7 жыл бұрын
its 404 error i think not 404 view
@FireWolfVids
@FireWolfVids 7 жыл бұрын
Asad Waqqas you missed the joke a year ago when this had 404 views
@asadwaqqas7035
@asadwaqqas7035 7 жыл бұрын
ok
@MrQwerty2524
@MrQwerty2524 8 жыл бұрын
I never even heard of this language...
@reece4309
@reece4309 8 жыл бұрын
Its taught in university for AI apparently.
@derekbanas
@derekbanas 8 жыл бұрын
MrQwerty2524 It is pretty cool. Check this out Building Expert Systems with Prolog www.inf.fu-berlin.de/lehre/SS09/KI/folien/merritt.pdf
@outsider1st
@outsider1st 8 жыл бұрын
Derek Banas could you mind about assembly lang tutorial?
@derekbanas
@derekbanas 8 жыл бұрын
Nikodem Pierzak Sure, but I want to cover electronics first.
@outsider1st
@outsider1st 8 жыл бұрын
Great!
@cesarlabastida1392
@cesarlabastida1392 6 жыл бұрын
thanx a lot it really helped me with my hw in concepts in programming
@fhdcbdfkdjnisdnoi
@fhdcbdfkdjnisdnoi 5 жыл бұрын
I need to learn Prolog at the university, i study in language science and although i'm really bad with computer (the level of your grandparents probably) Prolog kinda feel more intuitive to me than Python, java or anything else alike. I could understand programmers could have difficulties understanding the purpose of this kind of language and finding it horrible but it's the best language for things like the automatic treatment of languages.
@shidajieqing
@shidajieqing 7 жыл бұрын
who's here for csc324?
@sigillumdei887
@sigillumdei887 6 жыл бұрын
Hi Derek, your work over the years is incredible, you have a deep general know how about all of the technology subjects. I am sure that you can do videos about electronics, physics, chemistry also. Do you have time and drive to start a electronics section on your channel? Also assembly language will be great as it is close bridge to direct hardware programming. :)
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :) I'm a rather average guy that is just interested in learning. Here is my assembly tutorial kzbin.info/www/bejne/jJqxn5mlepppjJo I made a couple electronics tutorials as well kzbin.info/www/bejne/joqtkHSLhNxnl6c I entertained doing a chem tutorial a few years ago, but I don't have any place with proper ventilation. I use Newtonian physics while making games. Pretty much the only thing that bores me is high level physics, but I love math.
@y.x3476
@y.x3476 2 жыл бұрын
Nice lecture!! Thank you so much!
@olmanmora21
@olmanmora21 7 жыл бұрын
I needed no more for my course prolog lecture, This video really rocks!
@derekbanas
@derekbanas 7 жыл бұрын
Thank you :) I'm glad it helped
@iskraracheva1455
@iskraracheva1455 8 жыл бұрын
You are like the best and funniest tutor ever!! And it is just like so cute when you are saying "those guys" :D Love all of your work!
@derekbanas
@derekbanas 8 жыл бұрын
+iskra racheva Thank you for the kind compliments :) You're very welcome
@user-ft6mi9pj8v
@user-ft6mi9pj8v 7 жыл бұрын
Thank you so much Mr. Derek, this video is so useful.
@derekbanas
@derekbanas 7 жыл бұрын
I'm very happy it helped :)
@paramvir_phagura
@paramvir_phagura 8 жыл бұрын
Great tutorial Derek!
@derekbanas
@derekbanas 8 жыл бұрын
thank you :)
@danifeldman8884
@danifeldman8884 8 жыл бұрын
Great tutorial, thanks Derek!
@derekbanas
@derekbanas 8 жыл бұрын
+Dani Feldman Thank you :)
@avry5l
@avry5l 8 жыл бұрын
Super helpful. Thank you so much. Really great foundation to develop on.
@derekbanas
@derekbanas 8 жыл бұрын
+Avryl Francis Thank you :)
@Swampdragon102
@Swampdragon102 Жыл бұрын
For those visiting: Windows 10 has WSL, which is a proper linux compatible with windows in both directions. With Windows 11, you can even run unix GUI programs out of the box.
@johnflanch3085
@johnflanch3085 3 жыл бұрын
I wrote a prolog interpreter in python. But it was more simular to english. i.e In prolog: Loves(romeo,juliet) In my python interpreter: Romeo loves juliet
@malknaor
@malknaor 6 жыл бұрын
Great Tutorial learned a lot from the video, thanks Derek.
@derekbanas
@derekbanas 6 жыл бұрын
Thank you :)
"Production Prolog" by Michael Hendricks
39:58
Strange Loop Conference
Рет қаралды 49 М.
Haskell Tutorial
1:16:47
Derek Banas
Рет қаралды 874 М.
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 21 МЛН
어른의 힘으로만 할 수 있는 버블티 마시는법
00:15
진영민yeongmin
Рет қаралды 8 МЛН
How many pencils can hold me up?
00:40
A4
Рет қаралды 18 МЛН
Lua Tutorial
57:25
Derek Banas
Рет қаралды 953 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 370 М.
Lisp Tutorial
1:15:25
Derek Banas
Рет қаралды 459 М.
Separating AI Hype from AI Reality
19:49
IAmTimCorey
Рет қаралды 4,4 М.
Programming In Prolog Part 1 - Facts, Rules and Queries
11:50
Ryan Schachte
Рет қаралды 264 М.
FORTRAN in 100 Seconds
2:39
Fireship
Рет қаралды 1,2 МЛН
Rust Tutorial Full Course
2:35:11
Derek Banas
Рет қаралды 513 М.
Scala Tutorial
1:14:41
Derek Banas
Рет қаралды 611 М.
ELE QUEBROU A TAÇA DE FUTEBOL
00:45
Matheus Kriwat
Рет қаралды 21 МЛН