Showing posts with label open-office. Show all posts
Showing posts with label open-office. Show all posts

This Week I Learned 2018 - Week 16

Last week post or something from the archive.

看了一套墨西哥的戏,《行走距离》。电影讲述一个三百公斤的胖子,寄托于摄影以解生活的苦闷。间接中,也结交了几位好友,让他生命有所改善。没有惯性的情节,简单不过及现实的故事。健康是宝,平淡是福。

Another week of learning new English vocabulary. One issue with making sentences using these words was that the sentences was either too forceful or too literally (直译的) translated.
Sandy alleviates (缓解) the excruciating pain on her lower body part by elevating both legs into a bucket with warm water. By doing so, they hope it can obliterate (忘却) the pain she was going through. Both legs were swelling due to her falling into liquescent (易液化的) soil and stabbed by tree trunk while trekking in the wood. The swelling have worsen and everyone worry that the muscle may liquefy (使液化) from within. 

Stuck with an interesting MySQL problem, which was quite easy but I can't seem to get it right after several tries. Basically we want to update certain column in t1 to the maximum value from a group of similar records. The SQL query was quite straightforward, just join with the second table, t2 with maximum record with the first table, t1.
UPDATE t_transaction tu
JOIN (
    SELECT code, MAX(flag) AS flag
    FROM t_transaction
    GROUP BY code
) t
ON tu.code = t.code
SET tu.flag = t.flag

Modern backend developer in 2018? (via HN) A checklist and decision making tree are always a good choice to make good decision making when picking up new technology stack.

Perl constant array. Sometimes the simplest and easiest way is the only way instead of going through and abusing quirky Perl syntax.
use constant FRUITS => ['apple', 'orange', 'banana'];

my $fruit = 'apple';
if (!grep $fruit eq $_, @{+FRUITS}) {
    print "Is not a fruit";
} else {
    print "Is a fruit";
}

use constant FRUITS => qw(apple orange banana); 
use constant FRUITS => (apple orange banana);  
my $fruit = 'apple';
if (!grep $fruit eq $_, FRUITS) {
    print "Is not a fruit";
} else {
    print "Is a fruit";
}

Modern PHP without a framework. (via HN) Nah, still hate it after all these years. Maybe I'm just prefer a more prettier programming language.

回顾自己的工作生涯,真的必须自我检讨未来的工作方向,看看那些是自己重视的
所以,你得先釐清有哪些條件是你重視的,像薪水、公司品牌、職位、工作內容等,一一把它寫出來。列出條件後,再排定先後順序,之後,和你手邊的 offer(拿到手的工作)比較,做成表格。縱軸是你重視的條件,並依照先後順序,由上而下排列;橫軸則是你拿到的 offer。當你完成表格後,該選擇的工作就會自動「跳出來」。
當我們在思考應該向哪家公司投遞履歷時,其實已經在篩選公司了,但如果是以「錢多事少離家近」為標準,長遠而言卻未必是最適合自己的公司。所謂「知己知彼,百戰百勝」,此時應該要先釐清自己的需求,包括期望的上下班時間、喜歡的工作環境、想做內勤或外務、理想的管理方式、工作如何分配、會議如何進行、同事如何相處、以及有哪些學習機會等。再依這些喜好排出先後順序,然後評估要應徵哪些公司。
工作上要留下那个”人才“? 当然是人品态度优先,能力可以慢慢去培养。

What are some tech companies that do not use open floor plan? Interesting question for those who are looking to justify cubicles. The office at Fog Creek was in between, open space for collaboration and private office for working.

Data class in Python 3.7. (via HN) What took them so long? Syntactic sugar or not, this should have been in any fundamental data type for any programming that supports OOP.

Vipassana for Hackers. (via HN) A book on how a tech guy perceived and practiced Vipassana meditation without involving religion, just the practice. Contrary to typical meditation book, lots of pictures explaining the core concepts.

Moving for good. (via HN) Good write-up when you're moving to a new place. Key quote here (emphasis added),
Ask lots of questions. Ask them to explain things, and show you how it’s done. When they state a fact, ask how they know. When they state an opinion, ask for examples.
How to be a systems thinker. (via HN) I still can't get my head to understand this and the list of reading materials is quite long. Worth spend time on this? We shall see then.

This Week I Learned - 2017 Week 46

Last week post or something from the archive. For something interesting related to a week, visualize your life in week. How many weeks do you still left?

So much things I've learned and observed this week. Some were the same old same old, others were quite eye opening instead, if you pay close attention.

Encountered this message, "expected, at character offset 2 (before "(end of string)")", when processing the JSON file during encoding. It turned out the root cause is how we use the read_file subroutine in File::Slurp module. Passing the right parameter, you can have multiple ways to either read the whole file or multiple lines. There even a research done on finding the optimized way to do do.

You’re working in the wrong place. (if you’re working in an open office)". When most of the employee are wearing headphones, that sufficiently shows that open floor plan have failed to reach its original intention, which to promote so-called information sharing and collaboration. Why open office don't work? Have you ever been to a library to study? If everyone keeps talking or making noise, do you think you can concentrate on your stuff?

The Amazing $1 Microcontroller. (via HN) The author should have written a book instead of a very lengthy blog post. I agree with the author, it's an exciting time for picking up electronic.

Looping through an array in JavaScript. A simple programming language construct, yet so many ways and workarounds. Add to that, you have JQuery way (.each()) of looping through DOM elements with its own quirk. Not to mention the let vs. var. No wonder so many JavaScript transpilers exists. And I was thinking PHP or Perl was bad, JavaScript is even more mind boggling. Forget about JavaScript, just stick to TypeScript which is gaining momentum these days.

The LEBRON stack. Anyone still remember the MEAN stack? I believe only Node.js survived the hype so far. Something similar, do you know Slack is using PHP for its server-side application logic?

Getting things done? (via HN) There are just two steps. However, till today, I'm still struggle with the execution of the system. Refine and more refine.

1/ Start something simple, the first step.
2/ You can stop if you want to.

Open-office Plan

Mind you, we're not talking about the the office suite but rather about the workplace layout.  Good discussion at HN on supporting and against such arrangement. For me, Pvnick's description of a hybrid environment of open layout and private space is the best combination. You need an open layout to create bonding and increase communication and use private space to get work done without interruption.

Some recommended noise reduction, substitution, or cancellation audo devices from the discussion are:


Will try to look into ATH-M50. reddit/r/headphone has been raving non-stop about this headphone. Is time to start another fund to buy this baby.

Getting Into the Zone

"I'm pretty happy with them. I'm fairly easily distracted by noises: Heavy walking noises, talking, laughing, phones ringing, folks rustling potato chip bags... It can all mess up my concentration if it comes at an inopportune moment. I'm the only programmer here so most of the folks here do not understand how easy it can be to derail someone that's coding when you catch them in the middle of a thought."-- robflynn, emphasis added
Programming is a task that required a lot of cognitive processing. Hence you need to be totally immersed when coding. Any distraction will break your flow and is hard to go back to that state again. This is especially true if your're working in an open-plan office.

Rather than shifting the blame on your surrounding, why not make some adjustment to yourself ? I have been asking the same question for many years. How do you get back into the zone before or after any distraction? I've been trying two ways these days. Pomodoro time management technique and noise isolation devices.

First, Pomodoro technique. Seemed to work for me for the past one year. I always can get back to my last task safely without any issue even I may lost track of things while fire fighting.

Second. Headphone or earmuff. Decided to ditch the headphone approach as you just can't listen to music non-stop. Furthermore, wearing a headphone is not noise cancellation, is noise substitution. I am currently testing earmuff approach but experienced mixed results. There is some form noise isolation but the noise cancellation still a lot to be desired. Compare to a headphone, earmuffs felt tighter, less noisy, and you looks like a flight deck crew on one of those aircraft carriers. Also, is quite difficulty to carry a conversation with other.

In short, will still testing different kind of earmuffs and find the right one that can help me get into the zone as quick as possible.