18
submitted 6 months ago by mac@programming.dev to c/tech@programming.dev
50
122
21
NVIM 0.10.1 (github.com)
submitted 7 months ago by mac@programming.dev to c/neovim@programming.dev
23
submitted 7 months ago by mac@programming.dev to c/linux@programming.dev
16
This Week in Rust 557 (this-week-in-rust.org)
submitted 7 months ago by mac@programming.dev to c/rust@programming.dev
1
submitted 7 months ago by mac@programming.dev to c/godot@programming.dev
67
submitted 7 months ago by mac@programming.dev to c/tech@programming.dev
125
Funtoo Linux Ended (programming.dev)
submitted 7 months ago by mac@programming.dev to c/linux@programming.dev
62
26
2024 Stack Overflow Developer Survey (survey.stackoverflow.co)
44
[-] mac@programming.dev 8 points 11 months ago* (last edited 11 months ago)

Not all work with someone happens from opening up issues or PRs

[-] mac@programming.dev 10 points 11 months ago

All lemmy apps are sublinks apps, it has api compatibility

The demo site also isn't an instance for accounts, its a demo

[-] mac@programming.dev 12 points 11 months ago* (last edited 11 months ago)

API pretty much already has parity, should be done way quicker than that

[-] mac@programming.dev 10 points 1 year ago

Theyre two different softwares with two different apis, you can't

[-] mac@programming.dev 9 points 1 year ago* (last edited 1 year ago)

Lemmy is indexed so can be found on search engines while discord cant

For internal search without using a search engine discord has had way more devs, time and money thrown at it. Still would say its barely better than lemmy (just is cause of the time filters)

[-] mac@programming.dev 8 points 1 year ago* (last edited 1 year ago)

It was removed from the source instance already (lemmy.world)

Not sure why lemmy.dbzer0 doesnt get that federated

[-] mac@programming.dev 13 points 1 year ago* (last edited 1 year ago)

It was a bug that was fixed in 0.19 (so the instances that haven't upgraded yet will still have people from them writing amp but the ones that have wont)

For example I can type & fine

[-] mac@programming.dev 7 points 1 year ago

Active is a combination of that and hot but is essentially hard capped at 2 days. Things past that wont show up

Theres the new comments sort which works like that though

[-] mac@programming.dev 8 points 1 year ago* (last edited 1 year ago)

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

[-] mac@programming.dev 11 points 1 year ago* (last edited 1 year ago)

Yeah active is currently the default sort in programming.dev until scaled sort comes out so commenting helps the most out of everything here

[-] mac@programming.dev 7 points 1 year ago

Triggered due to incorrect handling of LaTeX. Original answer on the page was 10^80 which ended up getting the exponentiation ignored by google

view more: ‹ prev next ›

mac

joined 2 years ago