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 - "weak types"
-
Every day.
I am a PHP developer.
Yeah, "another PHP is awful" rant... no, not really.
It's just unsuitable for some ambitious projects, just like Ruby and Python are.
First of all, DO NOT EVER use Laravel for large enterprise applications. The same goes for RoR, Django, and other ActiveRecord MVCs.
They are all neat frameworks for writing a todo app, as a better-than-wordpress flexible blogging solution, even as a custom webshop.
Beyond 50k daily users, Active Record becomes hell due to it's lazy fat querying habits. At more than a million users... *depressed sigh*.
PHP is also completely unsuitable for projects beyond 5M lines of code in my opinion. At more than 25M lines... *another depressed sigh*.
You can let your devs read Clean Code and books about architecture patterns, you can teach them about SOLID & DRY, you can write thousands of tests... it doesn't matter.
PHP is scaffolding, it's made of bamboo and rope. It's not brick or concrete. You can build quickly, but it only scales up to a certain point before it breaks in multiple places.
Eventually you run into patterns where even 100% test coverage still doesn't guarantee shit, because the real-life edge cases are just too complex and numerous.
When you're working on a multi-party invoicing system with adapters for various tax codes, or an availability/planning system working across timezones, or systems which implement geographical routefinding coupled to traffic, event & weather prediction...
PHP, Python, Ruby, etc are just missing types.
Every day I run into bugs which could have been prevented if you could use ADTs in a generic way in PHP. PHP7 has pretty good typehints, and they prevent a lot of messy behavior, but they aren't composable. There is no way to tell PHP "this method accepts a Collection of Users", or "this methods returns maybe either an Apple or a Pear, and I want to force the caller to handle both Apple/Pear and null".
Well, you could do that, but it requires a lot of custom classes and trickery, and you have to rewrite the same logic if you want to typehint a "Collection of Departments" instead of "Collection of Users" -- i.e., it's not composable.
Probably the biggest issue is that languages with a (mostly) structural type system (Haskell, Rust, even C#/JVM languages to some degree, etc) are much slower to develop in for the "startup" era of a project, so you grab a weak, quick prototyping language to get started.
Then, when you reach a more grown up phase, you wish you had a better type system at your disposal...28 -
Dear Programming Languages,
if you only support weakly typed constructs, I wish you a special place in hell.
Dear Fellow Developers,
if you use a language that allows strong typing with weak typing, the next time we will meet after I have to fix a shitty bug due to that I will play piano on your teeth, and a melody you won't like.
And yes, that means PHP as well. PHP allows for strict types since php7.
So. Just. Fucking. Use. It.
There are no excuses!
I don't care if you don't see the benefit or find it "annoying" and tedious to write it out. Use a decent editor and it will be mostly code-completion anyway.
I just don't want to fix your fuckups. And if your fuckup is due to a typing issue that "slipped" by, you are part of the problem.
If you write software, it should be clear what type each and every variable or object has.
There are no excuses but your laziness.
If you want to be ambiguous, try poetry.23 -
So, what have We learned in this week (wk25)?
There are two types of websites.
The Website, which allows setting passwords Like "123", and the Website that says that your firstname is too weak and must contain lowercase, uppercase letters, requires three or more Numbers and at least two Special characters. -
'17:15' < '09:45' === false
'5:15pm' < '9:45am' === true
I either need a language with a stronger type system, or coworkers who understand that comparing raw time input in validation is a bad idea 😡6 -
Window Replacement Columbus, Ohio: The Ultimate Guide
When it comes to enhancing the energy efficiency, aesthetics, and value of your home, window replacement in Columbus, Ohio
is a smart investment. Whether your windows are outdated, damaged, or simply not performing as they should, replacing them with high-quality, energy-efficient options can make a significant difference. This guide will walk you through everything you need to know about window replacement in Columbus, Ohio.
Why Replace Your Windows?
There are several reasons why homeowners in Columbus choose to replace their windows:
1. Improve Energy Efficiency
Ohio experiences a range of temperatures throughout the year. Energy-efficient windows help maintain indoor comfort by reducing heat loss in winter and keeping cool air inside during summer. Look for ENERGY STAR-rated windows for optimal efficiency.
2. Enhance Curb Appeal
New windows can drastically improve your home's exterior appearance. With various styles, materials, and finishes available, you can customize the look to match your aesthetic preferences.
3. Increase Home Value
According to industry reports, window replacement can offer a high return on investment (ROI). If you plan to sell your home in Columbus, new windows can attract buyers and increase your property's resale value.
4. Reduce Noise Pollution
Living in urban areas or near busy streets? Modern windows with double or triple-pane glass help reduce outside noise, making your home quieter and more peaceful.
5. Enhance Security & Safety
Older windows with weak locks and outdated materials can be a security risk. Newer models offer advanced locking mechanisms and shatter-resistant glass for added protection.
Types of Windows for Columbus Homes
When choosing replacement windows, consider the various styles available:
Double-Hung Windows – A popular choice with two sashes that move up and down, allowing for better ventilation.
Casement Windows – Hinged on one side and open outward, offering excellent airflow and an unobstructed view.
Sliding Windows – Move horizontally along a track, perfect for contemporary homes.
Bay & Bow Windows – Extend outward, adding space and natural light.
Picture Windows – Fixed and designed to provide a clear, expansive view.
Choosing the Right Window Material
Vinyl Windows – Affordable, durable, and low-maintenance.
Wood Windows – Classic and aesthetically pleasing but require regular upkeep.
Fiberglass Windows – Highly durable and energy-efficient.
Aluminum Windows – Strong and lightweight but less insulating than other materials.
Finding the Best Window Replacement Company in Columbus, Ohio
To ensure quality installation and customer satisfaction, consider the following when choosing a window replacement company:
Reputation & Reviews – Check online reviews and ratings on platforms like Google and Yelp.
Experience & Certifications – Look for companies with certifications from leading manufacturers or the National Fenestration Rating Council (NFRC).
Warranty & Guarantees – Choose a provider that offers warranties on both materials and labor.
Free Estimates – Get quotes from multiple companies to compare pricing and services.
Cost of Window Replacement in Columbus, Ohio
The cost of replacing windows varies based on factors such as:
Window size and style
Frame material
Glass type (double-pane, triple-pane, low-E coatings)
Installation complexity
On average, Columbus homeowners can expect to pay between $300 to $1,200 per window, including installation.
Conclusion
Investing in window replacement in Columbus, Ohio can significantly improve your home's comfort, efficiency, and value. By selecting high-quality windows and hiring a trusted contractor, you can enjoy long-term benefits and a great return on investment. Start your search today and find the perfect windows for your Columbus home!
6
