Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  A Sip of Go Log

Logging is indispensable in any code that we need its support both in debugging and in statistics. However, a package that filled withfmt.Println/fmt.Printf printing various messages can never be considered a read-to-be-adopted package, which can be optimized by a simple change, using Golang’s native log package to print information to standard output or to a file.Then, how to apply the log package? Are there any limitations? If so, can we seek open-source packages? Let’s find the answers together.Golang logpackage mainimport "log"func main() { log.Println("Log pri...

1,385 0       GOLANG LOGGING


  Spending Too Much on Your Streaming Services? Read This

Remember the times when we thought ditching the cable TV might be a good idea to save time as well as all that money? Little did we know that platforms like Netflix, Hotstar, Hulu, HBO, Paramount, Disney Plus, and Apple TV Plus together cost more than the cable alone. On the brighter side, there are ways to curb your streaming costs without much sacrifice. Do you want to binge-watch all your favorite shows at much fewer costs? Read on some great tips to save all that streaming costs to watch great content. Identify Which Services to SelectA simple yet effective tip is that you may dr...

2,906 0       NETFLIX STREAMING


  Publish Your Go Package on pkg.go.dev

go.dev is a site where various resources for Go developers are shared, such as “Get Started”, Tutorial, Packages (pkg.go.dev), and all the official blogs. Among them, Packages is where I visit most, which allows free access to all the open-source Go packages submitted by communities including the native Golang packages. Thanks to all the contributors, I enjoy the great benefit, and sometimes I want to be a contributor myself.Let’s submit a “complete” package to pkg.go.dev today.Came pkg.go.dev into beingBefore pkg.go.dev’s birth...

2,146 0       GOLANG PUBLISH PACKAGE GO.DEV


  Start to work with rollup.js to pack JS files

rollup.js is a module bundler for JavaScript. It compiles small piece of JavaScript modules spreading in different files into a single larger standardized ES code file. This post will show some entry level usage for this library.IntroductionNormally a bundler tool would compile a few small JavaScript files into a single JavaScript so that web browser can read, parse and render it properly. A bundler tool may be needed because of a few reasons:Some early stage browsers don't understand modules, the modularized JS codes need to be packed into standard JS code so that browser can understandThe mo...

1,746 0       WEBPACK BUNDLE ES MODULE COMMONJS ROLLUP.JS


  Why Math.min() > Math.max() is true in JavaScript

...

6,292 2       MATH.MAX() MATH.MIN() JAVASCRIPT COMPARISON


  Useful git commands in daily work

In a developer's daily work, it is frequent to see lots of commits made. It would be a headache if one cannot use git commands well especially when in cases where some fixes need to be made on existing branches. There are some frequently used command such as git pull, git merge and git push. Apart from these, there are some other practical commands which may be useful for real use cases. This post will try to list some of them.git grep It will lists all files containing the searched keyword. This is similar to the Linux command grep.git blameIt will list the author and change time of each...

1,513 0       GIT LOG GIT COMMAND GIT


  When and Where to Use Pointers in Go

When declaring variables in Go, we usually have two syntax options: In some scenarios, pointers; in others, reference; sometimes, either. It’s great to have choices, but it is also confusing sometimes as to which one in which scenario.To be more reasonable in choice-making, I started from pointers, walked through their natures, and summarized some rules in using them in Go.from unsplash, Jordan LadikosPointersGo has pointers. A pointer holds the memory address of a value.— from A Tour of GoThe data is stored in the memory when the program runs and each has a num...

2,364 0       POINTER GOLANG


  Alibaba CEO Daniel Zhang is no longer president of Taobao Software Co. Ltd

According to a recent change record from Chinese company registration information portal, the Chinese e-commerce giant Alibaba Group CEO Daniel Zhang is no longer the president of TaoBao Software Co. Ltd. His successor is Shan Dai, who is one of the founders of Alibaba and now Taobao CEO.Along with the change, Daniel also quits as the president of Tmall technology company which is also one of the subsidiaries of Alibaba Group focusing on big brands.Taobao (China) Software Co., Ltd. was established in December 2004 with a registered capital of USD 690 million. Its business scope includes resear...

1,992 0       CEO ALIBABA TAOBAO DANIEL ZHANG