725 karma · joined Sep 18, 2023 (3y ago) · 371 submissions
comment 5d ago · link · parent
comment 1w ago · link · parent
After the first nested loop run A[1] will have the largest value.
After the second nested loop run A[1] will always be swapped with A[2] (unless they are equal, logically doesn't change anything). A[2] now contains the largest value.
After the k-th (k >= 2) nested loop run, if you pay attention, the k-th element will be inserted into the first k-1 sorted elements. When j >= i, it can no longer do anything, since A[k] will contain the largest value.
After the k-th (k >= 2) nested loop run the first k elements will be sorted relative to each other. The first nested loop is special by bringing the largest element to A[1], the consecutive ones are just inserting A[k] into the sorted first k - 1 elements from the beginning of the array.
comment 2w ago · link · parent
Here is my opinion about PHP: https://waspdev.com/articles/2025-06-12/my-honest-opinion-ab...
comment 4w ago · link · parent
17.
The AI Software Crisis: software developers have been promoted into incompetence [video](youtube.com ↗)
1 points · by senfiaj · 1mo ago · discuss
19.
AI isn't just a tool and it might be dangerous(waspdev.com ↗)
1 points · by senfiaj · 1mo ago · discuss
comment 1mo ago · link · parent
Japan seems to have a similar problem, although a less extreme version.
22.
SmileyOS a whole OS for kids, written from scratch(smileytech.mk ↗)
3 points · by senfiaj · 1mo ago · discuss
comment 1mo ago · link · parent
comment 2mo ago · link · parent
comment 2mo ago · link · parent
Also, although the article is mostly true, there are some inaccuracies:
>> Neurons and cardiac muscle cells don't reproduce after childhood
There is some evidence showing a slow cell turnover in cardiac muscle, estimated around ~1% per year in young adults, falling toward ~0.5% in older people. Most neurons don't regenerate, but there an evidence that some parts of the adult brain (such as hippocampus) still produce new neurons, although the number is very low.
Liver regeneration is not perfect either: https://www.youtube.com/watch?v=rOv7Sr3X-eo .