Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/default-filters.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-theme.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/class-wp-styles.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/class-wp-rest-request.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-settings-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1

Warning: Uninitialized string offset 0 in /home/ujjal/public_html/blog/wp-includes/block-supports/duotone.php on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/ujjal/public_html/blog/wp-includes/default-filters.php:1) in /home/ujjal/public_html/blog/wp-includes/feed-rss2-comments.php on line 8
Comments for Diary of Ujjal https://blog.ujjal.net Software Development Lead, Very good listener, Tech enthusiastic, Movie & Series freak Sun, 25 Jun 2023 21:33:56 +0000 hourly 1 https://wordpress.org/?v=6.2.6 Comment on রেগুলার এক্সপ্রেশনঃ উপকারিতা ও ব্যবহারিক প্রয়োগ (Importance and practical use of Regular Expression) by twicsy reviews https://blog.ujjal.net/?p=320#comment-536 Sun, 25 Jun 2023 21:33:56 +0000 http://ujjalruet.wordpress.com/?p=320#comment-536 I got this web page from my friend who told me about this web page
and now this time I am browsing this site and reading very
informative articles or reviews at this time.

]]>
Comment on সফটওয়্যার ডিজাইন নীতি (Software Design Principles) by Minhaz https://blog.ujjal.net/?p=359#comment-535 Thu, 11 Aug 2022 19:42:20 +0000 http://blog.ujjal.net/?p=359#comment-535 ভাই পরবর্তী পোস্টগুলা কুতায়?

]]>
Comment on রেগুলার এক্সপ্রেশনঃ উপকারিতা ও ব্যবহারিক প্রয়োগ (Importance and practical use of Regular Expression) by CBD oil for sale https://blog.ujjal.net/?p=320#comment-528 Sat, 10 Apr 2021 17:40:24 +0000 http://ujjalruet.wordpress.com/?p=320#comment-528 I have read so many articles or reviews on the topic of the blogger lovers but this paragraph is really a pleasant paragraph,
keep it up.

]]>
Comment on Preparation for becoming a good Software Engineer/Developer by ujjal https://blog.ujjal.net/?p=415#comment-34 Sat, 03 Feb 2018 16:44:36 +0000 http://blog.ujjal.net/?p=415#comment-34 In reply to kiron.

You are welcome

]]>
Comment on Preparation for becoming a good Software Engineer/Developer by kiron https://blog.ujjal.net/?p=415#comment-33 Fri, 02 Feb 2018 20:08:40 +0000 http://blog.ujjal.net/?p=415#comment-33 Nice and thanks

]]>
Comment on বুলিয়ানোলজি, বিড়ম্বনা ও শিক্ষা (Branching with if(condition) ; should have at lease one else statement) by ujjal https://blog.ujjal.net/?p=372#comment-32 Sat, 03 Sep 2016 11:59:05 +0000 http://blog.ujjal.net/?p=372#comment-32 In reply to Md. Minhazul Haque.

I just found that I was not clear enough to describe the situation here. Let me explain again. I am going to take your code snippet as an example here:

[code=”pseoducode”]
function init(){
branch = “master”
}
function updateBranchName(string newName)
{
if not isempty(newName)
branch = newName
}

int main() {
init();
updateBranchName(“master/add-option-for-select-icons-in-pref”);
updateBranchName(“”); // updateBranchName will be called from different seprate thread.
return 0;
}
[/code]

As you have written, the initialization was in the same method. That is a good approach obviously. But my situation arrived when initialization was in separate method. Yes, what you have suggested is the best approach and we should always follow that one. So, both of following two approach are ok.

[code = “approach1”]
function updateBranchName(string newName)
{
branch = master
if not isempty(newName)
branch = newName
}
[code]

[code = “approach2”]
function updateBranchName(string newName)
{
branch = string.empty;
if not isempty(newName)
branch = newName
else
branch = master
}
[code]

]]>
Comment on বুলিয়ানোলজি, বিড়ম্বনা ও শিক্ষা (Branching with if(condition) ; should have at lease one else statement) by Md. Minhazul Haque https://blog.ujjal.net/?p=372#comment-31 Sun, 21 Aug 2016 12:27:07 +0000 http://blog.ujjal.net/?p=372#comment-31 দুটা উদাহরণই মজার। বিশেষ করে ২য়টা। তবে অনেক ক্ষেত্রে আমি এইরকম কাজ করি।

branch = “master”
if not isempty(argv[1])
branch = argv[1]

অর্থাৎ কাস্টম প্যারামিটার দিলে branch এর ভ্যালু বদলাবে, নাতো master ই থাকবে। এটা মানছি যে else ব্লক দিলে রিডেবল বেশী হবে এবং এরর হবার চান্স কম। কিন্তু সেক্ষেত্রে branch এর ভ্যালু অযথা ২য়বার সেট হচ্ছেনা? অথবা এরকম করা যেতে পারে।

branch =

if not isempty(argv[1])
branch = argv[1]
else
branch = “master”

এখানে শুরুতে ভেরিয়েবল জাস্ট ডিক্লেয়ার হবে, পরে ভ্যালু সেট করলাম। আপনারা বাস্তবে প্রজেক্টের ক্ষেত্রে এইরকম সিচুয়েশনে কি স্টেপ ফলো করেন জানালে উপকৃত হব।

]]>
Comment on রেগুলার এক্সপ্রেশনঃ উপকারিতা ও ব্যবহারিক প্রয়োগ (Importance and practical use of Regular Expression) by Ujjal https://blog.ujjal.net/?p=320#comment-30 Mon, 24 Nov 2014 07:24:32 +0000 http://ujjalruet.wordpress.com/?p=320#comment-30 In reply to howtocode.com.bd.

ধন্যবাদ।

]]>
Comment on রেগুলার এক্সপ্রেশনঃ উপকারিতা ও ব্যবহারিক প্রয়োগ (Importance and practical use of Regular Expression) by howtocode.com.bd https://blog.ujjal.net/?p=320#comment-29 Mon, 24 Nov 2014 06:44:18 +0000 http://ujjalruet.wordpress.com/?p=320#comment-29 Reblogged this on সবার জন্য প্রোগ্রামিং.

]]>
Comment on Starting TOPCODER by Programming,Mathematics and Newbies | Me, when programming https://blog.ujjal.net/?p=80#comment-14 Mon, 18 Nov 2013 06:39:59 +0000 http://ujjalruet.wordpress.com/?p=80#comment-14 […] are some others OJs. *SPOJ *Light OJ *Topcoder […]

]]>