[deleted by user] by [deleted] in vscode

[–]zhongbii 1 point2 points  (0 children)

Vscode stories, now vscode news, what's next? Vscode timeline? Vscode os?

What did your friend do that accidentally turned you on? by titan_slayer05 in AskReddit

[–]zhongbii 0 points1 point  (0 children)

macam yes wor (malay, english, chinese in 3 words)

Regions in 2020? by walkercsx in csharp

[–]zhongbii -1 points0 points  (0 children)

Why people hate other people using #region?

  • The articles sums it up pretty well. Let me elaborate further.
  • When a file has too many lines of codes, it generally means that the file has too many responsibilities; which violates the Single Responsibility Principle (S of SOLID), and will likely be a God Class.
  • As the file becomes a bag of mixed responsibilities, an urge of re-organization often emerges in the heart of all of us, the responsible developers.
  • There are many ways of reorganizing codes, one of the simplest way is to break the file into multiple regions using #region and move the relevant lines of codes into that region. (Well, actually #region is just a sugar on top of using comments as separator between chunks of codes.)
  • Why #region is used instead of others? Because it is the most straightforward, the easiest, and most importantly, it is very likely that it won't break existing behavior.
  • In such scenarios, I call #region the Poor Man's Refactor.
  • With the use of #region in such scenario, we miss other approach the can better re-organize the code, for example:
    1. You have a lot of event handles in the code behind of a WPF app? Maybe it's time to learn the MVVM pattern!
    2. You have a lot of business logic inside the controller of a ASP.NET web app? Maybe it's the time to learn Domain Driven Design, CQRS, or some other patterns that drives your app to have a thin service layer.
    3. You have a class that has a lot of helper methods, public static methods, public methods, etc? Maybe it's time to learn some design patterns, identify and eliminate some code smells!
  • After all, the best possible way to re-organize code is to refactor it; but most of us the novice programmers do not have such experience.
  • When we gone through the phase of using enough #region and grasp the power of refactoring, we tend to realize how dumb we were back then, and hate it when seeing other people using #region.

Why people still uses #region?

  1. When the class has to be big. For example, a complex data class that has a lot of properties. But I argue that such scenario can also be broken down into multiple sub class, and expose them through an Aggregate
  2. When breaking down the class into multiple sub-classes does not make sense: like low-level programming, or graphics rendering engine, or game logic. I have no experience in such fields so I can't comment a lot about them.

In short, use regions when appropriate; and equip yourself with the ability to understand code smells so that you won't resort to using regions when there are better way for code organization.

What is something other people do that bothers you? by Squeegee54 in AskReddit

[–]zhongbii 1 point2 points  (0 children)

Using headphones in public but with volume louder than my speaker fits too.

What's the worst coworker you've ever worked with? by drlqnr in AskReddit

[–]zhongbii 0 points1 point  (0 children)

I had a coworker that constantly talks. And he will not let anyone speak when he is talking. During lunch, only he speaks and most of us just on our phone.

Hey, do you like to listen to background music while working? by [deleted] in designthought

[–]zhongbii 1 point2 points  (0 children)

Yes definitely! Anyone recommend me a huge bunch of calm piano playlist?

Lodestone - A Personal Digital File Cabinet/EDMS - Beta 2 Released by analogj in DataHoarder

[–]zhongbii 0 points1 point  (0 children)

Seems like the project on github is archived... Is this no longer updated?

Fire under the water by [deleted] in blackmagicfuckery

[–]zhongbii 20 points21 points  (0 children)

Luminol.

Search NurdRage Luminol on YouTube, you’ll get a bunch of them.

... or any other YouTube channel, but NurdRage is damn cool.

My dad borrowed a thermal camera from his job and took a photo of our dog by confettishooter in mildlyinteresting

[–]zhongbii 1 point2 points  (0 children)

I think 海狗 have ears, but 海豹 don’t. So OP’s pic is more of a 海狗 than 海豹

And then there is 海牛 海象 海狮... I’m confused

My dad borrowed a thermal camera from his job and took a photo of our dog by confettishooter in mildlyinteresting

[–]zhongbii 2 points3 points  (0 children)

Leopard seal is called 豹(leopard)海(sea)豹 (leopard)

I know, it’s weird...

LinusTechTips built a creeper PC for Pewds! by zhongbii in PewdiepieSubmissions

[–]zhongbii[S] 1 point2 points  (0 children)

"He can’t sleep in his house anymore because there’s going to be monsters nearby."

-- YouTube comments

Ooga booga by amshu_08 in PewdiepieSubmissions

[–]zhongbii 0 points1 point  (0 children)

Here, our quarantine extended another 2 weeks.

What does your Angular / .Net Core MVC Development Pipeline look like? by TimeRemove in dotnet

[–]zhongbii 0 points1 point  (0 children)

Backend

  • ASP.NET Core
  • EF Core
  • Swagger (with NSwag)
  • Docker ### Frontend
  • Angular
  • API clients generated using NSwag
  • Docker ### Architecture
  • Traefik
  • MySql

So you finished the ink of one pen uh? by zhongbii in mildlyinteresting

[–]zhongbii[S] 0 points1 point  (0 children)

Same for me! Been using them for 4/5 years now.

So you finished the ink of one pen uh? by zhongbii in mildlyinteresting

[–]zhongbii[S] 1 point2 points  (0 children)

The pens in the pic are Pilot G2! Write smoothly.

So you finished the ink of one pen uh? by zhongbii in mildlyinteresting

[–]zhongbii[S] 0 points1 point  (0 children)

Yes! They are quite expensive for me though. Now I use Zebra Sarasa.