6 days agochatgpt to the rescue — enhancing opengl learningi talk to chatgpt a few hours every day as it enhances my learning path by an incredible magnitude, here’s how i query it ChatGPT 4 User how do i know if model i imported using tinigltf requires flipping like assimp performs with flag to flip uv coords when importing the model? ChatGPT…61 min read61 min read
Oct 30c++ type deduction decltype template generic typeswhat does decltype do in c++? give me various ways to use it In C++, decltype is a keyword introduced in C++11 that inspects the declared type of an expression. The result is the type itself, which can be used in various contexts, such as for declaring variables, function return types, template argument deduction, and more. for now alive at sk-experiments/cpp/experiments/curiously_recurring_template_pattern/main.cpp at… The collection of Srecko Kostic's experiments. Contribute to srele96/sk-experiments development by creating an account…github.com1 min read1 min read
Oct 22C++ Understand CRTP, Curiously Recurring Template Patterna complete source code that helped me understand the CRTP, Curiously Recurring Template Pattern in C++1 min read1 min read
Oct 10How to use hook in class component in reactjsConvert the hook to a component and wrap the child in it. This article solves a problem with an example of how to use a hook such as useState in a class component. It works for other hooks as well. Run the code here: https://codepen.io/Flexos96/pen/bGOzOxr?editors=1010 Read the code here: …1 min read1 min read
Aug 9analyse thought process — 2477. Minimum Fuel Cost to Report to the CapitalAnswer what happened what went right what went wrong what can i learn from it one thing i’ll do different * what happened I started to solve: 2477. Minimum Fuel Cost to Report to the Capital It is a medium question with a dynamic programming tag and bonus points because it is a…4 min read4 min read
Aug 7thoguth process iterative binary tree preorder traversali first sketched out the results of preorder traversal to see expected outputs which should help me understand all the cases that i need to handle in my implementation then i realized that since a tree is recursive data structure, at each node i have only information…3 min read3 min read
Jul 11Rotate vector around another vectorDetailed explanation of how to rotate vector around another vector using information that rotation around the origin 0,0 is the simpler form of rotation. If we rotate vector A around vector B, then vector B is our origin, but we don’t want that, we want origin to be 0,0. Therefore we remove offset which is vector B, so we can rotate vector A freely because now our center of rotation is origin 0,0. All we have to do now is add back to the result the offset we initially removed.1 min read1 min read
Jul 7* start from 0 or 1* start from 0 or 1 * pay step then go to step + 1 or step + 2 * recursion, same choice repeats for nth step * dp * choice of the most optimal step [0, 0] [999, 999] [0, 1] [1, 0] [999, 0] [0, 999] [5, 5] …2 min read2 min read
Apr 26It is always great to read another book.I have studied programming for some time and thought I knew quite a few things and programming practices. However, whenever I read a new book, I find something new. Sometimes that news is mind-blowing, especially when reading the content created by people like Bjarne Stroustrup. For example, I was reading…2 min read2 min read
Apr 21My discussion with ChatGPT on talent and interviewsI talked to ChatGPt about my thoughts about talent and candidate recruitment after considering an interview process, estimating programmers’ abilities, and recruiters talking about top talents. …5 min read5 min read