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.
Laravel サイトのアップグレード
Laravel のサイトをアップグレードする機会がありましたので、その方法をここで書いておきたいと思います。かなり構成というか書き方が変わってきているので注意が必要です。 1. 新しいLaravelプロジェクトの作成 まずはクリーンなLaravel環境を作成します。 compo...
-
Qt はまってます。Mac でも書いたアプリがコンパイルできて、しっかり動くのを確認しました。このあいだ Chitubox が Qt 使ってるのを知ってうれしかったです。 Mac でもそのまま動くんですが、アプリのアイコンの設定はプラットフォーム依存です。 公式マニュアルでも設定...
-
コンデンサマイク 極性があります コンデンサマイクがようやく届きました。モジュールではないのでそのままでは信号が弱いので使えません。信号を増幅する必要があります。 ちょっとした手間ですが、首尾よく動いてくれました。この回路の応用で、使えるマイクが出来ます。 ...
-
Flask/SQLAlchemy 使ってる方、jinja で困ってませんか? 本体で Python の関数を書いてもいいんですが、テンプレートでも関数が呼べます。 日付を出したい場合、フォーマットなら strftime() が使えます。 わざわざ文字列を作って渡す必...