Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "style if conditions"
-
1. My senior told me that my code is crashing.
2. I check the code and told him that it is not my doing. As there was lots of nested if-else as I prefer to keep a variable and update it in if conditions. Like a filters rather than trees with branches. What I say, I knew my coding style.
3. Then he show me my git commit and I am having existential crises.
Am I missing days? How can I? I mean was I abducted and in mean time some alien took my place and they placed this memory of me coding?
Ah! man I think I am possessed by some inexperienced developer. I seriously need some fucked up crash to exorcise him.3 -
Lessons I've learnt so far on programming
-- Your best written code today can be your worst tomorrow (Focus more on optimisation than style).
-- Having zero knowledge of a language then watching video tutorials is like purchasing an arsenal before knowing what a gun is (Read the docs instead).
-- It's works on my machine! Yes, because you built on Lenovo G-force but never considered the testers running on Intel Pentium 0.001 (Always consider low end devices).
-- "Programming" is you telling a story and without adding "comments" you just wrote a whole novel having no punctuation marks (Always add comments, you will thank yourself later for it I promise).
-- In programming there is nothing like "done"! You only have "in progress" or "abandoned" (Deploy progressively).
-- If at this point you still don't know how to make an asynchronous call in your favourite language, then you are still a rookie! take that from me. (Asynchronous operation is a key feature in programming that every coder should know).
-- If it's more than two conditions use "Switch... case" else stick with "If... else" (Readability should never be under-rated).
-- Code editors can MAKE YOU and BREAK YOU. They have great impact on your coding style and delivery time (Choose editors wisely).
-- Always resist the temptation of writing the whole project from scratch unless needs be (Favor patching to re-creation).
-- Helper methods reduces code redundancy by a large chunk (Always have a class in your project with helper methods).
-- There is something called git (Always make backups).
-- If you don't feel the soothing joy that comes in fixing a bug then "programming" is a no-no (Coding is fun only when it works).
-- Get angry with the bugs not the testers they're only noble messengers (Bugs are your true enemy).
-- You would learn more than a lot reading the codes of others and I mean a lot! (Code review promotes optimisation and let's you know when you are writing macaroni).
-- If you can do it without a framework you have yourself a big fat plus (Frameworks make you entirely dependent).
-- Treat your code like your pet, stop taking care of it and it dies! (Codes are fragile and needs regular updates to stay relevant).
Programming is nothing but fun and I've learnt that a long time ago.6 -
we don't really need data types. By default, everything should be string. When you do addition, when the string has nothing but digits, commas and periods, they should be parsed added as numbers. Else, they should be concatenated. If that string-number formatting doesn't match any conventional formatting of any locale, it's a string. Same number-inferring behavior should be implemented when comparing things. There should be no type casting because there is just one type, so every comparison is type-exact. "true" and "false" are special strings that won't throw an error during comparison. Comparing two strings using less, more, less than or equal and more than or equal always throw an error.
Dates are ISO strings. Every other thing is not a date.
We basically sieve the data starting with the strictest conditions down to more forgiving conditions, then down to no conditions at all where it will be interpreted as just string. ISO date requires a very specific formatting, so we should check that first. Then, let's check for a formatted number. Then, a boolean. If nothing clicked, it's a string.
Oh, and every string is automatically trimmed, so it can't start or end with any kind of space.
No classes, no procedures, no constants, no switch operator. Also, no methods, just a lot of helper functions.
Performance will be lacking compared to languages with static types, but performance is not a priority here — this is the language for code monkeys and their AI counterparts. It should only be used for making trivial client-server prototype apps that could've been replaced by Excel if only people knew how to use it, at passable quality, that work reasonably fast on modern hardware.
Those apps will be deprecated because the company went out of business/because the project was proven to not be financially viable in several months anyway.
UI should be rendered not using a webview, but using a lightweight cross-platform UI engine written in a proper language like C++. There should be no semantic tags — every UI element acts like a div would. Everything is measured in pixels and milliseconds. All colors are #rrggbbaa. All vector graphics are SVG, all raster graphics are AVIF. All sounds are Opus. All videos are AV1. All UIs are reactive, Vue style, e.g. you change a variable and the UI updates itself in the right way every time.
Add some junior devs paired with GPT-4.5 or any super-expensive LLM, sprinkle with some Extreme Go-Horse management style (https://hackernoon.com/you-might-be...), and boom, we recreated Zergs but in the tech space. Let's solve software by brute force.10 -
Not a rant but a question/style.
What do you prefer and why?:
if(condition)
vs
if (condition == true)
and
if (!condition)
vs
if (condition == false)
vs
if (condition != true)17 -
Lounge 483: The Best Hair Treatments, Permanent Makeup, Keratin Treatments, and Lash Extensions Near Me in Brooklyn
At Lounge 483, located at 483 4th Ave, Brooklyn, NY 11215, we offer a wide range of beauty services designed to make you look and feel your absolute best. Whether you're looking for a revitalizing hair treatment near me, want to wake up with flawless makeup with permanent makeup near me, are in need of a smoothing keratin treatment near me, or dream of voluminous lashes with lash extensions near me, our expert team is here to provide you with exceptional service and stunning results.
Hair Treatment Near Me: Restore Your Hair’s Health and Shine
Searching for the perfect hair treatment near me? Look no further than Lounge 483. We offer a variety of treatments designed to repair, nourish, and revitalize your hair, no matter its texture or condition.
Popular Hair Treatments We Offer:
Deep Conditioning Treatments: Restore moisture and vitality to dry, damaged hair with our nourishing deep conditioning treatments. They help improve shine, smoothness, and overall hair health.
Scalp Treatments: If you're struggling with a dry, itchy, or flaky scalp, our scalp treatments can help restore balance and improve the health of your scalp for stronger, healthier hair growth.
Hair Masks: Customizable to suit your unique hair needs, our hair masks target specific concerns such as frizz, breakage, or color damage, leaving your hair feeling rejuvenated and soft.
Hair Repair Treatments: If you’ve recently suffered from damage due to heat styling, coloring, or environmental stress, our repair treatments can help restore strength and vitality to your hair.
No matter your hair type or concern, our hair treatment near me services are designed to give you beautiful, healthy hair that you’ll love to show off.
Permanent Makeup Near Me: Wake Up with Flawless Beauty
Tired of spending time on your daily makeup routine? Lounge 483 offers expert permanent makeup near me services that provide you with long-lasting beauty that stays flawless day in and day out. From eyebrows to eyeliner and lip color, permanent makeup can enhance your natural features without the hassle of applying makeup every day.
Our Permanent Makeup Services Include:
Microblading: Achieve full, natural-looking eyebrows with our microblading service. This semi-permanent technique creates fine, hair-like strokes for a flawless, defined brow.
Eyeliner Tattoo: Say goodbye to smudging eyeliner with our permanent eyeliner tattoo services. Whether you want a subtle lash enhancement or a bold winged look, our permanent eyeliner options are tailored to your style.
Lip Blush Tattoo: Enhance the natural color and shape of your lips with a lip blush tattoo. This semi-permanent procedure gives you fuller, more defined lips with a natural flush of color.
Areola Tattoo: We also offer permanent areola tattoos, which can be a great option for those who have undergone breast surgery and wish to restore their natural look.
With our permanent makeup near me services, you can save time and wake up looking polished, enhancing your natural beauty effortlessly.
Keratin Treatment Near Me: Achieve Smooth, Frizz-Free Hair
If you're tired of battling frizz or dealing with unruly hair, a keratin treatment near me is the solution you've been looking for. At Lounge 483, we specialize in keratin treatments that help smooth, soften, and straighten your hair, leaving it looking glossy, healthy, and frizz-free.
Why Choose Keratin Treatment?
Frizz Reduction: Keratin treatments smooth the hair cuticle, reducing frizz and flyaways, even in the most humid conditions.
Sleek, Smooth Hair: Achieve silky, straight hair without the need for heat styling tools, saving you time and effort.
Long-Lasting Results: The results from a keratin treatment typically last for several months, meaning you can enjoy smooth, manageable hair for an extended period.
Improved Hair Health: The nourishing keratin treatment helps strengthen your hair, adding shine and vitality to dull, lifeless strands.
Whether you're looking for sleek, straight hair or just want to reduce the hassle of styling, our keratin treatment near me service is a game-changer for anyone struggling with frizz or damage.
Lash Extensions Near Me: Enhance Your Eyes with Gorgeous Lashes
At Lounge 483, we offer expert lash extensions near me services to give you voluminous, long lashes that make your eyes pop. Whether you want a natural look or something more dramatic, our lash artists will customize your extensions to suit your style.
Types of Lash Extensions We Offer:
Classic Lashes: For a natural, everyday look, classic lash extensions add length and volume to your natural lashes, giving you a subtle, enhanced appearance.
6 -
AGI Driving Academy: Premier Driver's Education in Lake Charles, LA
If you’re looking for top-quality driver's education in Lake Charles, LA, AGI Driving Academy is your trusted local driving school, providing comprehensive and expert instruction for drivers of all ages. Whether you're a teenager taking your first steps toward earning your driver's license or an adult looking to refresh your driving skills, we offer a wide range of courses to suit your needs. Located conveniently at 4019 Common St, Lake Charles, LA 70607, we’re committed to offering exceptional education that prepares you for a lifetime of safe driving.
Why Choose AGI Driving Academy for Driver’s Education in Lake Charles, LA?
At AGI Driving Academy, we believe that learning to drive is not just about passing a test but about gaining the confidence and skills needed to stay safe on the road. Here’s why AGI Driving Academy stands out as the top choice for driver’s education in Lake Charles, LA:
Experienced and Certified Instructors
Our team of certified and experienced driving instructors is passionate about helping you become a skilled and confident driver. They are patient, professional, and committed to teaching you the essential skills to drive safely in various traffic conditions. With AGI Driving Academy, you’ll receive the best possible instruction tailored to your pace and learning style.
Comprehensive Driver’s Education Programs
We offer a full range of driver’s education courses to meet the needs of everyone. Whether you're a first-time learner or an experienced driver looking to brush up on your skills, we provide both classroom and behind-the-wheel training to ensure a complete learning experience. Our program covers important topics such as traffic laws, road signs, defensive driving, and accident avoidance.
Flexible Scheduling Options
We understand that life can get busy, and finding time to attend driving school can be a challenge. That’s why AGI Driving Academy offers flexible scheduling for our students. Whether you need morning, afternoon, or evening classes, we work with your schedule to make sure your driver’s education in Lake Charles, LA fits seamlessly into your life.
State-of-the-Art Vehicles
Our fleet of modern, well-maintained vehicles is equipped with the latest safety features, providing you with a comfortable and secure environment in which to learn. Whether you’re just starting out or need to practice your skills for your road test, our cars are the perfect choice for your driving lessons.
Affordable and Competitive Pricing
We believe that quality driver’s education in Lake Charles, LA should be affordable. At AGI Driving Academy, we offer competitive rates without sacrificing the quality of instruction. We strive to make our programs accessible to all, ensuring that learning to drive is a valuable investment that doesn’t break the bank.
What to Expect from Our Driver’s Education Program
When you sign up for AGI Driving Academy’s driver’s education in Lake Charles, LA, you can expect a structured and thorough learning experience that includes both classroom instruction and practical, behind-the-wheel lessons. Here’s an overview of what’s included in our program:
Classroom Instruction: Learn the rules of the road, traffic laws, signs, and signals. You’ll also gain a solid understanding of defensive driving techniques, how to handle hazardous situations, and how to drive responsibly in all conditions. Our instructors provide clear and thorough lessons that prepare you for the challenges of driving in real-world situations.
Behind-the-Wheel Training: We believe hands-on experience is essential to becoming a confident and skilled driver. You’ll receive personalized driving lessons with one-on-one instruction, allowing you to practice everything from basic vehicle control to more advanced maneuvers such as merging, lane changes, and parallel parking.
Defensive Driving: One of the most critical components of our program is teaching you defensive driving techniques. Our goal is to ensure that you can anticipate and respond to hazards on the road, keeping you safe in any situation.
Road Test Preparation: We’ll help you prepare for the driving test by making sure you’re fully familiar with the skills and maneuvers required. You’ll get plenty of practice with a professional instructor, making sure you feel confident and ready for your test day.
Convenient Location in Lake Charles, LA
Located at 4019 Common St, Lake Charles, LA 70607, AGI Driving Academy is easily accessible for students throughout Lake Charles and the surrounding areas. Whether you live in the city or nearby communities, our central location ensures that high-quality driver’s education in Lake Charles, LA is just a short drive away.2 -
Minuteman Press: Your Trusted Print Shop for Quality Printing Services in Minneapolis and Golden Valley, MN
When you need reliable, high-quality printing services, Minuteman Press—formerly known as Brite Color Press—is here to serve you. Located at 644 Mendelssohn Ave N, Minneapolis, MN 55427, we pride ourselves on providing exceptional printing solutions for businesses and individuals in Minneapolis, Golden Valley, and the surrounding areas.
From poster printing in Minneapolis to custom waterproof menu printing, we offer a wide range of printing services that cater to your unique needs.
Print Shop in Golden Valley, MN – Local and Reliable Service
If you're searching for a print shop in Golden Valley, MN, look no further than Minuteman Press. We provide personalized printing services for local businesses, residents, and organizations in Golden Valley. Whether you need business cards, flyers, brochures, or custom promotional materials, our expert team delivers high-quality prints with a quick turnaround time. We understand the needs of the Golden Valley community and are committed to helping you bring your ideas to life.
Poster Printing in Minneapolis – Make Your Message Stand Out
Need poster printing in Minneapolis? Minuteman Press is your go-to provider for eye-catching, vibrant posters that leave a lasting impression. Whether you’re promoting an event, a sale, or showcasing artwork, we specialize in creating high-quality posters in any size or format. Our advanced printing technology ensures sharp, crisp colors and high-resolution prints that make your posters stand out wherever they are displayed.
Printing Companies in Minneapolis, MN – Why Minuteman Press Stands Out
With so many printing companies in Minneapolis, MN, Minuteman Press stands out for its personalized service, exceptional quality, and quick turnaround times. Here’s why we are the preferred choice for businesses and individuals in the area:
Expertise and Experience: With years of experience in the printing industry, we have the knowledge and skills to tackle any project, large or small.
Wide Range of Services: From business printing and marketing materials to custom projects, we offer a full spectrum of printing services to meet all your needs.
State-of-the-Art Technology: We use the latest printing equipment to ensure every project is completed with the highest quality possible.
Fast and Affordable: We provide competitive pricing without compromising on quality. Our fast turnaround times make sure you get your prints when you need them.
Waterproof Menu Printing – Durable and Long-Lasting
If you're in the food service industry and need menu print waterproof materials, Minuteman Press offers durable, high-quality waterproof menu printing solutions. Our waterproof menus are perfect for restaurants, cafes, bars, and catering businesses, ensuring that your menus remain pristine and readable no matter the conditions. Whether you need laminated menus or custom waterproof materials, we can create a solution that fits your business's needs and style.
Why Choose Minuteman Press?
Local and Personalized Service: As a locally owned and operated business, we prioritize customer satisfaction and offer personalized service to every client.
High-Quality Prints: We use the best materials and printing techniques to produce sharp, vibrant, and professional results every time.
Wide Range of Options: Whether you need business cards, banners, custom signs, or waterproof menus, we have the expertise and technology to bring your vision to life.
Quick Turnaround: We understand that time is of the essence. That's why we offer quick turnaround times without sacrificing the quality of our work.
Contact Us Today!
For top-quality printing services in Golden Valley, Minneapolis, and surrounding areas, Minuteman Press is the name you can trust. Call us today at +1 (763) 205-3705 or visit us at 644 Mendelssohn Ave N, Minneapolis, MN 55427 to discuss your printing needs. We look forward to helping you create exceptional printed materials that make an impact!
Minuteman Press – Your local print shop for quality and reliable printing services!2 -
When it comes to healthcare professionals, uniforms are not just about appearance—they play a key role in daily performance. For men working in hospitals, clinics, or medical facilities, the right scrubs for men can significantly affect comfort, focus, and overall work performance. Whether you are a doctor, nurse, or any other medical professional, understanding the factors that impact your choice of male scrubs can make a difference in how efficiently you work.
visit: lintex.in/category/male/
Durability
Working in a healthcare setting often exposes your uniform to rough conditions—spills, stains, and wear and tear. The best mens scrub options are made from durable fabrics that can withstand daily use and frequent washing. Scrubs made from lower-quality materials can fade, shrink, or lose their shape quickly, resulting in the need to replace them more often.
Durable male scrubs save time and money in the long run, ensuring you don’t have to keep buying new ones. This also adds peace of mind, as you won’t be distracted by the state of your uniform and can stay focused on patient care. When buying scrubs for men, it’s essential to consider durability to maintain a professional appearance throughout your shifts.
Breathability and Temperature Control
Healthcare professionals spend long hours on their feet, often in warm or stuffy environments. Wearing mens scrub sets made from breathable fabrics is essential to stay cool and comfortable. Scrubs with moisture-wicking properties are designed to draw sweat away from the body, keeping you dry and preventing body odor.
The best medical scrubs for men are made with fabrics that allow for airflow, preventing overheating and promoting comfort in both high-pressure and high-temperature environments. When your body temperature is regulated, it’s easier to stay focused and perform tasks without feeling distracted by discomfort.
Comfort and Fit
One of the most important factors affecting work performance is the fit and comfort of mens scrubs. Scrubs that are too tight or too loose can restrict movement, making it difficult to perform essential tasks. Best male scrubs are designed with a comfortable fit that allows healthcare professionals to move freely, bend, stretch, and lift without any discomfort. Scrubs that fit well reduce distractions, allowing you to focus on your patients and work at your best.
Additionally, the fabric’s softness is crucial for comfort, especially during long shifts. Best medical scrubs for men are often made of materials like cotton blends or moisture-wicking fabrics that provide comfort all day long. If your scrubs are uncomfortable, it could lead to irritation or fatigue, which can hinder your performance.
Pockets and Practicality
As a healthcare professional, you need quick access to medical tools and instruments like pens, thermometers, and stethoscopes. The placement and number of pockets in male scrubs can play a big role in your ability to keep essential items within reach. Scrubs with multiple, well-placed pockets allow you to organize your tools and supplies efficiently.
Choosing the best male scrubs that offer functional pockets can boost your productivity. Scrubs with extra pockets on the chest or thighs give you the ability to carry all your tools without needing to leave your station or interrupt your workflow. This feature directly impacts your ability to stay organized, focused, and on-task throughout the day.
Flexibility and Range of Motion
Another important factor that affects work performance is the level of flexibility offered by your mens scrubs. Healthcare professionals need scrubs that allow for a full range of motion to perform physical tasks such as lifting, bending, and assisting patients. Scrubs that are too stiff or tight can limit your movements, making it harder to perform hands-on tasks efficiently.
When you choose the best medical scrubs for men, opt for scrubs with stretchable fabric blends that provide flexibility without compromising comfort. This ensures that you can move easily and focus on your work without feeling restricted by your uniform.
Professional Appearance
The way you look in your scrubs plays a role in your confidence and professionalism. Scrubs that are well-fitted and stylish contribute to a more polished appearance, which can influence how patients and colleagues perceive you. Wearing the best mens scrub that fits your personal style while adhering to professional standards can make you feel more confident and prepared.
When you look professional, it not only boosts your self-esteem but also helps build trust with your patients. A neat, tidy, and well-maintained uniform is a sign of competence and care, which can positively influence your interactions with others in the healthcare setting.
1
