A teacher aims at changing the way things are taught, and make the world a better place. I mostly teach programming, but you can occasionally expect something that's !programming.
When do we use Macros and when do we use Void pointers? I can create a macro and it will create things for me as well. But it will be different everytime.
What I would do is make generic functions that can operate on a linked list with any data type by using macros and such and let the user create the struct with the datatype he wants.
I recently started your videos about C, and I really love them all. I just came by to say thanks for sharing your content, and I hope to see way more of them.
Cool video, but structs without typedef is hurting my soul 😅 You can do something like this: ``` typedef struct MyStruct { // fields } MyStruct; MyStruct *var = NULL; ``` If you need to reference type in itself, you must declare typesef separatly from declaring struct: ``` typedef struct Node Node; struct Node { Node *next; }; ``` Also naming struct is not nessecary (if you don't nest this struct): ``` typedef struct { // fields... } MyStruct; ```
Another option if you have a large document but don't want to json clean it all. Highlight the Json block (V) and perform the same command :'<'>! python -m json.tool
There's something about using vim to work on helix source but I can't quite put my finger on it. Kinda like using your car to take your bicycle for a walk.
You can't have your IDE when on a remote ssh session. It's far more likely that the machine you're ssh'd into has a GNU/Linux OS that shipped with Vim :)
The issue is your expression in the loop! just change "<=" to "<" and it works fine! .. and also if your text is only a single letter! Or in other words : there is no issue with XOR as long as you don't swap a digit with itself (you need 2 things for a swap)