Category: Uncategorized
-
Why simple questions in number theory feel inscrutable?
Systematic methods in Calculus help solve huge swath of problems. On the other hand, reading through a book on Number Theory feels like every problem has been solved ad hoc, with ingenious insight, why? Guess: Something to do with how numbers are represented in human brain.
-
এপার বাংলা ওপার বাংলা
নিজস্ব গ্রন্থাগারে আমার যতগুলো বাংলা বই আছে, তার বেশীরভাগের লেখকই ওপার বাংলার অর্থাৎ পশ্চিমবঙ্গের। ওদের লেখায় নতুন নতুন শব্দ পাই। যেমন – গঙ্গার ইলিশ গল্পে ‘ব্লিৎসক্রিগ’, মহাবন্যা গল্পে ‘অভ্রংলিহ’ কিংবা সেই সময়ের ‘নিষ্ঠীবন’। অযথা শব্দবাহুল্য মনে হয় না, বরং এগুলো ভাষাকে এনে দেয় পরিমিত ওজন। স্বল্প পরিসরে অনেক কথা বলা হয়ে যায়। অথবা বর্ননার একঘেয়েমি…
-
গ্রন্থতালিকা
দেখছি, বাংলা লিখতে কেমন লাগে। দেশ শারদীয় গল্পসংকলন আমার প্রিয় বই। ওখানকার কিছু লেখকের বই পরেরবার বাংলাদেশ থেকে নিয়ে আসব। অনলাইনেও কেনা যায়। কিন্তু বইয়ের দোকানে ঘোরাঘুরি করতে ভালো লাগে। আর, যে কটা বই বাসায় আছে, যেমন – রবীন্দ্রনাথ, শরৎ অথবা মুজতবা আলী সমগ্র, সেগুলো তারিয়ে উপভোগ করব আগে। যা হোক, ভবিষ্যতের গ্রন্থতালিকাঃ ১। বিভূতিভূষণ…
-
Python: Generators
Generator is for lazy iteration. Using yield in a function makes it a generator. Like async function, calling a generator does not execute the code. While executing an async function requires say asyncio.run(), a generator executes when it is iterated on say with next(). Normally a generator is consumed by a for loop. finally block in…
-
Python: Decorators
Wrap to alter or enhance the object being wrapped. Like: Function metadata like doc string is now hidden for the wrapped function square. Best practice: @wraps() decorator from functools copies function metadata into the replacement function. When there are multiple decorators, the order might matter: For example: A decorator can accept arguments. The temp above…