上回用 Java + IntelliJ 來重構一堆 if/else 的計算運費範例,請見:https://www.youtube.com/watch?v=zO-NnNC-xyg&ab_channel=JoeyChen
這次改用 C# + Rider 來重構一樣的例子,不過這次刻意改用 Func
兩種作法適用場景不同,東西夠小夠單純,想要少一點 class/interface 等 elements,可以先這樣做,到真的有需要時,反正對我來說,要從 Func
## Reference
1) Youtube 版影片:https://youtu.be/9rfVe6Uikt0
2) GitHub commit history: https://github.com/tdd-best/strategy-sample-CSharp/commits/refactoring
3) #TDD與持續重構 培訓參考:https://tdd.best/courses/tdd-continuous-refactoring-2021-05/
--
我知道一般人的 Rider 沒有那個「把三元判斷式 自動替換成 Math.Min()」的燈泡,這是我自己刻的。
有興趣嗎?一起來 #極速開發 玩耍吧:https://tdd.best/courses/extreme-developing-202104/
同時也有1部Youtube影片,追蹤數超過12萬的網紅prasertcbs,也在其Youtube影片中提到,แสดงการใช้ string.join() เพื่อเชื่อมสมาชิกแบบสตริงที่อยู่ใน list/tuple เข้าด้วยกัน การใช้ string.replace() เพื่อแปลงค่าเดิมในสตริงให้เป็นค่าใหม่ เช่น ...
「java replace」的推薦目錄:
- 關於java replace 在 91 敏捷開發之路 Facebook 的最讚貼文
- 關於java replace 在 Resepi Mutiara HATI Facebook 的最讚貼文
- 關於java replace 在 陳星合 Facebook 的最佳貼文
- 關於java replace 在 prasertcbs Youtube 的最讚貼文
- 關於java replace 在 Java Replacing multiple different substring in a string at once 的評價
- 關於java replace 在 How to Replace Words Strings Characters in Java - YouTube 的評價
- 關於java replace 在 Java String search and replace [closed] - Code Review Stack ... 的評價
java replace 在 Resepi Mutiara HATI Facebook 的最讚貼文
Resepi Ayam Kurma
Bahan-bahan untuk tumbuk halus:👇
👉3 ulas bawang putih
👉3 biji bawang merah
👉2 inci halia
Bahan-bahan untuk bancuhan rempah👇
👉1 pek rempah kurma/ 3 sudu besar
👉sedikit air
Bahan-bahan untuk ayam masak kurma :👇
👉1/2 ekor ayam
👉1 batang kayu manis
👉2 kuntum bunga lawang
👉4 biji buah pelaga
👉2 kuntum bunga cengkih
👉daun kari
👉1/2 ekor ayam
👉1 batang karot
👉1 biji kentang
👉1 mangkuk kecil santan pekat
👉1 mangkuk kecil santan cair
👉1 biji bawang
👉1 biji tomato
👉2 biji cili hijau, belah 2
👉2 biji cili merah, belah 2
👉3 biji cili padi
👉garam secukup rasa
Cara-cara👇
👉Hiris kasar bawang putih, bawang merah dan halia. Tumbuk halus dalam lesung batu.
👉Panaskan minyak dalam ½ mangkuk kecil. Kita perlukan minyak secukupnya supaya rempah masak dengan sempurna.
👉Tumis rempah 4 sekawan iaitu bunga cengkih, bunga lawang, buah pelaga dan bunga cengkih.
👉Masukkan 1-2 tangkat daun kari. Wangi kalau kita masukkan daun kari dalam tumisan.
👉Setelah itu masukkan bahan tumbuk halus, kacau sehingga kekuningan dan naik bau.
Masukkkan bancuhan rempah kurma ke dalam kuali. Kacau sehingga rempah kering dan pecah minyak.
👉Setelah kering, masukkan sedikit air. Setelah kering kali ke 2, Che Nom tambah sedikit air putih…kalau anda rajin ulang langkan ni sebanyak 2-3 kali sampai rempah kita betul2 masak.
👉Masukkan ayam yang sudah dibersihkan, anggaran ½ ekor.
👉Masukkan karot dan kentang yang dipotong dadu besar
👉Tambah 1 mangkuk kecil santan cair. Kalau anda guna santan kotak, boleh masukkan air putih je pada waktu ni.
👉Masukkan juga 1 biji bawang besar yg dibelah 6.
👉Bila dah agak empuk karot dan kentang, buka penutup kuali dan masukkan santan pekat, anggaran 1 mangkuk kecil.
👉Masukkan tomato yang dibelah 4 tadi, cili merah, cili hijau dan cili padi.
👉Masukkan sedikit air asam jawa. Kalau nak ganti dengan asam keping pun boleh.
Perasakan dengan garam secukupnya.
Dates chicken recipe
Ingredients for a fine punch: 👇
👉 3 Review Garlic
👉 3 pieces of red onion
👉 2 inches of ginger
Ingredients for spice smoothie 👇
👉 1 Packs of dates spice / 3 tablespoons
👉 a little bit of water
Ingredients for chicken cooking dates :👇
👉 1/2 chickens
👉 1 Sticks of cinnamon
👉 2 pieces of lawang flower
👉 4 pieces of cardamom
👉 2 cloves of cloves
👉 Curry leaves
👉 1/2 chickens
👉 1 young carrots
👉 1 potatoes
👉 1 Small bowls of thick coconut milk
👉 1 Small bowls of liquid coconut milk
👉 1 pieces of onions
👉 1 pieces of tomatoes
👉 2 pieces of green chili, SPLIT 2
👉 2 pieces of red chili, SPLIT 2
👉 3 pieces of chili
👉 Salt in taste
Ways 👇
👉 rough slice of garlic, red onion and ginger. Fine Punch in the stone.
👉 heat up the oil in ½ small bowls. We need enough oil so that the spice is perfectly cooked.
👉 Stir-Fry 4 friends which are cloves, lawang flowers, cardamom and cloves.
👉 insert 1-2 arrest of curry leaves. It smells good if we put curry leaves in the both.
👉 after that put in a fine punch material, stir it up to yellow and smell.
Put the spice smoothie into the wok. Stir up until the spice dries up and breaks the oil.
👉 after dry, put in some water. After dry the 2th time, che nom added some white water... if you are diligent to repeat this ledge 2-3 times until the spice we really cook.
👉 put in the cleaned chicken, estimated ½
👉 insert carrots and potatoes with big dice
👉 Add 1 Small bowls of liquid coconut milk. If you use coconut milk box, you can only insert white water at this time.
👉 Insert 1 large onions that are split in 6.
👉 when you're pretty soft carrots and potatoes, open the wok cover and put in thick coconut milk, an estimated 1 Small bowls.
👉 put in the tomato that was split 4 just now, Red Chili, green chili and chili chili.
👉 insert some java sour water. If you want to replace it with asam pieces, you can.
Taste it with enough salt.Translated
java replace 在 陳星合 Facebook 的最佳貼文
麻煩大家幫忙
留下優秀的一家人
他們來自波多黎各
父母親都是名校約翰霍普金大學的電腦碩士
(Master Degree in Computer Science - Johns Hopkins University at Laurel, MD)
他們著五個孩子,到全世界學習
Diego 17歲 Paula 13 歲 Alonzo 12 歲
Felizi 8 歲 Matteo 6 歲
八月,他們到了台灣
發覺這是一個非常適合的生活環境
有好的醫療、中文學習環境、電腦產業、和超好吃的水果
九月,Diego , Paula, Alonzo進入惠文高中寄讀
他們來了之後,學校形成一個很棒的英語學習情境
台灣學生都被迫用英文跟他們互動
星期五與台北歌德學院簽訂德國「PASCH夥伴學校」時
他們三個和學校弦樂社一起合奏卡農(見影片)
非常非常有教養的一家人
然而他們11月就必須離開台灣
因為他們來台灣的第五天
得到美國總公司的通知
他們收掉波多黎各的公司
爸爸Tommy失業了
所以這幾天,他在台中接一個英文家教
但經濟仍是問題
如果台中的朋友可以提供11月4日前的短期英文、西班牙文家教工作
或是提供長期電腦工程師的工作
麻煩和Tommy聯絡
以下是他的聯絡方式及完整資歷
(願意幫他們申請工作簽證更好)
他們很願意把台灣當成第二個家
PS
覺得政府說要把英文變成第二語言
最棒的方式是吸引國外的學生進入我們的校園
在人才即國力的年代
讓優秀的國際人才留在台灣
如果在台灣就有很好的英語學習環境
我們就不用一窩蜂跑到國外
聯絡TOMMY IRIZARRY-SIKES
Contact Information
Postal: Lane 400, Unit 11, Section 2, Nantun Road, Nantun District, Taichung City, Taiwan 408
Email: tirizar@gmail.com
Phone number: 0908 979 417
LinkedIn Profile: http://pr.linkedin.com/pub/tommy-irizarry/25/16/815
孩子的影片
Diego violin in a quartet:
https://youtu.be/ArkvU8Czmk8?t=37s
Diego violin Doble de Bach:
https://youtu.be/LYvnKwEueyA
Diego plays piano Clair de Lune:
https://youtu.be/CWCQMo5XJEY?t=14s
You can see some other videos in this YouTube channel:
https://www.youtube.com/user/tirizar/videos?reload=9
履歷
Summary of qualifications
Software developer for private industries and government agencies. Proficient web developer using classic ASP code, standard html, CSS and SQL Server for data storage. Web server administrator and SharePoint Power User.
Android developer
Certified Ethical Hacker
Programming / Markup languages: HTML, XML, ASP, PHP, CSS, JavaScript/AJAX/JQuery, experience with Java, C++ and C.
Mobile development: Java, Android, Android Studio.
Technologies / Tools: IIS 6.0/7.5, SQL Server, Dreamweaver, Fireworks, Microsoft SharePoint 2007/2010, Microsoft Office suite including InfoPath, Access, Excel, Google Analytics, Google AdSense, Facebook Advertising, Microsoft SharePoint Designer, Inquisite Surveys.
Experience
Since November 2016-current
Enterprise Iron
Principal consultant – Web Developer
Worked on the redesign efforts of the secure site for an international financial client. Applied responsive design principles using the Bootstrap framework while creating modular, reusable components of the code. Analyzed web page dependencies and identified legacy unused pages in the system.
Since November 2015-current
e-Nabler Corporation
Android developer – Professional Services Contract
Developed Java code for the eMobilePOS and Tupyx apps for their Android versions.
Since October 2013-November 2014 TEK Systems
Web Developer / Web Master for the Department of Veterans Affairs in DC
Continued supporting Veteran’s Affairs IT systems, including managing SharePoint 2010 systems and supporting databases. We identified issues with several databases including the management of IIS and SharePoint logs which were consuming many recourses and in a couple of occasions made the systems unavailable.
Enabled and configured space monitoring tools in the SharePoint server farms.
Since November 2011-September 2013 Centuria Corporation
Web Developer / Web Master for the Department of Veterans Affairs in DC
Developed a training registration web site that has been tweaked and used multiple times for different registration purposes, including new telephone system training, and scheduling software upgrades of encryption on laptops and upgrades to Apple Mac OS. The system uses a web front end and a SQL back end.
Performed a routine web server maintenance tasks including monitoring traffic logs, identifying and archiving sites no longer in use, evaluating tools to assist in the management of the web server.
Administered and migrated the FTP server from Windows 2003 Server / IIS 6 into Windows 2008 R2 Server / IIS 7.5. Configured new sites to support general operations within the VA Intranet.
Maintained and enhanced legacy sites, modifying forms and reports in needs to be updated. This includes modification and creation of site in the Enterprise Content Management System used at the VA.
Assisted other team members in various tasks including the creating or modification of surveys in the Inquisite system, and also the migration of some surveys into SharePoint, the modification of an Access application.
December 2001 – August 2011
Systems & System Software Solutions
Web Developer / Web Master for the Department of Veterans Affairs in DC
Mr. Irizarry developed a web based application for the State Home Per Diem Office, which manages millions of dollars in payments to the state homes, to replace an Access database. The Access database was converted to MS SQL Server database and all data was migrated successfully. He created a web based interface using the standard VA intranet look and feel. He also developed a custom interface for each of the 3 roles (CBO, VAMC and VISN). Tools were built for the administrator to view current reports, view missing reports lists, and configure many parameters in the application. The VAMC report form was heavily automated using jQuery to perform auto calculations, increasing data validation and saving time to the users. After the application was launched users commented frequently about how user friendly is the new interface and about the time savings. Tasks that will take 2 hours to be completed now take 15 minutes. We have close to 12,000 reports in the system.
There were various requests to the IT office for a web based training registration system of different types. Mr. Irizarry developed a registration system which was later used for the following projects: Take your child to work day, New Telephone system training registration, Laptop Hard Drive encryption software upgrade among others.
Developed an alternate cascading style sheet for SharePoint 2007, converting the out of the box look and feel to the Department of Veterans Affairs standard website look and feel.
After one of the VA’s laptops was stolen Mr. Irizarry worked to develop a Risk Assessment web based application. He created an Excel template which management will upload to an FTP server with information and details about remote employee access and the sensibility of the data accessed by those users. He also created VB Scripts to validate those Excel files an upload that information into an MS SQL database. Reports for upper management in Central Office were then created which prompted management to enforce stronger security measures, like hard drives encryption. In total more than 500,000 records were processed for the reports.
Administration of IIS 6.0 web server and MS SQL Server databases used in our websites.
Wrote migration scripts to move IIS 6.0 sites into a new IIS 7.5 server
Designed, developed and maintained multi-tier applications for the Veterans Health Administration. Most of the sites access a MS-SQL Server database, use cascade style sheets and ASP server side processing. The sites were developed using Adobe/Macromedia tools like Fireworks, and Dreamweaver.
Installed BlackBerry wireless email devices and trained users on the basic device usage.
Web developer for the Department of Veterans Affairs. Redesigned and modified web pages to make them compliant with the Section 508 guidelines. Tested validation tools that verify if web pages are “Section 508” compliant. Section 508 are guidelines that must be followed by all government agencies and points to which government resources must be make accessible to people with disabilities, i.e. blind, deaf, etc.
November 1999 - December 2001
Compaq Computer Corporation
Consulting Associate II
Design and develop the XOOB (Xevo out of the box) Web user interface. XOOB uses COM+, ASP, XML, XSL and JavaScript to provide a web user interface to the Xevo Workbench Platform based on the role associated with the user. Development was done using Visual Studio tools, IIS and XMLSpy.
Develop Active Server Pages for the Helpdesk solution for the PrimusASP project.
Design and code an ActiveX component that serves as the bridge between the Compaq ASP Framework and the Infranet billing system for Primus. Supported integration with other components of our framework.
Design, code and troubleshoot software for the Primus ASP (Application Service Provider) project. Software includes a DLL and various VB programs that run as NT Services, which are key components of the Compaq ASP framework.
June 1998 – October 1999
National Security Agency
Computer Scientist
Mr. Irizarry worked for as a software developer for the TOKENEER project. TOKENEER is a test platform for the integration of smart cards, biometrics (fingerprint, hand, iris and facial recognition) and a public key infrastructure. Development was done on Windows NT workstations using Visual C++ and Visual SourceSafe for source control. Mr. Irizarry used an SDK to capture and match fingerprints against a database of fingerprints. He also created software to created some statistics of “False Accepts and False Reject Rates” of the fingerprint. He also worked with other team members to identify which fingerprints characteristics could affect those rates. He then added error detection functions to the fingerprint recognition software to identify corrupted files of fingerprint images
Conducted research for methods to add security services to an off-the-shelf computer.
Developed C code to process fax data on an UltraSparc/SunOS station.
Wrote software to generate a daily report of traffic load in a telephone switch by analyzing the switch logs.
Education
Certifications:
Certified Ethical Hacker – 03/28/2014
Master Degree in Computer Science - May, 2001 Johns Hopkin
java replace 在 prasertcbs Youtube 的最讚貼文
แสดงการใช้ string.join() เพื่อเชื่อมสมาชิกแบบสตริงที่อยู่ใน list/tuple เข้าด้วยกัน
การใช้ string.replace() เพื่อแปลงค่าเดิมในสตริงให้เป็นค่าใหม่ เช่น ต้องการแปลงตัวอักษร a ให้เป็น @
ดาวน์โหลดไฟล์ตัวอย่างได้ที่ http://goo.gl/upp3rS
เชิญสมัครเป็นสมาชิกของช่องนี้ได้ที่ ► https://www.youtube.com/subscription_center?add_user=prasertcbs
playlist สอนภาษาไพธอน Python เบื้องต้น ► https://www.youtube.com/watch?v=DI7eca5Kzdc&list=PLoTScYm9O0GH4YQs9t4tf2RIYolHt_YwW
playlist สอนภาษาไพธอน Python การเขียนโปรแกรมเชิงวัตถุ (OOP: Object-Oriented Programming) ► https://www.youtube.com/watch?v=4bVBSluxJNI&list=PLoTScYm9O0GF_wbU-7layLaSuHjzhIRc9
playlist สอน Python 3 GUI ► https://www.youtube.com/playlist?list=PLoTScYm9O0GFB1Y3cCmb9aPD5xRB1T11y
playlist สอนภาษา C++ เบื้องต้น ► https://www.youtube.com/watch?v=_NHyJBIxc40&list=PLoTScYm9O0GEfZwqM2KyCBcPTVsc6cU_i
playlist สอนภาษา C เบื้องต้น ► https://www.youtube.com/watch?v=Z_u8Nh_Zlqc&list=PLoTScYm9O0GHHgz0S1tSyIl7vkG0y105z
playlist สอนภาษา C# เบื้องต้น ► https://www.youtube.com/watch?v=hhl49jwOIZI&list=PLoTScYm9O0GE4trr-XPozJRwaY7V9hx8K
playlist สอนภาษาจาวา Java เบื้องต้น ► https://www.youtube.com/watch?v=O3rW9JvADfU&list=PLoTScYm9O0GF26yW0zVc2rzjkygafsILN
playlist สอนการทำ Unit Test ภาษาจาวา Java ► https://www.youtube.com/watch?v=R11yg8hKApU&list=PLoTScYm9O0GHiK3KNdH_PrNB0G3-kb1Bi
playlist สอนภาษา R เบื้องต้น ► https://www.youtube.com/watch?v=oy4qViQLXsI&list=PLoTScYm9O0GF6qjrRuZFSHdnBXD2KVICp
playlist สอนภาษา PHP เบื้องต้น ► https://www.youtube.com/watch?v=zlRDiXjYVo4&list=PLoTScYm9O0GH_6LARFxozL_viEsXV2wgO
java replace 在 Java String search and replace [closed] - Code Review Stack ... 的推薦與評價
This code of yours is not working, despite your assurances that it is. It replaces just the first occurrence of 'ins', and that should be obvious since you ... ... <看更多>
java replace 在 Java Replacing multiple different substring in a string at once 的推薦與評價
... <看更多>