This is a weekly roundup of awesome DEV comments that you may have missed. You are welcome and encouraged to boost posts and comments yourself using the #bestofdev tag.
Responding to Why I believe university/college is a total scam. @skyandsand acknowledges some major issues, but also offers a comprehensive counter-point:
Comment Not Found
@matthewbdaly talks about their choice for Which modern fiction presents the most interesting techno-dystopia?:
Altered Carbon, both the book and the Netflix series.
It portrays a future where implants called cortical stacks mean that minds can be transferred between bodies. Wealthy people can afford remote backups and clone bodies, while poorer people have to make for with whatever broken down body is available, and the punishment for many crimes is to be stored for a length of time and your body sold off.
Replying to Things you may not know about Chrome DevTools, @emnudge adds a few more great tips:
These are nice tips! To add to a few more:
$0
is the currently selected element in the elements viewer tab
$$()
is shorthand for document.querySelectorAll()
You can use the color picker to get a color on any page by clicking on a color box in the css. You can change the color format with the arrows to the right.
@glsolaria commented on C# Async Await, Simply to offer some context about when the example should be used for instruction vs. in practice:
I understand why you are using Thread.Sleep (to mimic doing some CPU intensive work) but I fear it will also give beginners the wrong impression about using Thread.Sleep in tasks to delay work. I think instead of ...
public static async Task WorldDomination()
{
await Task.Run(() =>
{
Thread.Sleep(6000);
Console.WriteLine("World Domination Achieved!");
});
}
If you need to delay before doing something in a task ...
public static async Task WorldDomination()
{
await Task.Delay(6000);
Console.WriteLine("World Domination Achieved!");
}
If you Thread.Sleep in many running tasks, performance may suffer. If you do it to excess, work may have to be queued waiting for all the sleeping threads to wake and finish executing their work. At the very worst you could get out of memory exceptions.
Like I said I understand why you chose to use Thread.Sleep for your example but beginners shouldn't think that using Thread.Sleep in tasks is good practice.
Helping others understand async/await is no mean feat. Good on you for giving it a go.
</div>
Finally, @fultonbrowne offers a light-hearted product suggestion in Stack Overflow hires new CEO Prashanth Chandrasekar:
Maybe he will tell some one to give stack overflow a dark mode!?!?
Reminder, you can enable Night Mode right here on DEV.
See you next week for more great comments ✌
Top comments (2)
Congrats to @skyandsand , @matthewbdaly , @emnudge , @glsolaria , and @fultonbrowne for making the list this week!
This is the best app calculator on web here got it online.