Microsoft's Visual Studio has a very nice feature called 'refactor'. It replaces the names of a method or function to whatever you rename it. It does contextual search and replace. The same name used in other namespace or scope will not be affected. It alleviates all the troubles associated with renaming. In the end, the code would come up closer to the final products no matter how you change your course of programming.
Visual Studio's C# refactor, however, is not perfect. It replaces the names even when there are the same names within the scope. There is no way to distinguish the variables that has renamed and the existing variables with the same name. That certainly is detectable. As for C++ version of the IDE, there isn't such a function to rename methods and variables with contextual searches.
RP2040 Zero で MicroPython を使う
埋め込み用マイコンでも Python を動かせる MicroPython というものがあります。 リアルタイムでコマンドラインからマイコンを動かせる画期的なシステムなので、ちょっとした感動が味わえます。 使い方としては、まずファームウエアをアップロードしてドライブとして認識さ...
-
Qt はまってます。Mac でも書いたアプリがコンパイルできて、しっかり動くのを確認しました。このあいだ Chitubox が Qt 使ってるのを知ってうれしかったです。 Mac でもそのまま動くんですが、アプリのアイコンの設定はプラットフォーム依存です。 公式マニュアルでも設定...
-
コンデンサマイク 極性があります コンデンサマイクがようやく届きました。モジュールではないのでそのままでは信号が弱いので使えません。信号を増幅する必要があります。 ちょっとした手間ですが、首尾よく動いてくれました。この回路の応用で、使えるマイクが出来ます。 ...
-
PowerBuilder では Time, Date, DateTime などという型があります。 デフォルトの表示形式から変更する場合は String() 関数を使います。 String(Date('1/12/2016'),'yyyy-mm-dd...