- 385
- 645 619
Logic Lambda
Приєднався 20 сер 2021
I am a software engineer and computer science educator.
Writing Pair Procedures in Scheme
Writing Scheme procedures with a pair as a parameter
Link to code: github.com/wadehuber/codeexamples/blob/master/scheme/scheme2/pairprocedures.scm
0:02 - Review of pairs in Scheme
0:13 - Procedures that work with pairs: cons, car, & cdr (and pair?)
0:35 - Creating a pair with "cons"
0:44 - Creating named pairs with define
1:06 - Writing a pair procedure - the "in-order-pair?" predicate
2:25 - Writing a pair procedure - "raise-to-power"
3:00 - Writing a pair procedure where one of the parameters is a list - "multiply-by"
Link to code: github.com/wadehuber/codeexamples/blob/master/scheme/scheme2/pairprocedures.scm
0:02 - Review of pairs in Scheme
0:13 - Procedures that work with pairs: cons, car, & cdr (and pair?)
0:35 - Creating a pair with "cons"
0:44 - Creating named pairs with define
1:06 - Writing a pair procedure - the "in-order-pair?" predicate
2:25 - Writing a pair procedure - "raise-to-power"
3:00 - Writing a pair procedure where one of the parameters is a list - "multiply-by"
Переглядів: 35
Відео
Introduction to For Loops with Java
Переглядів 61Місяць тому
This video introduces for loops in Java 0:12 - Syntax of a for loop 1:03 - Example for loop 2:30 - Example program without using a loop 3:06 - Rewriting using a for loop 4:25 - Comparison with original version & execution
Checking User Input Using an if Statement in Java
Переглядів 99Місяць тому
0:08 - Initial program 0:28 - Reading an integer from the user 0:53 - Adding an if statement to check that the number is bigger than 10 1:40 - Adding a second condition to the if statement to check that the number is less than 20 2:20 - Adding an "else" condition to print an error message 2:40 - Checking for greater than or equal to / less than or equal to 3:05 - Using constants to hold the bou...
Downloading a Single File from GitHub
Переглядів 1114 місяці тому
You can download an entire GitHub repository with "git clone", but sometimes you just want one file 0:04 - The GitHub repo with the file we want to download 0:11 - Looking at the file we want to download on GitHub 0:25 - Downloading the file 4:46 - Editing & running the file 0:59 - Copying the file to a new folder
Fix for missing file menu in SWI-Prolog (MacOS Sonoma)
Переглядів 1664 місяці тому
0:07 - Example of the missing File / Edit / Settings / Run / Debug /Help 0:22 - Type init_win_menus. at the SWI-Prolog prompt 0:29 - The menus are back
Downloading & Setting Up SWI-Prolog on MacOS Sonoma (July 2024)
Переглядів 6854 місяці тому
This video walks through downloading & installing SWI-Prolog 9.2.5 on MacOS Sonoma 14.5. Hardware is an M3 MacBook Pro. 0:03 - Downloading SWI-Prolog from swi-prolog.org 0:45 - Installing SWI-Prolog on MacOS 0:58 - Launching SWI-Prolog 1:28 - Fix for missing menus (happens with some installs)
Consulting (opening) a .pl file in SWI-Prolog (MacOS Sonoma)
Переглядів 2794 місяці тому
This video walks through consulting a file in SWI-Prolog under MacOS Sonoma. Note that you need to know the full path to the file before you consult it. 0:03 - Opening SWI_Prolog 0:13 - Navigating to the file location, opening with TextEdit 0:32 - Consulting the file: consult('FILEPATH_NAME'). 1:10 - Entering queries
Indentation in Python - Yes, Whitespace Matters!
Переглядів 824 місяці тому
In Python, code blocks are indicated by a common indent level. 0:06 - Code blocks 0:37 - Some guidelines for indenting Python code 1:08 - Code blocks in C are specified by { braces } 1:31 - A Python program with no indentation (no code blocks) 1:52 - Indenting if statements in Python 2:21 - PEP 8 - Style Guide for Python Code 2:51 - Indenting a loop inside an if statement 3:08 - Indenting the b...
Is Scheme's Prefix Notation Really That Weird?
Переглядів 884 місяці тому
0:07 - Example of prefix notation in Scheme 0:49 - Infix notation in C (and other languages with a similar syntax like Java) 1:10 - Functions are the building block of functional languages like Scheme 1:20 - Writing a function in the imperative language C 1:35 - Do we use infix notation to call functions in C? 1:43 - Calling a function in C uses prefix notation - just like Scheme! 2:23 - Compar...
Installing PyCharm 2024.1.3 (Community Edition) on Windows 11
Переглядів 6494 місяці тому
0:04 - Downloading PyCharm from jetbrains.com/pycharm 0:35 - Launching the installer & selecting options 1:33 - Launching PyCharm 1:45 - Creating a Hello, World project
Installing Python 3.12 on Windows 11
Переглядів 1384 місяці тому
0:05 - Check to see if Python is already installed 0:26 - Navigate to python.org & download the installer 0:44 - Running the installer 1:15 - A note about disabling the path length limit 1:31 - Testing the installation with "Hello, world"
Python "Hello, world" Example
Переглядів 1124 місяці тому
0:05 - Create a file with a .py extension 0:10 - Python single line comments 0:18 - The print function 0:24 - Running the python program using WSL Ubuntu 0:38 - Discussion 1:17 - Python extension for Visual Studio Code
Zipping an Eclipse Java Package in macOS Sonoma
Переглядів 1867 місяців тому
Zipping an Eclipse Java Package in macOS Sonoma
Conditional Statements in Scheme - "if" vs "cond"
Переглядів 4177 місяців тому
This video walks through using if & cond and shows how they can be used equivalently 0:06 - The "if' form 0:26 - The "cond" form 1:05 - Which is better - it doesn't matter! 1:15 - An example of using "if" when you have 2 conditions 1:26 - An example of using "cond" when you have 3 conditions 1:46 - Using a "cond" when you only have 2 conditions 2:01 - Using an "if" when you have 3 conditions
Boolean Operators in Scheme - and, or, xor, & not
Переглядів 1677 місяців тому
An overview of some Scheme Boolean operators 0:10 - Using comparison operators in the REPL 0:24 - and 0:54 - or 1:10 - xor (exclusive or) 1:28 - not 1:58 - Using Boolean operators in Scheme forms 2:17 - More than 2 arguments for Boolean operators
Installing DrRacket on macOS Sonoma (March 2024)
Переглядів 3287 місяців тому
Installing DrRacket on macOS Sonoma (March 2024)
Resolving VNC Viewer "An authentication error occurred" connecting to a Mac
Переглядів 1,8 тис.7 місяців тому
Resolving VNC Viewer "An authentication error occurred" connecting to a Mac
Compiling Code at the Command Line - C & Java
Переглядів 1927 місяців тому
Compiling Code at the Command Line - C & Java
Installing Racket 8.12 for Scheme Programming (March 2024)
Переглядів 3377 місяців тому
Installing Racket 8.12 for Scheme Programming (March 2024)
Installing Eclipse on Windows 11 (January 2024)
Переглядів 2 тис.9 місяців тому
Installing Eclipse on Windows 11 (January 2024)
Installing WSL Ubuntu on Windows 11 (January 2024)
Переглядів 26 тис.9 місяців тому
Installing WSL Ubuntu on Windows 11 (January 2024)
CSC110 Project 10 Review - Writing 3 Java Methods
Переглядів 12211 місяців тому
CSC110 Project 10 Review - Writing 3 Java Methods
CSC110 Project 6 Review - A Simple Caesar Cipher in Java
Переглядів 11711 місяців тому
CSC110 Project 6 Review - A Simple Caesar Cipher in Java
Example Binary Tree Traversals - Preorder, Inorder, Postorder, & Level Order
Переглядів 2,9 тис.11 місяців тому
Example Binary Tree Traversals - Preorder, Inorder, Postorder, & Level Order
DrRacket - Setting the Default Language (to Scheme)
Переглядів 487Рік тому
DrRacket - Setting the Default Language (to Scheme)
Conditional Statements - if-else versus switch statements
Переглядів 573Рік тому
Conditional Statements - if-else versus switch statements
Concatenating (Joining) Strings in Java
Переглядів 228Рік тому
Concatenating (Joining) Strings in Java
Constant Variables in Java - the "final" Keyword
Переглядів 199Рік тому
Constant Variables in Java - the "final" Keyword
Creating a screenshot of a selected area in macOS Ventura
Переглядів 253Рік тому
Creating a screenshot of a selected area in macOS Ventura
Thank you
Thank you!
Logic Lambda!
This is awesome! I am curious though: could you use this structure in a 1 player version of the game, ensuring moves are valid by peeking at the top values of the tower you are trying to move to? If so, how could you develop a “hint” feature that would guide you in the correct direction without making a graph of all the nodes and running a search algorithm? Is there a numerical indicator of the “correct direction”? Lmk what you think!!
Side thought: it seems the correct direction along the graph could be determined by ensuring no two odd or even numbers are touching on any of the stacks and if a relatively big ring is on the correct peg. But how would you determine the next best move?
Thanks! I'd figured out what I did wrong from stack overflow, and this made it make a lot more sense.
Piece of art
Amazing tutorial, is there a way to automatically open file without everytime going to search it in folders?
Great video
thanks bro
Wouldn't for In-order the right subtree pattern would be I, F, J, C, G, K and not C, I, F, J, G, K like you stated. Since in the inorder you visit the left most child of the subtree before visiting the root node of that subtree.
Thanks!
nice video ty
Can't thank you enough! I was almost ready to give up after trying to deal with the problem for hours. The solution turned out to be so simple
Thank you for a clear explanation 👍
thanks 🤩
What if I don't want to set up for c and c++? But for java?
windows 11 says that the program is harmful
Your tip helped a lot! Thx.
Thanks a lot for that.
very bad video quality - almost unreadable text, therefore it is a useless presentation
I love vids on C++
This is the best exactly what I wanted
thanks for the helpful video!
modulepath is missing in build path for me. how can i solve this problem?
The 2024.2 version is really bad, it takes about 10 seconds to execute even a single line of code. This version was more stable. Been searching for it but can't find this particular one
Thank bro it's helpful for me ❤
yo homie word to Gosling dis be bangin
FINALLY! THE REAL ROTATION. i dont understand why they call left and right rotate eventhought they won't show us rotation V_V
i was struggling so hard, then he literally rotated it and everything clicked, so easy now.
what to do when the letters are repeated?
Thanks for explaining the steps to resolve the issue
Using type conversion while de-referencing a pointer or union write and read for different types is UB! To stay within standard and guarantee your code won't break later you have to use memcpy.
you saved my day
Please I want to ask I see this language online can it be use to develop compilers and interpreters
Thank you very much.
Thank you so much .
Probably the best explanation of tree rotations I've come across so far. Thank you!
Thank you! This really helped.
Hey, can I make a request? If possible I like to see more of these Algorithm videos.
Really comprehensible and great examples. Thanks a lot. I am gonna see if you have more of these algorithm videos.
Thanks, man. I was confused about this subject, but your video helped me understand it. Actually, I'm surprised that there aren't any other comments...
Thanks! I would like to see more videos about PyCharm Community 😊
you can do: ``` typedef struct structname structname; struct structname { structname s; }; ``` if you wanna remove the `struct` inside the struct. I usually make a macro for this and name it `structdef`
Hello, I wonder if cppcheck can check the variables not initialized error in these 3 cases (C/C++): + Initialized in constructor + Initialized in a function, which calls in the constructor + Initialized in scope of function
what is the boa doing in the thumbnail?
Another benefit is that + accepts any number of parameters (+ 1 2 3 4 5) gives 15 and you only need to type a single +
very useful thanks
👏👏👏
Thank you 🌹
really good teaching, thanks