posting things from the 100+ rss feeds I follow. You should see me post links in two chunks for when im reading stuff, once in the morning and once in the evening ET. If you want some of my sources for certain communities feel free to dm
Theres a community for it over at !bevy@programming.dev for anyone interested in it :)
Nah not mine, just one I found and thought was pretty cool. Added the source to my rss reader and probably gonna post more from them in the future
Also @popcar2@programming.dev, dont know if you know already but they showcased GodotOS in here
https://github.blog/2024-01-18-game-bytes-january-2024/#go-go-gadget-godot-operating-system
When the draw function calls itself it yields control to that new function its calling. When that function ends it takes back control and continues doing what it was doing.
This means all of the for loops in all of the functions will execute. Draw(1) will do the for loop and then return as it hits the end of the function (standard behaviour when you reach the end of a function even if theres no return statement). Then draw(2) will do the for loop as it gets back control now that draw(1) is done and then return, etc. all the way up
All parts of a function are recursive, theres no such thing as a non recursive part
This code has a recursive call (function calls itself) within the function so that has to be taken into account when tracing it
This would make the function execute multiple times so the for loop would end up executing multiple times.
Lets say main calls draw with a height value of 10 (draw(10)). First it sees that n is greater than 0 so it keeps going. Then it calls the draw function with a value of 10 - 1 aka 9. Now its executing in the draw(9) function. Greater than 0 so continues and calls draw(8). etc. all the way down to draw(0) where it sees that n is equal to 0 so returns out of the function due to the return statement.
Now that draw(0) finished executing draw(1) can keep going and goes to the for loop. Here it prints 1 # and then prints a new line (and then returns since it hit the end of the function). Now that draw(1) is done draw(2) can keep going and prints 2 #'s and then prints a new line (and then returns). This keeps going all the way up to the initial draw call, draw(10) which prints 10 #'s and then a new line, returns, and then the main function keeps going but theres nothing after that so it returns and the execution ends.
The effect from coming back after the recursive calls makes it seem like n is increasing but its just different calls to the same function. i is taken into account for but printing the amount of #'s since thats whats within that loop
Letting you know, the download and github links on the git.rela.dev site navbar dont work
Its probably set as a private repository
*removed externally hosted image*
*removed externally hosted image*
*removed externally hosted image*
who needs modulo when you can get less characters out of
while (number > 1) {
number -= 2;
}
return number;
very efficient
edit: or theres the trusty iseven api
Triggered due to incorrect handling of LaTeX. Original answer on the page was 10^80 which ended up getting the exponentiation ignored by google
yeah with the example code on the page. With 2023 day 1 its one large block rather than broken up like it is there
It doesn't let people solve it without logging in since everyone gets randomized inputs rather than the same ones. You can still technically do the challenge, just cant use your solution on the large block of input
That also looks like the day 1 of 2015
its relatively fine, just harder than past day 1s and has cases that trip people up
This should be just 35, you can ignore the words that are numbers
searching across all of github was made to be logged in then
repository level searching though is relatively recent. Heres the blog post about the change dated in June this year https://github.blog/changelog/2023-06-07-code-search-now-requires-login/
This comment by an employee in the thread also calls out it was in 2023 and links to the blog post
*removed externally hosted image*
rename a file is in expert
in godot if you rename certain types of things it tends to break a lot of parts of your game unless you go in and update references to it manually in the tscn files
Image Transcription: Twitter
Mega Crit, @MegaCrit
We're proud to support a free, open source engine like Godot so that devs everywhere have an accessible yet powerful option to create their projects with 💙
Our team has learned a lot while migrating our next game to Godot and we're so exited to show off its power
Godot Engine, @godotengine
Shuffle your deck and hit the dance floor - @MegaCrit is now a #GodotEngine Gold Sponsor! 💃 🕺 A huge thank you for your support! megacrit.com
I am a human volunteer who transcribes posts to improve accessibility on programming.dev and you could be one too! !transcribing@programming.dev
the cancel/decline button isnt showing up and instead shows a duplicate of the get the app button
https://store.steampowered.com/app/1039280/ProtoCorgi/
ProtoCorgi is a retro style pixel art, horizontal shoot ‘em up with arcade gameplay that gives the player control over Bullet, a C³ class (Cute Cybernetic Corgi) pup.
*removed externally hosted image*
https://store.steampowered.com/app/1566090/Malice__Greed/
Malice & Greed is a Roguelike Turn-based RPG where you force enemies & bosses to join you after each fight, sell them to the Shady Smuggler, and butcher them to steal their skills.
*removed externally hosted image*
https://store.steampowered.com/app/2422540/Burning_Branch/
Burning Branch is an action rogue-like that will see you hack and slashing your way through a myriad of unique bosses in a miniature animal inhabited world that death forgot.
*removed externally hosted image*
Image in the tweet for those who dont want to click
*removed externally hosted image*