Skip to content

Home

在技術角色中的有效領導力

作為一名軟件工程師,你可能最終會提升到領導職位。然而,你很快就會發現,僅憑技術專業知識並不足以在科技行業取得成功。您還必須每天管理各種問題和危機。壞消息是,你最初可能並不具備有效領導團隊所需的管理質素。好消息是,擁有開放的思維和持續學習,你可以隨著時間的推移發展這些技能。

首先,你需要理解基本的領導原則。作為一名初級成員,你的重點主要是完成分配的任務。隨著你在職位中的提升,你需要承擔更大的責任,參與跨功能團隊活動,接手項目管理職責,並考慮公司的整體策略。"主管"這個頭銜是什麼意思?這意味著提供方向,知道您的目的地,並引導他人前往。因此,我的建議是保持好奇心。嘗試理解您公司的決策過程,並始終對學習和提問保持開放的態度。

成為一名領導者並不一定意味著要強勢或極度外向。研究顯示,有六種不同的領導風格,每種風格適合不同的情況。這些包括:

  1. 強制型領導 - 在危機中有效。
  2. 權威型領導 - 通過願景激勵他人。
  3. 附屬型領導 - 著重團隊團結。
  4. 民主型領導 - 建立共識。
  5. 教練型領導 - 致力於個人成長。
  6. 節奏型領導 - 設定績效標準。

理解你的領導風格可以幫助你適應各種場景。沒有一種通用的解決方案;您需要根據團隊在不同階段的需求調整您的風格。

要成為一個有效的領導者,你必須了解自己和你的團隊成員。每個成員都有他們自己的優點和弱點,你的角色是指導團隊實現其目標。這涉及到設定目標,建立一個團結的團隊,清晰地溝通,並與利益相關者協作。在解決內部衝突時,公正至關重要。認可和獎勵積極的貢獻,同時解決任何對團隊產生負面影響的問題。首先,通過身教來領導。你的行動比你的話語更響亮,使你成為他人的榜樣。

管理一個團隊需要能力和情商。您需要理解每個成員的獨特需要並處理團隊內各種工作風格、關係和衝突。你的溝通應該是正式和尊重的,樹立起互相尊重和合作的環境。

要成為科技行業的領導者,您不僅需要技術技能,還需要有看到未來的能力,展現決心,展示誠信和承諾,散發自信,並能有效地溝通。除此之外,您應該展現創造力,激勵您的團隊,促進合作,並保持真實。

我希望您會發現本文對於發展成為一個有效領導者所需的自我覺察能力有所幫助。在某些時候,你需要挺身而出,特別是當緊急問題出現時。你不必等待上級的許可,他們可能並不最適合處理這種情況。主動尋求你需要的資源。記住,人們常常過於聚焦於他們自己的責任而忽視了你的需求。鑑於全球領導力的短缺,我鼓勵你主動出擊,應對我們所有人所面對的迫切挑戰。

The Importance of Communication as a Software Developer

Let me explain why software developers need to be good communicators. Although it may seem self-evident, this skill will significantly impact your career. I say this from personal experience, having learned the hard way. As a team leader, your communication skills are essential during job interviews, progress reviews, and appraisals. You don't want to place yourself at a competitive disadvantage. There are numerous situations where good communication skills are critical, including:

How to Conduct a Good Demo: When designing and building a product, you must regularly demonstrate completed work to your team and key stakeholders. In Agile software development, sprint demos are integral to every iteration. Regardless of the product you’re building—be it an app, a website, or even a physical item—well-executed demos improve cross-team collaboration, build trust with stakeholders, boost team morale, and allow the team to adapt based on feedback and change. This is true even for more challenging subjects like APIs and back-end services.

Working in Cross-Functional Teams: We help organizations build products and services that meet the rapidly changing demands of their industries. Regular product demos are essential for our cross-functional teams, client product owners, engineers, and designers to communicate effectively, celebrate progress, and deliver value quickly.

In this chapter, I've gathered insights on why demos are important, along with tips for running great ones.

Demos Help Us Build Better Products: Regular demos provide a short feedback loop, allowing teams to adjust quickly and ensure they're building the right product. They also surface dependencies or duplicate efforts early, highlighting opportunities for collaboration across broader programs.

Improving Team Morale: We run a bi-weekly team demo on my current project. These sessions often lead to cross-team discussions about previously unconsidered issues, enabling quick resolutions before they become blockers.

Feedback Is Essential: Don't hesitate to refine your demo format based on feedback, ensuring maximum benefit for both your team and stakeholders.

Strengthening Stakeholder Relationships: Demos help in engaging stakeholders in the development process, thereby building trust and showcasing incremental delivery of valuable working software.

Team Development: Demos allow team members to develop presentation skills and interact more closely with stakeholders. They offer a rare chance for developers, especially those in early career stages, to hone their presentation skills.

Some Tips for Running Great Product Demos:

  • Zoom Out: Always provide context. Make sure to set the scene and focus on user benefits.
  • Tell a Story: Keep the audience engaged by sharing challenges you've overcome and what you've learned.
  • Go Slow, Keep It Simple: Present at a pace that the audience can follow and avoid jargon.
  • Preparation Is Key: Always rehearse and have your demo set up in advance to maintain audience engagement.

In summary, good communication is vital. Engage in meaningful conversations and share valuable perspectives. Maintain a positive attitude to build confidence, especially if you're introverted.

For public speaking, imagine you're talking to a friend. Be genuine and listen to your audience. Remember, how you say something is often more memorable than what you say. Speak slowly, especially if English is not your first language. These tips have worked for me, and I hope they will for you too. Next time, speak with intention, slow down, and breathe. Let me know what you think, and perhaps we can collaborate now that you understand the importance of communication better.

作為軟體開發人員的溝通重要性

讓我解釋為什麼軟體開發人員需要有良好的溝通能力。盡管這似乎是不言而喻的,但這個技能對你的職業生涯影響極大。作為一名團隊領導,你的溝通技巧在工作面試、進度評估和評價中都非常重要。你絕對不希望自己在競爭中處於劣勢。有許多情況下,良好的溝通技巧至關重要,包括:

如何進行良好的示範:在設計和構建一個產品時,你必須定期向你的團隊和主要的利害關係人展示已完成的工作。在敏捷軟體開發中,每個迭代都是不可或缺的。無論你正在構建什麼產品——無論是一個應用程序、一個網站,還是一個實物——精心執行的演示會改善跨團隊的協作,建立與持份者的信任,提高團隊士氣,並允許團隊根據反饋和變化進行調整。即使對於像API和後端服務這樣更具挑戰性的主題,這一點也是如此。

在跨功能團隊中工作:我們幫助組織建立產品和服務,以滿足他們所處行業的快速變化需求。我們的跨功能團隊、客戶產品擁有者、工程師和設計師需要定期進行產品演示,以有效地溝通、慶祝進步,並快速提供價值。

在這一篇文章中,我收集了為什麼演示重要以及如何進行出色演示的見解和技巧。

演示幫助我們建造更好的產品:定期的演示為團隊提供了一個短期的反饋迴圈,讓團隊能夠快速調整並確保他們正在建造正確的產品。他們也提前將重複的努力或依賴關係表面化,突出了廣泛項目中跨區域合作的機會。

提高團隊士氣:我們在當前的項目中每兩週進行一次團隊演示。這些會議通常會引導出跨團隊對以前未考慮過的問題的討論,從而在問題成為障礙之前快速解決。

反饋至關重要:不要猶豫根據反饋來調整你的演示格式,確保你的團隊和利害關係人都能受益。

強化與持份者的關係:演示有助於吸引持份者參與開發過程,從而建立信任並展示有價值的軟體逐步交付。

團隊發展:演示讓團隊成員有機會提升演示技巧並與利害關係人更密切互動。它們提供了一個千載難逢的機會讓開發者,特別是那些處於職業生涯初期的人,來磨練他們的演示技巧。

一些進行出色產品演示的技巧:

  • 放大視野:總是提供上下文。確保設置場景並專注於用戶利益。
  • 講一個故事:通過分享你已經克服的挑戰和你所學到的東西來吸引觀眾。
  • 慢下來,保持簡單:以觀眾能跟上的速度演示,並避免行話。
  • 準備得足是關鍵:要始終排練並預先準備好你的演示,以保持與觀眾的互動。

總的來說,良好的溝通至關重要。進行有意義的對話,分享有價值的觀點。保持積極的態度來建立自信,特別是如果你是內向的。

至於公開演講,想像你正在跟朋友聊天。要真誠,聆聽你的觀眾。記住,你怎麼說一些事情通常比你說什麼更具有紀念性。尤其是如果英語不是你的母語,說話要慢。這些技巧對我有用,我希望對你也有用。下次,帶著目的說話、放慢速度、並深呼吸。讓我知道你的想法,或許現在你理解溝通的重要性,我們可以合作。

Setting Up Auto-Formatting for Python in Visual Studio Code

I was writing Python code and encountered issues with formatting. These formatting problems can complicate code reviews and the use of automated tools to detect such issues. Fortunately, life becomes much easier when you integrate a formatter into your code editor to automatically fix those issues upon saving. Here's how to do it:

  1. First, install Google's yapf formatter:

pip install yapf

  1. Next, open your Visual Studio Code editor. Press “Command + Shift + P” if you're using a Mac, or “Ctrl + Shift + P” if you're on Linux. Type "Open settings (JSON)" in the search bar and add the following line:

"python.formatting.provider": "yapf"

  1. If you want your code to auto-format upon saving, rather than merely receiving tips within the editor, add this setting as well:

"editor.formatOnSave": true

  1. Optionally, if you wish to use your project's .style.yapf instead of the global styles, add the following line:

"python.formatting.yapfArgs": ["--style", ".style.yapf"]

Now you can test the auto-formatting feature. For example, if you don't have a new line at the end of your Python file and then you save it, the formatter will automatically correct this issue for you.

在Visual Studio Code中設定Python的自動格式化

我正在寫Python代碼,並遇到了格式化問題。這些格式問題可能會使代碼審查變得複雜,並對使用自動工具來檢測這些問題產生影響。幸運的是,當你將格式化工具集成到您的代碼編輯器中以在保存時自動修復這些問題時,生活會變得容易許多。這就是如何做的:

  1. 首先,安裝Google的yapf格式化工具:

pip install yapf

  1. 接著,打開你的Visual Studio Code編輯器。如果你使用的是Mac,按“Command + Shift + P”,如果你在Linux上,按“Ctrl + Shift + P”。在搜索欄中輸入"Open settings (JSON)"並添加以下行:

"python.formatting.provider": "yapf"

  1. 如果你希望你的代碼在保存時自動格式化,而不僅僅是在編輯器內部接收提示,也可以添加這個設置:

"editor.formatOnSave": true

  1. 如果你希望使用你的項目的.style.yapf而不是全局樣式,則添加以下行:

"python.formatting.yapfArgs": ["--style", ".style.yapf"]

現在你可以測試自動格式化功能。例如,如果你的Python文件末尾沒有新行,然後你保存它,格式化工具將自動為你修正這個問題。

How to Install Ubuntu Desktop on an AWS Instance Using Chrome Remote Desktop

In today's cloud-centric world, many resources have been moved to the cloud—photos, files, and servers among them. So why not your desktop environment? Imagine not needing to carry a heavy laptop. You could access your computing power from any thin client, such as a tablet with a keyboard, from anywhere. This is achievable using an AWS instance combined with Ubuntu Desktop and Chrome Remote Desktop. While there are other solutions like AWS Workspace or VNC connection, Chrome Remote Desktop offers the lowest latency and performance closest to a native desktop. Here's how to set it up:

  1. Log in to the AWS console and launch an instance using the Ubuntu Server AMI.

  1. Once the instance is launched, SSH into your Ubuntu server. Update the package manager and install wget:

sudo apt update sudo apt-get install --assume-yes wget

  1. Download the Chrome Remote Desktop package and install it:

wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb sudo dpkg --install chrome-remote-desktop_current_amd64.deb sudo apt install --assume-yes --fix-broken

  1. Install the desktop GUI environment.

After testing various distributions, I found that Xfce performs best, especially over slow networks:

sudo DEBIAN_FRONTEND=noninteractive apt install --assume-yes xfce4 desktop-base

  1. Configure Chrome Remote Desktop to use Xfce by default:

sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'

  1. Install xscreensaver as an alternative to the default Xfce locker, which is not compatible with remote desktop:

sudo apt install --assume-yes xscreensaver

  1. Disable the display manager, as there is no display connected:

sudo systemctl disable lightdm.service

  1. Add your user account to the Linux group and then log out:

sudo usermod -a -G chrome-remote-desktop $USER logout

  1. On your local laptop browser, open Chrome Remote Desktop's Headless Mode. Follow the steps to set up another computer. You will probably copy a command similar to this into your AWS instance:

DISPLAY= /opt/google/chrome-remote-desktop/start-host --code="4/xxxxxxxxxxxxxxxxxxxxxxxx" --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=

  1. Finally, you can remotely connect to your Ubuntu desktop.

    Extra tip: You can display a screensaver, although it's not necessary.

You can now access your desktop environment from anywhere, using any device. This setup is especially useful for software engineers who want access to a full set of development tools at all times.

如何使用Chrome遠程桌面在AWS實例上安裝Ubuntu桌面

在如今以雲端為中心的世界中,許多資源已被移至雲端,例如相片、檔案和伺服器等。那麼為何不將您的桌面環境也移到雲端呢?想像一下,不再需要帶著一台重型筆記本。您可以從任何薄型客戶端(例如帶有鍵盤的平板)在任何地方訪問您的計算能力。透過AWS實例,結合Ubuntu桌面和Chrome遠程桌面就可以實現這一點。雖然還有其他解決方法,如AWS工作區或VNC連接,但Chrome遠程桌面提供的延遲最低且性能最接近原生桌面。以下是如何設置的方法:

  1. 登錄AWS控制台,並使用Ubuntu Server AMI啟動一個實例。

  1. 實例啟動後,SSH登錄到您的Ubuntu服務器。更新包管理器並安裝wget:

sudo apt update sudo apt-get install --assume-yes wget

  1. 下載Chrome遠程桌面套裝軟體並安裝它:

wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb sudo dpkg --install chrome-remote-desktop_current_amd64.deb sudo apt install --assume-yes --fix-broken

  1. 安裝桌面GUI環境。

在測試了各種不同的發行版本後,我發現Xfce在網路較慢的情況下表現最佳:

sudo DEBIAN_FRONTEND=noninteractive apt install --assume-yes xfce4 desktop-base

  1. 配置Chrome遠程桌面預設使用Xfce:

sudo bash -c 'echo "exec /etc/X11/Xsession /usr/bin/xfce4-session" > /etc/chrome-remote-desktop-session'

  1. 安裝xscreensaver作為預設的Xfce鎖屏程序的替代品,因為它不與遠程桌面兼容:

sudo apt install --assume-yes xscreensaver

  1. 禁用顯示管理器,因為沒有連接的顯示器:

sudo systemctl disable lightdm.service

  1. 將您的用戶賬戶添加到Linux群組,然後註銷:

sudo usermod -a -G chrome-remote-desktop $USER logout

  1. 在您的本地筆記本瀏覽器上,打開Chrome遠程桌面的無頭模式。按照步驟設置另一部電腦。您可能會在您的AWS實例中複製此類命令:

DISPLAY= /opt/google/chrome-remote-desktop/start-host --code="4/xxxxxxxxxxxxxxxxxxxxxxxx" --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=

  1. 最後,您可以遠程連接到您的Ubuntu桌面了。

    額外的提示:您可以顯示屏幕保護程序,儘管這並不必要。

您現在可以使用任何設備,從任何地方訪問您的桌面環境。這種設置對於隨時需要訪問完整開發工具集的軟體工程師特別有用。

How to Install Ubuntu on an External Drive Using macOS

If you're using Mac hardware but also want to run Ubuntu, you can install Ubuntu on an external hard drive without risking the removal of your macOS installation. Here's how to do it without messing up your bootloader:

  1. Plug in your external SSD/HDD. Open Disk Utility and format it to MS-DOS (FAT).

  2. Open a Terminal window and run: diskutil list

This will help you find your external hard drive's IDENTIFIER, e.g., disk2 in this example.

  1. Download and install VirtualBox: VirtualBox Website

  2. Run the two commands below and start VirtualBox with admin rights:

sudo VBoxManage internalcommands createrawvmdk -filename bootcamp.vmdk -rawdisk /dev/disk2 sudo /Applications/VirtualBox.app/Contents/MacOS/VirtualBox

  1. Select "New" and then click on "Expert Mode." Choose "Use an existing virtual hard disk file."

  1. In the "System" tab, check the box for "Enable EFI (special OSes only)."

  2. In the "Storage" tab, mount the Ubuntu ISO file to the virtual machine. You can download the Ubuntu ISO file from here.

  3. Start the virtual machine and proceed with the Ubuntu installation.

  4. Once the installation is complete, you'll be ready to boot from the drive. For Mac, you'll also need to reduce the Security level and allow booting from external media. To do this, press and hold Command-R immediately after you see the Apple logo to start macOS recovery.

  5. Restart your Mac again and press the Option key. You can now choose your drive with the EFI label.

Enjoy using Ubuntu on Apple hardware! Note that you might have to sort out some driver issues, but hopefully, this guide makes the process easier for you.

如何使用macOS在外部驅動器上安裝Ubuntu

如果你在使用Mac硬體,但也想要運行Ubuntu,你可以在外部硬碟上安裝Ubuntu,而不會冒著刪除你的macOS安裝的風險。下面是如何在不搞砸你的引導裝載器的情況下進行操作:

  1. 將你的外部SSD/HDD插入。打開磁碟工具並將其格式化為MS-DOS(FAT)

  2. 打開終端窗口並運行: diskutil list

這將幫助你找到你的外部硬碟的標識符,例如,在這個示例中是disk2。

  1. 下載並安裝VirtualBox: VirtualBox網站

  2. 運行以下兩條命令並以管理員權限啟動VirtualBox:

sudo VBoxManage internalcommands createrawvmdk -filename bootcamp.vmdk -rawdisk /dev/disk2 sudo /Applications/VirtualBox.app/Contents/MacOS/VirtualBox

  1. 選擇“新建”然後點擊“專家模式”。選擇“使用現有的虛擬硬碟文件。”

  1. 在“系統”標籤中,勾選“啟用EFI(僅限特殊OS)”。

  2. 在“儲存”標籤中,將Ubuntu ISO文件掛載到虛擬機。 你可以從這裡下載Ubuntu ISO文件。

  3. 啟動虛擬機並進行Ubuntu安裝。

  4. 一旦安裝完成,你就可以從驅動器啟動了。 對於Mac,你也需要降低安全級別並允許從外部媒體啟動。要做到這一點,在你看到蘋果標誌後立即按住Command-R以啟動macOS恢復。

  5. 重新啟動你的Mac並按住選項鍵。你現在可以選擇你的驅動器擁有EFI標籤。

享受在Apple硬體上使用Ubuntu!請注意,你可能需要解決一些驅動問題,但希望這個指南能讓你的過程更容易。

How to Fix the "Access Denied" Error in an AWS Amplify Angular App

When you deploy your Angular app on AWS Amplify, the first landing page loads without any issues. However, if you have defined a path in your router and attempt to access it, you may encounter an "Access Denied" error:

To resolve this issue, navigate to the AWS Console and select "Rewrites and Redirects." Next, add a new rewrite and redirect rule. Click on "Open Text Editor" and insert the following rule:

[
  {
    "source": "</^[^.]+$|\\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf)$)([^.]+$)/>",
    "target": "/index.html",
    "status": "200",
    "condition": null
  }
]

After adding this rule, try accessing your URL again. It should work as expected now.