跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

ADVERTISEMENT

搞什麼!怎麼在電腦王教起英文來了呢?是這樣的,在資訊界當中有很多新到字典都來不及收錄的「行話」,讓大家會看卻不會唸。讓黑老師教你正確發音和有趣的典故,不要再說什麼「you吐必」了啦!

Hashtag

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

中譯:無

接下來我們來看看最多才多藝的符號之一:「#」。碰到它的時候你要唸什麼?台灣人會說「井字號」,用電話語音繳罰款的時候也是這麼說的。不過,更時髦一點的唸法是「hashtag」,將它發揚光大的則是Twitter。在你發言的某些字詞冠上「#」號,就變成一個hashtag,例如「#diy」。而其他人看到的會是一個超連結,點選之後可以查看所有內含「#diy」標籤的訊息,達到了分類與群組的功能。

Twitter官方服務當中,就可以從上方大大的探索(discovery)標籤中找到「#」號,按下之後左側的流行趨勢(trends)會列出目前熱門的hashtag。很多時候,hashtag並不是正經八百的分類,而是社群、網友之間的照樣造句、笑話,甚至是以訛傳訛等等專屬於小圈圈裡的文化。

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

▲在Twitter畫面左上方點選「#Discover」,可以查看現在流行的hashtag。

延伸閱讀:

Comment out

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

中譯:註解掉

如果你是一個專業的程式設計師,很幸運地,你的老闆又是一個三心二意,專門用嘴巴遙控你的好人。那麼,今天開發完成的功能,明天又要改回昨天的版本也是稀鬆平常的事。為了讓大家開開心心地繼續工作,把這個新功能先留者、暫時「註解掉」就是個必備的絕招了。如果你想對老闆烙英文,就請跟黑老師一起說:「comment out」。

所謂的註解,就是在程式碼之間加上以特殊代碼開頭或包圍的文字,是寫給自己、或給其他共同開發者看的筆記。當然啦,我們的男主角「#」也在註解符號的行列,適用的程式語言有Perl、PHP、Python等等,其他常見的註解符號還有:

// 我是C語言的註解

/* 

我也是C語言的註解,我可以超過一行

*/

<!--我是HTML的註解,你一定常常看到我-->

# 我是hash符號開頭的註解

C#

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

中譯:無

剛剛「#」符號出現的時候都唸做hash,咱們堂堂微軟老大當然要自創新發音、坐收專利金啊(大誤)。言歸正傳,C#之所以唸成C sharp,是因為這裡的「#」正確寫法應該是「♯」才對,哪裡不一樣?hash符號的垂直線是斜的,相反地,sharp的水平線是斜的、垂直線是直的。C sharp的sharp所取用的是樂譜上的升半音記號,但是因為這個符號很難用鍵盤直接打出來,因此打成hash符號,一般來說是通用的。C#是微軟所開發的程式語言,加上升半音記號,也有象徵比舊有的C++語言更進化的意思。

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

▲不只電腦裡常常出現#符號,到處都看得到的電話鍵盤右下角也都是#。

Fragment identifier

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

中譯:無

另一個常出現hash符號的地方就在每天使用的網址列上,其實短短的網址當中包含了非常多的代碼,這些代碼能夠讓瀏覽器分辨要傳送或抓取什麼資訊。其中以「#」開頭的文字,則是用來提示它的後面有「fragment identifier」。舉例來說:「http://www.aruba.com/aruba.html#step1」依hash符號切兩半,前半段的http://www.aruba.com/aruba.html已經是完整的網址,打開的時候視窗捲軸會停在最上方;而加上step1這個標示之後,瀏覽器則會尋找HTML文件含有「step1」標記的段落,並將捲軸移到這一段所在的位置。

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?

Wiki網站很常出現fragment identifier的連結,例如在目錄裡點選第一個項目「Appearance and Personality」,就會捲到含有「id= "Appearance_and_Personality"」的段落。

 

 

本文同步刊載於電腦王雜誌
 
跟我一起烙行話:C#不是音樂符號嗎?老闆說要Comment out那是甚麼啊?
歡迎加入電腦王雜誌粉絲團
黑眼bobo
作者

寫了超過十年的稿,以後還想繼續寫

使用 Facebook 留言
klarkumar
3.  klarkumar (發表於 2024年11月09日 20:32)
Crypto casinos offer a variety of table games including Blackjack, Roulette, and Baccarat. Players often inquire about the minimum deposit requirement, which varies but generally starts from 0.0001 BTC. The payout speed in crypto casinos typically ranges from instant to 24 hours, depending on the site's policy. Users show interest in the security measures of crypto casinos; these platforms utilize SSL encryption to protect player data. The legality of crypto casinos depends on the user's country of residence, with some countries having clear regulations and others not. Bonuses at crypto casinos often include welcome bonuses, free spins, and loyalty rewards, attracting a broad range of players. Wagering requirements for bonuses in crypto casinos can range from 20x to 50x the bonus amount. Game fairness is ensured through the use of Provably Fair technology, allowing players to verify the fairness of each game outcome. The variety of table games available includes classics like Poker, Craps, and Sic Bo. Crypto casinos support multiple cryptocurrencies for transactions, including Bitcoin, Ethereum, and Litecoin. Transaction fees in crypto casinos are generally low, often absorbed by the platform itself. Customer support in crypto casinos is available through live chat, email, and sometimes phone, providing 24/7 assistance. The registration process at crypto casinos is usually straightforward, requiring only basic information for account setup. The RTP (Return to Player) for table games in crypto casinos can vary widely but generally falls between 95% to 99%. Players often seek information on the maximum withdrawal limit, which varies but can reach up to 10 BTC for some sites. Deposit bonuses in crypto casinos may also include match bonuses where the platform matches the player's deposit up to a certain percentage. No-deposit bonuses are less common but offer players a small amount of cryptocurrency to start playing without needing a deposit. The popularity of live dealer games in crypto casinos is rising due to their immersive experience. Table game tournaments in crypto casinos provide an opportunity for competitive play and additional winnings. Loyalty programs in crypto casinos reward players for their ongoing play with various benefits like cashback and exclusive bonuses. The volatility of cryptocurrencies can affect the value of deposits and winnings in crypto casinos. Some crypto casinos offer mobile apps, enhancing accessibility and convenience for players. Privacy-conscious players appreciate the anonymity provided by crypto casinos, requiring minimal personal information. The software providers for table games in crypto casinos include reputable companies known for their quality games and fair algorithms. Seasonal promotions in crypto casinos coincide with holidays and significant events, offering time-limited bonuses and rewards. Players can find guides and strategies for table games on crypto casino sites, helping them improve their gameplay. Responsible gambling features in crypto casinos include self-exclusion options and support for problem gambling resources. crypto table games site
發表回應
謹慎發言,尊重彼此。按此展開留言規則