Jubayer Alam

Small Space, Big Dream

Menu
  • Home
  • Reflections
  • Knowledge
    • Learning
    • Feature
  • Contact
Menu
refresh-recall-python

Refresh. Recall. Python.

Posted on August 1, 2025August 1, 2025 by Jubayer Alam

Python is a powerful and flexible programming language used in everything from web development and automation to data science and artificial intelligence. Its simplicity and readability make it accessible to beginners, while its depth keeps professionals engaged. But as with any skill, if you don’t practice it regularly, it can begin to fade.

If you’ve been away from Python for a while, this blog post is your quick refresher which covering the most important core concepts through both theory and practical examples. Let’s dive back in and bring your Python skills back to life.


Variables

A variable in Python is simply a name that points to a value in memory. Variables must:

  • Start with a letter or underscore
  • Only contain letters, numbers, or underscores
  • Be case-sensitive (Name and name are different)
  • Not conflict with reserved keywords like if, class, or def

Two common naming conventions:

  • snake_case: Preferred for variable and function names
  • camelCase: Less common, but valid

Numbers

Python supports several numeric types:

  • Integers (e.g., 10)
  • Floats (e.g., 3.14)
  • Scientific notation (e.g., 1.2e3 interpreted as 1200.0)
  • Binary representation (e.g., bin(9) gives '0b1001')

Note: "3320" is a string, not a number, because it’s enclosed in quotes.


Strings

Strings are ordered sequences of characters and can be manipulated in many ways:

  • Indexing starts at 0
  • Use .title() to capitalize each word: "hello python!" → "Hello Python!"
  • Check substrings with "Candy" not in text
  • Use len() to get string length
  • Combine slicing and replacing:
    string[:4].replace("Soft", "Skill") gives "Skill" from "Software"

Lists

Lists are ordered and mutable, meaning you can change their contents. They can hold any data type — even a mix.

Examples:

  • Slicing: movies[-3:] gives the last three items
  • Concatenation: list1 + list2 combines both into a new list

Lists are great for storing collections, manipulating sequences, and organizing data.


Conditionals

Conditionals control the flow of logic:

  • Use if, elif, and else
  • Use the ternary operator:
    grade = "A" if score >= 80 else "B"
  • Check ranges:
    if bp >= 80 and bp <= 120:
  • Compare values:
    if company != 'banana':

These help in making decisions within programs.


Loops and Control Flow

Loops allow repetitive tasks:

  • range(1, -6, -2) gives 1, -1, -3, -5
  • continue skips the current iteration
  • while loops run as long as a condition is true
  • Use counters inside loops for tasks like counting non-fraud entries in a dataset

These structures make your code efficient and reduce redundancy.


Functions

Functions are reusable blocks of code that perform specific tasks:

  • Defined using def keyword
  • If no return, Python returns None by default
  • Promotes modular and readable code

Example:

def greet(name): return f"Hello, {name}!"

Dictionaries and Tuples

  • Dictionaries store key-value pairs
    Use .items() to iterate through them
    Access nested values like: salaries['php']['senior']
  • Tuples are similar to lists but immutable
    You can’t change their values once created

Dictionaries are great for labeled data, while tuples are useful for fixed collections.


Modules and Imports

Modules let you organize code into multiple files:

  • To reuse a function from calculate.py:
    import calculate result = calculate.multiply(3, 5)
  • Use the import keyword to bring in built-in or custom modules

Modular code is easier to manage, test, and reuse.


File Handling

Python makes reading and writing files simple:

  • Use .close() to ensure data is saved and the file is released
  • Open a file in append mode with:
    open("file.txt", "a")
  • Use .readlines() to read multiple lines
  • Avoid invalid modes like xr; use valid ones:
    'r', 'w', 'a', 'x', and combinations with 'b' or '+'

File handling is essential for data storage and interaction with external files.


Classes and Special Methods

Python supports object-oriented programming through classes:

  • __init__() is the constructor
  • __str__() defines string representation
  • __ne__() allows customizing !=
  • self refers to the current instance of the class

Example:

class Car: def __init__(self, model): self.model = model def __str__(self): return f"My car is a {self.model}"

Inheritance and Object-Oriented Concepts

Inheritance allows a class to inherit attributes and methods from another:

  • A subclass can override parent methods
  • Use super() to call the parent class constructor

Example behavior:

Starting the car ... Three Class is being driven.. Stopping the car ...

This promotes code reuse and logical hierarchy.


Exception Handling

Python handles errors using try, except, and finally:

  • try: code that might fail
  • except: handles the error
  • finally: always runs, ideal for cleanup

Example:

try: result = x / int(y) except Exception as e: print("Error:", e) finally: print("Done")

This ensures your programs are robust and user-friendly.


Take a few minutes each day to write small programs, revisit forgotten concepts, and most importantly keep coding. Python is easy to return to, and the more you practice, the more confident and capable you’ll become. You can find practical examples and practice code based on the above concepts in the following GitHub repository.

Explore the examples and start practicing here:
GitHub Repo: https://github.com/jubayer98/refresh-recall-python

These code samples align with each topic covered: from variables and loops to functions, file handling, and object-oriented programming and making it easier to apply what you’ve just refreshed.

Happy Coding!

Redux Toolkit + TypeScript Starter Guide

Posted on July 2, 2025July 2, 2025 by Jubayer Alam

This app displays a list of books from the Redux store using React components. It uses Redux Toolkit for state management and TypeScript for type safety and clarity.


🧱 Application Entry: main.tsx

import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' import './index.css' import { RouterProvider } from 'react-router' import router from './routes/index.tsx' import { Provider } from 'react-redux' import { store } from './redux/store.ts' createRoot(document.getElementById('root')!).render( <StrictMode> <Provider store={store}> <RouterProvider router={router}/> </Provider> </StrictMode>, )

🔍 Explanation:

  • React 18+’s createRoot API is used to render the app.
  • The <Provider> from react-redux injects the Redux store across the component tree.
  • Routing is handled via RouterProvider, which suggests the use of react-router.

🧠 Defining the Data Model: type.ts

export interface IBook { id: string title: string author: string genre: string isbn: string description: string copies: number available: boolean }

Using TypeScript’s interface, we define a strongly-typed structure for book data. This ensures consistency and helps avoid runtime errors due to shape mismatches.


🗃️ Setting Up Redux Store: store.ts

import { configureStore } from "@reduxjs/toolkit"; import bookReducer from "./features/book/bookSlice"; export const store = configureStore({ reducer: { library: bookReducer, }, }); export type RootState = ReturnType<typeof store.getState>; export type AppDispatch = typeof store.dispatch;

Key Concepts:

  • configureStore simplifies store setup and automatically includes useful middleware like Redux Thunk and DevTools.
  • We slice our state using bookReducer under the namespace library.
  • RootState and AppDispatch are TypeScript helpers for typed hooks.

🪝 Custom Hook for Typed useSelector: hook.ts

import { useSelector } from "react-redux"; import type { RootState } from "./store"; export const useAppSelector = useSelector.withTypes<RootState>();

This hook allows us to use useSelector with automatic type inference. This leads to safer and more accurate access to state values.


📦 Redux Slice (Feature State): bookSlice.ts

import type { IBook } from "@/types"; import { createSlice } from "@reduxjs/toolkit"; interface InitialState { books: IBook[]; } const initialState: InitialState = { books: [ { id: "1", title: "Sample Book", author: "John Doe", genre: "Fiction", isbn: "123-4567890123", description: "This is a sample book description.", copies: 5, available: true, }, ... ] } const bookSlice = createSlice({ name: "book", initialState, reducers: {}, }); export default bookSlice.reducer;

Here, createSlice helps encapsulate Redux logic in a concise and readable manner:

  • initialState contains sample book entries.
  • No reducers are defined yet, but they can easily be added to handle actions like addBook, deleteBook, toggleAvailability, etc.

📄 Displaying the Books: books.tsx

import BookCard from "@/components/module/books/BookTable"; import { useAppSelector } from "@/redux/hook"; export default function Books() { const books = useAppSelector((state) => state.library.books); return ( <div className="space-y-4 p-4"> <div className="text-2xl font-semibold tracking-tight">📚 All Books</div> <BookTable books={books} /> </div> ); }

Highlights:

  • Uses the custom useAppSelector hook to retrieve books from the Redux state.
  • Passes the data down to the BookCard component for display.

💡 Rendering the Book Table: BookTable.tsx

import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { Pencil, Trash2 } from "lucide-react"; import type { IBook } from "@/types"; interface BookTableProps { books: IBook[]; } export default function BookTable({ books }: BookTableProps) { return ( <Card> <CardContent className="p-4"> <Table> <TableHeader> <TableRow> <TableHead>Title</TableHead> <TableHead>Author</TableHead> <TableHead>Genre</TableHead> <TableHead>ISBN</TableHead> <TableHead>Copies</TableHead> <TableHead>Availability</TableHead> <TableHead>Actions</TableHead> </TableRow> </TableHeader> <TableBody> {books.map((book) => ( <TableRow key={book.isbn}> <TableCell>{book.title}</TableCell> <TableCell>{book.author}</TableCell> <TableCell>{book.genre}</TableCell> <TableCell>{book.isbn}</TableCell> <TableCell>{book.copies}</TableCell> <TableCell> {book.available ? ( <span className="text-green-600">Available</span> ) : ( <span className="text-red-600">Checked Out</span> )} </TableCell> <TableCell className="flex gap-2"> <Button size="sm" variant="outline"> <Pencil className="h-4 w-4 mr-1" /> Edit </Button> <Button size="sm" variant="destructive"> <Trash2 className="h-4 w-4 mr-1" /> Delete </Button> </TableCell> </TableRow> ))} </TableBody> </Table> </CardContent> </Card> ); }

Notable UI Features:

  • Displays book data in a tabular format.
  • Action buttons for Edit and Delete suggest future interactivity.
  • Uses Lucide icons for visual clarity.

🧩 What Can Be Improved or Extended?

Here are some ideas for making this application more dynamic:

  • Add Reducers: To support adding, editing, and deleting books.
  • Forms: Use a form (e.g., with React Hook Form) to handle book input.
  • Persistence: Integrate localStorage or a backend API.
  • Routing: Add detail pages for each book.
  • Search/Filter: Add functionality to filter or search books by title or author.

This simple library app showcases how Redux Toolkit and TypeScript make React state management predictable, scalable, and type-safe. With modular structure, clean type definitions, and maintainable code, you’re already started the journey to a full-featured library system.

🔗 Source Code: Click Here

Building a React App Using react-router-dom v7.3 Data Mode

Posted on July 2, 2025 by Jubayer Alam

React Router v7.3 introduced an improved and more declarative way to define routes using the Data Router APIs like createBrowserRouter. In this tutorial, we’ll walk through setting up a simple routing system in a React project using these new APIs.

🛠 Step-by-Step Setup

1. Install React Router

First, install the react-router-dom package:

npm install react-router-dom

This gives us access to all the routing components and utilities, including createBrowserRouter, RouterProvider, and Outlet.


2. Create Route Config in src/routes/index.tsx

Inside our src directory, create a routes folder. Then create an index.tsx file. This will define our route structure using the Data Router approach.

// src/routes/index.tsx import App from "@/App"; import Product from "@/pages/product"; import User from "@/pages/user"; import { createBrowserRouter } from "react-router-dom"; const router = createBrowserRouter([ { path: "/", Component: App, children: [ { path: "user", Component: User, }, { path: "product", Component: Product, }, ], }, ]); export default router;

Here’s what’s happening:

  • createBrowserRouter() creates the route tree.
  • The App component acts as the root layout (common UI like headers, navbars).
  • Nested routes (user, product) will be rendered inside the App component using <Outlet />.

3. Create the Root Layout: App.tsx

Our App component will serve as the shell that hosts child routes.

// src/App.tsx import { Outlet } from "react-router-dom"; function App() { return ( <> <h1 className="text-3xl font-bold underline">Hello world!</h1> <Outlet /> </> ); } export default App;

The <Outlet /> is where child routes like /user and /product will be rendered.


4. Setup Main Entry Point: main.tsx

Now integrate the router into your React app by using RouterProvider.

// src/main.tsx import React from "react"; import ReactDOM from "react-dom/client"; import { RouterProvider } from "react-router-dom"; import router from "@/routes"; ReactDOM.createRoot(document.getElementById("root")!).render( <React.StrictMode> <RouterProvider router={router} /> </React.StrictMode> );

Note: We no longer use <App /> directly here — the routing system will handle rendering components.


5. Create the Page Components

Create two new components in src/pages:

Product.tsx

// src/pages/Product.tsx function Product() { return <div>Welcome to the Product Page!</div>; } export default Product;

User.tsx

// src/pages/User.tsx function User() { return <div>Welcome to the User Page!</div>; } export default User;

✅ Final File Structure

src/ │ ├── App.tsx ├── main.tsx ├── routes/ │ └── index.tsx ├── pages/ │ ├── Product.tsx │ └── User.tsx

🚀 Run and Test

Start our development server:

npm run dev

Visit:

  • http://localhost:5173/ → Sees the root layout
  • http://localhost:5173/user → Loads User component inside App
  • http://localhost:5173/product → Loads Product component inside App

 

If you do not know how to initiate your first react app, please follow this post first.

Zero to a minute

Set Up a Modern React + TypeScript + Tailwind + ShadCN UI App with Vite

Posted on July 2, 2025 by Jubayer Alam

This guide walks through a complete setup to  to kick off a modern React project with TypeScript, Tailwind CSS, and the sleek ShadCN UI components by Vite build tool from zero to productive in minutes.


🛠️ Step-by-Step Project Setup

1. Initialize the Vite Project

Start by creating a new Vite project:

npm create vite@latest

When prompted:

  • Project Name: project_name
  • Framework: React
  • Variant: TypeScript

2. Install Tailwind CSS

Install Tailwind CSS and the official Vite plugin:

npm install tailwindcss @tailwindcss/vite

Create or update src/index.css:

@import "tailwindcss";

It may also want to run:

npx tailwindcss init

Configure tailwind.config.js as needed.


3. Set Up Path Aliases

In tsconfig.json, add:

"compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } }

Also update tsconfig.app.json similarly:

{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } } }

Install Node type definitions:

npm install -D @types/node

4. Configure Vite

Create or edit vite.config.ts:

import path from "path" import tailwindcss from "@tailwindcss/vite" import react from "@vitejs/plugin-react" import { defineConfig } from "vite" export default defineConfig({ plugins: [react(), tailwindcss()], resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, }, })

🎨 Add ShadCN UI

Initialize ShadCN:

npx shadcn@latest init

Choose the preferred neutral color scheme when prompted.

Add a component, like the button, to test it out:

npx shadcn@latest add button

✅ Test the Setup

Use the imported Button component in the app:

import { Button } from "./components/ui/button" function App() { return <Button>Test</Button> } export default App

Start the dev server:

npm run dev

There should now see a fully styled ShadCN button rendered in the browser.

Your First Node.js Application

Create a Node.js App with TypeScript, Express, Mongoose and MongoDB Atlas

Posted on July 2, 2025July 2, 2025 by Jubayer Alam

In this post, we will go through on how to build a modern Node.js application using TypeScript, Express.js, and MongoDB Atlas, following a modular folder structure. We’ll also integrate dotenv for managing environment variables and use ts-node-dev for a smooth development workflow.


✅ Step 1: Initialize Your Project

Create a new directory and initialize a Node.js project:

mkdir my-node-app && cd my-node-app npm init -y

✅ Step 2: Set Up TypeScript

Install TypeScript and initialize the configuration:

npm install --save-dev typescript npx tsc --init

Now, open the generated tsconfig.json and update the following properties:

{ "rootDir": "./src", "outDir": "./dist", "strict": true, "moduleResolution": "node", "esModuleInterop": true, "target": "es6", "module": "commonjs" }

✅ Step 3: Project Structure

Create a modular folder structure:

mkdir src touch src/server.ts

We’ll build everything inside the src/ directory.


✅ Step 4: Install Core Dependencies

Install essential packages:

npm install mongodb express mongoose cors dotenv

Install type definitions for TypeScript:

npm install --save-dev @types/express @types/cors

✅ Step 5: Enable Hot Reloading

Install ts-node-dev to auto-reload the app when files change:

npm install --save-dev ts-node-dev

Update your package.json scripts:

"scripts": { "dev": "ts-node-dev --respawn --transpile-only src/server.ts" }

✅ Step 6: Add Environment Configuration

Create a .env file in the root directory:

PORT=3000 MONGODB_URI=mongodb+srv://<db_username>:<db_password>@primary-cluster.t9drt.mongodb.net/<db_name>?retryWrites=true&w=majority&appName=Primary-Cluster

Then, create a config folder:

mkdir src/config touch src/config/index.ts

Inside src/config/index.ts:

import dotenv from 'dotenv'; dotenv.config(); export const PORT = process.env.PORT || 5000; export const MONGODB_URI = process.env.MONGODB_URI as string;

✅ Step 7: Set Up the Server

Edit src/server.ts:

import express from 'express'; import mongoose from 'mongoose'; import cors from 'cors'; import { PORT, MONGODB_URI } from './config'; const app = express(); // Middlewares app.use(cors()); app.use(express.json()); // Sample route app.get('/', (_req, res) => { res.send('API is running...'); }); // Connect to MongoDB and start server mongoose .connect(MONGODB_URI) .then(() => { console.log('Connected to MongoDB Atlas'); app.listen(PORT, () => { console.log(`Server is running on http://localhost:${PORT}`); }); }) .catch((error) => { console.error('MongoDB connection error:', error); });

✅ Step 8: Run Your App

Use the script to start your development server:

npm run dev

If everything is set up properly, you’ll see:

Connected to MongoDB Atlas Server is running on http://localhost:3000

This is a clean, modular Node.js app powered by TypeScript, Express, and MongoDB Atlas. This foundation is perfect for building scalable APIs with environment separation and type safety.

MAMP Setup on MacOS

Build a Scalable Local MySQL Database on Mac Using MAMP

Posted on June 23, 2025June 23, 2025 by Jubayer Alam

If you’re working with large datasets and need a reliable, scalable local development environment on your Mac, MAMP is one of the easiest solutions. In this post, we’ll walk through how to set up a MySQL database locally using MAMP, optimize it for handling large data volumes, and connect it with your projects.

Whether you’re testing heavy queries, prototyping data-intensive applications, or working offline, having a local database environment is essential.

Why Use MAMP for Local Databases?

MAMP (Macintosh, Apache, MySQL, PHP) is a free, all-in-one local server environment. It’s perfect for developers who want to avoid the hassle of setting up individual services. Key benefits:

  • Easy installation and configuration
  • Built-in MySQL and phpMyAdmin
  • No need to install MySQL manually
  • Ideal for web and data-heavy applications

What You’ll Need

  • A Mac (Intel or Apple Silicon)
  • MAMP (Free version)
  • A large dataset (CSV, SQL dump, or any structured data file)

Step 1: Install MAMP

  1. Visit the MAMP website and download the latest version.
  2. Once installed, launch MAMP from your Applications folder.

Step 2: Start MAMP Services

  1. Open MAMP and click Start.
  2. This will launch both Apache and MySQL services.
  3. Click MySQL then click on phpMyAdmin — this is your GUI to manage MySQL databases.

Step 3: Create a New MySQL Database

  1. In phpMyAdmin, go to the Databases tab.
  2. Enter a database name (e.g., large_dataset_db) and click Create.
  3. Create the MySQL Table for import or insert your large dataset.

Step 4: Import a Large Dataset

Option 1: SQL Dump

  • If you have a .sql file, use the Import tab in phpMyAdmin to upload and run it.

Option 2: CSV or TSV File

  1. Use the Import tab and choose a CSV file.
  2. phpMyAdmin allows you to map columns and detect delimiters.
  3. For massive files, consider using the MySQL CLI for better performance:
"/Applications/MAMP/Library/bin/mysql80/bin/mysql" -u root -p

Step 5: Upload CSV into MySQL

  • From within the MySQL shell:
SET GLOBAL local_infile = 1;

USE large_dataset_db;

 LOAD DATA LOCAL INFILE '/absolute/path/to/large_dataset.csv' INTO TABLE sample_users FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS;
  • After running the import, check:
SELECT COUNT(*) FROM sample_users;
  • For quitting the MySQL shell, try:
exit;

Step 6: Optimize for Large Datasets

To make your local MySQL database more efficient for heavy queries:

  • Increase memory limits: Create my.cnf by following command:
sudo nano /Applications/MAMP/Library/bin/mysql80/my.cnf
  • my.cnf: Use the following config:

[client] 
default-character-set = utf8mb4 
local-infile = 1 
[mysqld] 
innodb_buffer_pool_size = 256M 
max_allowed_packet = 64M 
local_infile = 1
  • Restart MAMP: Quit MAMP completely and restart the MySQL server again with the application.
  • Verify Settings: Use the following command to verify the settings.
/Applications/MAMP/Library/bin/mysql80/bin/mysql --local-infile=1 -u root -p

Then run:

SHOW VARIABLES LIKE 'innodb_buffer_pool_size'; SHOW VARIABLES LIKE 'max_allowed_packet'; SHOW VARIABLES LIKE 'local_infile';

You should see:

innodb_buffer_pool_size = 268435456 (256MB) max_allowed_packet = 67108864 (64MB) local_infile = ON

Step 7: Connect Your Application

To connect your app (e.g., Python, Node.js, PHP) to the MySQL server:

  • Host: localhost
  • Port: 8889 (MAMP default MySQL port)
  • User: root
  • Password: root (default; change if needed)

Example Python (MySQL Connector):

import mysql.connector
conn = mysql.connector.connect(
host='localhost',
port=8889,
user='root',
password='root',
database='large_dataset_db'
)

Final Thoughts

Setting up a local MySQL database with MAMP on your Mac gives you a powerful testing environment that can handle large datasets without needing a remote server. It’s ideal for performance testing, prototyping, and learning database architecture in a safe environment.

If you plan to scale this setup further (e.g., multi-database systems or larger data volumes), you can also explore MAMP Pro or dockerized environments.

Independence Day of Bangladesh

From Birth to Bright Future: Bangladesh’s Inspiring Journey

Posted on March 26, 2024 by Jubayer Alam

The Birth of Bangladesh – A Story of Independence and Struggle: Long ago, Pakistan was split into two parts: East Pakistan, which is now Bangladesh, and West Pakistan, which is now Pakistan. People in East Pakistan felt unhappy because those in West Pakistan were bossing them around too much.

In an election, a political party called the Awami League, led by Sheikh Mujibur Rahman, won by a lot. But the leaders in West Pakistan didn’t want to agree with the results. This made the people very mad, and they started to protest.

Things got worse when the Pakistani forces tried to stop the protests. Many people got hurt, and some even died. Then, on March 26, 1971, Sheikh Mujibur Rahman said that East Pakistan was its own country now, and he called it Bangladesh.

But this made the situation even more tense. There was a big, sad war that lasted nine months. Lots of people lost their lives, and many families suffered greatly. Finally, on December 16, 1971, the Pakistani military had to give up. Bangladesh had won, with help from India. And that’s how Bangladesh became its own country.

India joined the war on 3 December 1971, after Pakistan launched attacks on North India. The war had battles on two fronts. With India and Bangladesh’s forces moving fast in the east, Pakistan surrendered in Dhaka on 16 December 1971.

The war changed things in South Asia. Bangladesh became a big country with lots of people. It also affected the Cold War between big countries like the United States, the Soviet Union, and China. Most countries in the United Nations agreed that Bangladesh was its own country in 1972.

After the war, relations between Pakistan and Bangladesh haven’t been good. Many people died during Bangladesh’s fight for freedom, around 3 million.

Bangladesh’s Journey – From Struggle to Success: In 1971, Bangladesh started its journey as a new country. Back then, things were tough. The economy wasn’t doing well, with a negative growth rate of -5.48%. But as time passed, Bangladesh worked hard. In 2019, its economy grew by 8.15%. Then, COVID-19 hit in 2020, but Bangladesh still managed to keep its GDP at 5.2%. Since its independence, Bangladesh has been getting better and better. When it first started, people were very poor, with a per capita income of just $134. But in 2020, it rose to $2064.

Life for people in Bangladesh has improved a lot. In the 1970s, more than 80% of people were living in poverty. But by 2019, it dropped to 20%, with extreme poverty down to 10%. They’re aiming to cut it in half by 2030. One big success story is Bangladesh’s exports. They’ve been making a lot of money by selling things like clothes to other countries. In fact, they’re the second-largest apparel producer in the world now. Even agriculture has grown a lot. In 1972, they had a hard time producing enough food. But by 2021, they were producing more than enough, becoming self-sufficient.

Access to electricity has also improved massively. In 1991, only 14% of people had electricity. But by 2021, almost everyone did, reaching 99%. Education and health have gotten better too. The literacy rate went up from 26.8% in 1974 to 74.7% in 2019. And people are living longer now, with life expectancy reaching 72.6 years in 2020. Bangladesh has achieved a lot in terms of health too. They’ve been free from polio since 2006 and have eliminated neonatal tetanus.

In 2015, Bangladesh became a lower-middle-income country, moving up from being just a low-income one. And they’re aiming even higherBangladesh’s success has been noticed worldwide. Many other countries look up to it as a role model for things like fighting poverty and improving health and education. It’s been a remarkable journey for Bangladesh, showing what can be achieved with hard work and determination.

Bangladesh’s Journey Towards a Brighter Future: Bangladesh is getting ready for a big change. The government have a plan for the future, and they want to make the country even better. They want Bangladesh to become a high-income country by 2041. Since it became independent in 1971, Bangladesh had achieved a lot. It went from being very poor to one of the fastest-growing economies in the world. Even during the COVID-19 pandemic, Bangladesh showed how strong it was.

Bangladesh used to struggle a lot with poverty and hunger. But now, it’s known for making lots of things and being good at it. Even though there were some accidents in factories, Bangladesh worked hard to make them safer for workers and follow global rules for sustainability. The world started to notice Bangladesh’s success in reducing poverty. It even became the biggest country ever to graduate from being called a “Least Developed Country.” Now, Bangladesh wants to keep growing and make sure its development sustainable.

Even though Bangladesh is a small country, it has a big population. More than 160 million people live there, which is a lot compared to other countries. But Bangladesh also faces challenges like natural disasters, so it’s important for them to keep up with global standards. With everyone’s help and hard work, Bangladesh hoped to keep moving forward and become even better in the years to come.

References:

  1. Livemint. (2024, March 26). Google Doodle Celebrates Bangladesh Independence Day, Know history significance and more | Mint. Mint. https://www.livemint.com/news/trends/google-doodle-celebrates-bangladesh-independence-day-know-history-significance-and-more-11711414467718.html
  2. Bangladesh High Commission, London. (n.d.). Bangladesh High Commission, London. https://bhclondon.org.uk/liberation-war
  3. Janjua, H. (2021, March 31). Should Pakistan apologize to Bangladesh for the 1971 war? dw.com. https://www.dw.com/en/should-pakistan-apologize-to-bangladesh-for-the-1971-war/a-57051549
  4. Admin. (2022, May 23). What milestones have Bangladesh crossed in 50 years. Centre for Research and Information. https://cri.org.bd/2021/03/26/what-milestones-have-bangladesh-crossed-in-50-years/

  5. OECD/UNCTAD (2023), Production Transformation Policy Review of Bangladesh: Investing in the Future of a Trading Nation, OECD Development Pathways, OECD Publishing, Paris, https://doi.org/10.1787/8b925b06-en.

interfaith marriage

Influence of Conservative Culture on Interfaith Marriage Acceptance in Bangladesh

Posted on March 17, 2024March 18, 2024 by Jubayer Alam

Interfaith marriage is one of the rarest topics seen in Bangladesh till now. However, this is not the rarest incident here. Presently interfaith marriage is taking place more frequently than before. Interfaith marriage is lawful in Bangladesh but these laws are hardly practiced by the people of the society. As a result, the couples of interfaith marriages undergo various legal complications concerning the legitimacy of children, inheritance, adaptation, right of maintenance, etc. I am going to disclose many social, traditional, and religious perspectives behind the untold law of the society in Bangladesh. The non-supportive society not only makes them suffer but also create many troubles in their daily life. So the couple has to go through this miserable situation which leads them to depression, low self-esteem, psychological distress, etc.

Bangladesh is a conservative culture-oriented country where people of the country cannot easily accept any unusual events in their routine life. Though freedom of marriage is one of the imperative human rights, this right cannot happen smoothly within religious traditions in Bangladesh.

Marriage is a socially or ritually acknowledged merger governed by a state, a union, or a religious authority. There are very rituals and laws concerning marriage liable on religions. From the beginning, it seemed to highlight a single religion-based family over family based on pluralistic religions. In some regards the traditional culture, religious laws forbid interfaith marriage especially for Hindu and Muslim in Bangladesh.

According to Universal Statement of Human Rights, 1948

Men and women of full age, without any limitation due to race, nationality, or religion, have the right to marry and to found a family. They are entitled to equal rights as to marriage, during marriage and at its dissolution (𝐴𝑟𝑡𝑖𝑐𝑙𝑒 − 16).

When a person, earlier acknowledging a different religion, changes his/her religion and converted to the religion of his/her partner beforehand marriage, the after-conversion marriage is not an interfaith marriage. Interfaith marriage is stated to mean a marriage between two persons from two different religions and traditions as well.

An interfaith marriage neither socially established nor the couples are welcomed either Hindu or Muslim family in Bangladesh. Here a Muslim woman or man is not permitted to marry a Non-Muslim person. In Bangladesh, the interfaith marriage between Hindu and Muslim is documented under the Special Marriage Act, 1872.

People of Bangladesh cannot come out from their traditional views to accept the special marriage. As they are not willing to change their thoughts, social rules, and conservative look. Although they hardly accept it, such marriages are not insignificant in number either. But married couples indeed have to suffer from different inherent difficulties by family and society as well.

If we think deeply about the reasons behind religious oppositions regarding interfaith marriage, we may perhaps find issues like a religious command, strategic provision, and fear of contamination of belief by exogenous fundamentals, etc. Legal barriers for an interfaith married couple in Bangladesh arise from two fronts. On the one hand, following religious instructions, traditional special laws reject its validity. And the other hand, the special laws made for helping such marriages are unsatisfactory to protect their rights and interests in society.

In some cases, it seems difficult for families to compromise with their traditional culture which is followed by generation to generation. So it becomes tough to admit an exceptional event like interfaith marriage by a conservative religious country like Bangladesh. If the Special Marriages Act, 1872 is revised by describing all marital rights and duties of an interfaith married couple and eliminating all the uncertainties in the Act, then it can defend those couple from unnecessary legal prohibitions, depressions, and miseries. However law cannot guarantee human happiness, it can eradicate some of the human distresses. In a secular society, each person has a right to live, love, and marry someone s/he wishes; and it is the responsibility of the state to ensure fullest legal protection to everyone within its jurisdiction.

An interfaith marriage is historicity or fact of life across the globe. With the ever-expanding liberal views and modernization, the number of such marriages is growing very fast. The travel in time between tradition and modernity has been generated through migration and the power of technology. In Bangladesh, the number of interfaith marriages is very significant as well. Interfaith married couples can be found in the neighborhood, among relatives or friends. But people in Bangladesh still want traditional marriages despite being globalized. It is still perceived as distracting the custom due to the probable destruction caused so that it could lead to stigmatization. According to the Universal Declaration of Human Rights, 1948

Men and women of full age, without any limitation due to race, nationality or religion, have the right to marry and to found a family. (Kamruzzaman, 2016, pp. 44–51).

Marriage is the norm or values to date and is restricted by different customs, rituals, cultural beliefs, religious bindings, political or societal affiliations, and certain rules and regulations which is maintained by the social institution. Religion has a far deeper and wider effect on how you live your life, how you think, how you observe others etc. The challenges of interfaith couples are consequently a lot more complex, running a lot deeper. In particular, Article 18 of the Universal Declaration on Human Rights of 1948 provides that

Everyone has the right to freedom of thought, conscience, and religion; this right includes freedom to change his religion or belief, and freedom, either alone or in community with others and in public or private, to manifest his religion or belief in teaching, practice, worship, and observance.

Marriages between people from altered religions are precisely documented in Bangladeshi law under the Special Marriage Act no 3 of 1872 and such marriages are readily accepted in Bangladesh (Kamruzzaman, 2016, pp. 44–51). But this is hardly followed in Bangladesh. From the Bangladesh Constitution, 1972

Every citizen has the right to profess, practice, or propagate any religion (𝐴𝑟𝑡𝑖𝑐𝑙𝑒 41).

Such a law is made to assist, and not to hinder the interfaith married couples. But in reality, the age-old Special Marriages Act of 1872 though might be suitable according to the situations of the time it was passed; it has lost its respectability since the world has changed rapidly. For religious and social conservatives still, interfaith marriage is treated as Cultural-lag by society. Interfaith can create different problems in lifestyle but it is not restricted to religion. The interfaith marriage causes serious victimization in the society more. The nature of oppression depends on the couple’s social class, suburban areas, ages, and educational qualifications. It is most noticeable in lower socio-economic society. But the upper-class or educated people of the society also don’t have very warm thoughts or open-minded views about the marriage. Interfaith couples have to go through many ups and downs in their life to get social acceptance. They sometimes encounter different non-violent harassment from their relatives or peer. Some people of the society are concerned that interfaith couples and their children are going to lack something very valuable norms and values, or the system that they will put together their pick and mix trust system, or even end up with no faith at all. If the interfaith married couples are not economically independent, their social lives may be particularly hazardous. This social unacceptance has its origins again in the religious disapproval of such marriages.

I took a brief interview with a person who recently got married through the Special Marriage Act 1872. I asked them how they convince their family for the marriage. He stated that as both of them were independent, they didn’t involve any other to handle the situation on behalf of them. Therefore, they tried by themselves to make their family understand them and gradually their family becomes convinced though they disagreed at the beginning. I also asked for a comparison of the interfaith marriage system of Bangladesh with the global situation to him. He said,

As an analogy, I would say interfaith marriages’ struggle in Bangladesh is at a stage that is similar to the acceptance level of same-sex marriage in the more developed world. Also, the clause in the act that requires the participants to forget any claim to inheritance is a big hindrance to the appeal of the act. (Personal Communication, November 21, 2017).

Not only in Bangladesh but also all over the world, the bipolarity of the conservative-liberal paradigm is widening. We are more divisive in many matters now, including how society thinks on should choose one’s partner. However, acceptance of inter-religious marriages is perhaps still a difficult issue for even the liberal inclined minds in Bangladesh. To ensure harmony in society and avoid any unethical destruction, the laws of Bangladesh should go through massive changes for being able to cope with the needs of current demands as well.

I personally conducted a survey to investigate the influence of conservative culture on accepting interfaith marriage in Bangladesh. The survey conducted by a group of 82 people of whom there were males and females. I asked people about the reasons behind considering interfaith marriage as taboo. It was a general question about the reason behind the non-acceptance of interfaith marriage in the society. Approximately 63.4% of them said religious views, 18.3% reported conservative thoughts, 11% said social barriers, and rest 7.3% thinks cultural norms and values.

It shows that religious view is the main reason as Bangladesh is a very religious one. Conservative thoughts are another main reason behind considering interfaith marriage as a taboo because the people of Bangladesh are very conservative-minded. Social barriers are another crucial reason for the disapproval of special marriage. As by tradition, marriage is one of the oldest rituals of Bangladesh. So cultural norms and values influence the decision of the people most.

My second queries about what are the consequences faced by the interfaith married couples? The response was that 12 Out of 82 people said social challenges, 11 people said lack of family support, only 1 among 82 people think emotional problems, and 58 out of 82 people went for all of the options above.

Generally, interfaith married couples of the society don’t get any support and for that, they have to face many social challenges. As we, people are social beings. So for living in this society, we need to obey some social rules that we cannot break according to the choice. For that when someone goes against the rules and thinks like open-minded people, they have to face different obstacles in their daily life.

My third question is related to the factor that influences more about the negative mentality towards interfaith marriage. 56% of people reported religion as the most influential factor, 29% think conservativeness of the society, another 11% said traditional marriage system, and rest 4% think other reasons are also responsible for the influence.

The next question queries about why did the Special Marriage Act fail to convince the society? The response was that 56.1% people said most of the people want to think according to the religious norms, 18.3% said people prefer traditional rules more, 14.6% said most of the people have a protective mentality, 11% reported that people want to avoid social conflicts. Religious views are the main obstruction to succeed in the Special Marriage Act. To avoid the social conflicts people like to support the traditional rules more and the defensive mentality towards modernization concludes the failure of the act.

I asked people how do they think maximum interfaith marriage end-up as a single religious family. Where 52 people support the statement, 21 people refused to agree with it and the rest of the people think other lifestyles can be chosen by the interfaith married couple.

Then I asked people to clarify their opinion. They shared different sentiments as one stated,

In the traditional social system where interfaith marriage itself a great taboo, here maintaining two religion in a single-family become more challenging, and also at the same time people of Bangladesh are not that much open-minded to welcome it.

Other person think,

If there is already one interfaith marriage in the family or among relatives, it is easy to convince the family members for accepting this kind of marriage.

And another person specified,

I think interfaith and marriage two different things, when two people from different religion tie a knot that’s the freedom of choice but after marriage, they tried to respect each other but at the same, if they noticed their perception and reality didn’t match or lack of compromise happens between
two maybe at that time their relation end-up.

So people define their feeling about interfaith marriage according to their own justifications.

The last question of my survey queries about what kinds of initiative can be taken to change the mentality of the society? An equal percentage of people 46.3% stated that by educating them about human rights, by adopting modernization is reported by 18.3%, another 35.4% think that by changing the traditional views. Information from this question shows, interfaith marriage could be accepted in the society if it is possible to change the traditional thoughts. As the society is dominating one, their dominant mentality can be changed by educating them about human rights. By adopting modernization the suffering of the interfaith married can be reduced as well.

It can be clearly stated that in the society, the interfaith marriage is not still an easily acceptable phenomenon and the incident is greatly influenced by religious views rather than conservative thoughts. Around 70.07% of people think, it malpractice against the religion and thus they are not willing to convert their traditional judgments. It is also shown that due to religious opposition, people used to show negative mentality towards interfaith married couples, and that brings a lot of obstacles like harassment, social unacceptance, and mental pressure in their routine life. As they do not get any kind of support from their family or friends. So they generally face many ups and downs in their daily life for maintaining responsibilities all alone. According to the religious mindset of the society, interfaith marriage is a forbidden and hindered work and in the long run, must hellish sufferings as well.

Freedom of thought is a vital human right. In this sense, interfaith marriage is also a human right under any national and international circumstances. Nowadays in developed countries, interfaith marriage is common, but a developing country like Bangladesh, it is still a challenge to survive with many social obstacles. The law introduced by Bangladesh’s constitution named Special Marriage Act 1872 is a pioneering act which facilitates marriage between two people from different religious communities. But the religious judgments, conservative thoughts, etc. of the society appeared as great troubles to the interfaith couples. It is even now considered as anti-social, punitive, unscriptural work that is prohibited by society. But the prohibition is totally contradictory to universal human rights. As it is the right of every human to get married and having a family according to their freedom of choice regardless of religious considerations. Though the interfaith marriage is no longer an unfamiliar incident in the society, there are a variety of challenges that couples might face in the pursuit of a happy marital life.

dative case

German Grammer 101 – Dative Case

Posted on March 11, 2024March 18, 2024 by Jubayer Alam

The dative case plays a pivotal role in German, indicating the indirect object of a sentence—essentially, to whom or for whom the action is performed. This case extends beyond mere sentence structure; it encapsulates a fundamental aspect of conveying relationships and actions within the language. Here, we’ll dissect the dative case’s nuances, from its effect on articles and verbs to its place within the broader context of German syntax.

Dative Case and Articles

One of the first steps to mastering the dative case is understanding how it affects articles. Articles in German change according to the case, gender, and number of the noun they accompany. Here’s a quick overview:

  • Masculine Nouns: Shift from “der” (nominative) or “ein” (indefinite nominative) to “dem” (definite dative) or “einem” (indefinite dative).
  • Feminine Nouns: Change from “die” (nominative) or “eine” (indefinite nominative) to “der” (definite dative) or “einer” (indefinite dative).
  • Neuter Nouns: Alter from “das” (nominative) or “ein” (indefinite nominative) to “dem” (definite dative) or “einem” (indefinite dative).
  • Plural Nouns: Use “den” with all genders in the dative case, with no indefinite form.

Utilizing the Dative Case

The dative case is used in several contexts within German:

  • Following specific prepositions: Certain prepositions are always followed by the dative case, indicating the location or indirect object of an action.
  • With certain verbs: Approximately 50 verbs in German require the dative case for their objects.
  • In sentences with more than one object: When a sentence includes both a direct object (in the accusative case) and an indirect object (to whom or for whom the action is performed), the latter is in the dative case.

Verbs and the Dative Case

Some verbs inherently call for the dative case for their objects, such as “helfen” (to help) and “gehören” (to belong). For instance, “Der Mann hilft der Frau” (The man helps the woman) showcases the dative in action with “der Frau”.

Moreover, there are verbs that can take both an accusative and a dative object simultaneously, adding a layer of complexity to sentence construction. These include verbs like “bringen” (to bring), “schreiben” (to write), and “erzählen” (to tell), where the sentence structure often involves a subject (nominative), a direct object (accusative), and an indirect object (dative).

Adjectives with the Dative Case

Interestingly, the dative case also interacts with certain adjectives and expressions, particularly those describing states of being or feeling, like “Mir ist heiß” (I feel hot) or “Ist dir langweilig?” (Are you bored?). These constructions highlight the dative case’s role in expressing how someone feels or perceives something.

The dative case is a cornerstone of German grammar, essential for articulating nuanced relationships between objects and actions. Its proper use reveals the depth and precision of the language, allowing for expressive and accurate communication. By understanding the dative case, learners can navigate the complexities of German grammar with greater confidence and clarity, unlocking the language’s rich expressive potential.

accusative case

German Grammer 101 – Accusative Case

Posted on March 5, 2024March 18, 2024 by Jubayer Alam

The accusative case is a key component of German grammar, offering insight into the object of a sentence—what or whom the action is directed at. This case is essential for understanding sentence structure and conveying meaning accurately. Let’s delve into the nuances of the accusative case, exploring its application in sentences, its impact on articles, and its interaction with verbs.

When to Use the Accusative Case

The accusative case comes into play in several scenarios in German:

  • Following specific verbs and prepositions: Certain verbs and prepositions inherently require the accusative case for the objects that follow them.
  • Distinguishing objects in a sentence: When a sentence involves two entities (people or things), the accusative case helps identify the direct object—the recipient of the action. For example, in “Das Kind sieht einen Hund” (The child sees a dog), “einen Hund” (a dog) is the direct object in the accusative case.

Nominative vs. Accusative Case

A fundamental aspect of mastering German grammar is distinguishing between the nominative and accusative cases. The nominative case identifies the subject of the sentence (who or what is performing the action), whereas the accusative case reveals the direct object (who or what the action is directed towards). This distinction is crucial for sentence clarity and grammatical accuracy.

Articles in the Accusative Case

The accusative case influences the articles used with nouns. German articles in the accusative case change based on the gender and number of the noun they accompany:

  • Masculine nouns switch from “der” (definite) or “ein” (indefinite) in the nominative to “den” (definite) or “einen” (indefinite) in the accusative.
  • Feminine and neuter nouns retain their articles (“die” and “das” for definite, “eine” and “ein” for indefinite, respectively) in both the nominative and accusative cases.
  • Plural nouns use “die” for definite articles in both cases, with no indefinite article in use.

Verbs that Command the Accusative Case

Several verbs in German specifically call for the accusative case. Understanding these verbs is crucial for forming grammatically correct sentences. Examples include “schauen” (to watch), “schreiben” (to write), and “haben” (to have). The object that follows these verbs must be in the accusative case, as demonstrated in sentences like “Sie schaut einen Film” (She watches a movie) and “Er schreibt einen Brief” (He writes a letter).

Word Order Flexibility

German syntax offers some flexibility in word order, especially in positioning the subject and object within a sentence. Regardless of order, the case of the noun (nominative for the subject, accusative for the object) provides clear cues about their roles in the action. This flexibility allows for emphasis variation and stylistic choices in communication.

The accusative case is a cornerstone of German grammar, facilitating clear communication about who or what is involved in an action and who or what is the recipient of that action. By understanding and correctly applying the rules of the accusative case, learners can navigate the complexities of German syntax with greater ease, leading to more accurate and expressive language use.

  • 1
  • 2
  • Next

Jubayer Alam

Scribbler | Freethinker | Peripatetic

© 2026 Jubayer Alam | Powered by Minimalist Blog WordPress Theme