Patryk Rogala·Aug 16, 2024Method Visibility in RubyAs a Ruby on Rails backend developer, you’re likely familiar with the ease of developing code in Ruby without worrying about method…
minghx·Jul 12, 2023Rails 筆記 — public、private、protected 方法在 Ruby 裡面 object 的方法有三種 access level:public、private 及 protected
E.Y.·Nov 11, 2020Python Private Field … And JavaScript OnesWhen I first started to learn python, I was confused about the naming conventions for the private fields. Since I have only very faint…
Gourav More·Aug 23, 2020Private Members in JavaScriptAs we all know — JavaScript is the world’s most misunderstood programming language. Some of us believes that — objects cannot have private…
Duy Nguyen·Apr 25, 2020Unit testing private methods in AngularUnit testing in Angular is challenging, especially when it comes to private method testing. There are times when it is so impossible that…
Tamal Chakraborty·Jan 14, 2020Write Rspecs to test request.remote_ip in private method of a controller (Ruby on Rails)Let’s write specs for the following method of ApplicationController. The local_time method will get the time and return local time based…
Kailey(Kyeonga) Lee·Oct 17, 2019Public method vs Private method in RubyIn the world of Ruby, all the methods are either public method or private/protected method. Protected methods act pretty much the same…
Chen·Jul 27, 2019การเขียน Unit Test เพื่อทดสอบ Private Methods ด้วย Reflection ในภาษา C#การเขียน UnitTest เป็นการเขียนเพื่อทดสอบส่วนเล็กๆ ของโปรแกรมเช่น Method ว่าสามารถทำงานได้และได้ผลลัพธ์อย่างที่ควรเป็น ในบางครั้ง Method…