The Forty-Year Programmer
A brilliant post by Noah Gibbs with some good insights in what it means to be a developer and the things you should focus on.
Read more [codefol.io]
Posts tagged with programming
A brilliant post by Noah Gibbs with some good insights in what it means to be a developer and the things you should focus on.
Read more [codefol.io]
Good tips by Jeffrey Way
Read more [laracasts.com]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
DRY is just like every other principle out there - it has its place, but it's best taken in moderation.
Read more [gordonc.bearblog.dev]
Shawn McCool shares some interesting thoughts on how things should be named.
Read more [shawnmc.cool]
– doeken.org - submitted by Doeke Norg
In this post I want to introduce you to Tree structures. What they are, how you can use them, and in which situation they can be helpful.
Read more [doeken.org]
– doeken.org - submitted by Doeke Norg
Enhance (final) classes and functions by implementing these similar, but not quite the same, patterns.
Read more [doeken.org]
In this post, Jean Yang focusses on why we don’t see more high-growth startups focused on the kinds of languages and tools coming out of the PLDI community, the “deep tech” side of programming tools.
Read more [www.akitasoftware.com]
We talk about cleverness as if it’s Just Bad, such as “clever code is harder to debug”. That’s going too far. Cleverness can lead to faster, safer, even clearer code.
Read more [www.hillelwayne.com]
– www.tonysm.com - submitted by Tony Messias
Tony Messias been looking up resources on the roots of Object-Oriented Programming. He shares some very interesting ideas.
Read more [www.tonysm.com]
– liamhammett.com - submitted by Liam Hammett
There are a few different ways to handle translated text in your codebase, but here we’ll cover 2 of the more common approaches; using the full text in your source code, and using translation keys.
Read more [liamhammett.com]
Ross Tuck doesn't blog often, but when he does, it's worth your time!
Read more [www.rosstuck.com]
My colleague Brent wrote an interesting piece on how different people with different personaliteits can work together.
Read more [stitcher.io]
In an internal knowledge sharing session, my colleague Rias demonstrated this, and I was blown away by some of the features.
Read more [medium.com]
FFI lets you include external libraries written in other programming languagues in your PHP code.
PHP Foreign Function Interface, or FFI for fans, is a PHP extension that allows you to include with ease some externals libraries into your PHP code. That means it’s possible to use C, Go, Rust, etc. shared library directly in PHP without writing a PHP Extension in C. This concept exists for years in other languages like Python or Go.
Read more [jolicode.com]
– dev.to
Here a some great tips on how to write robust software.
NASA's JPL, which is responsible for some of the most awesomest science out there, is quite famous for its Power of 10 rules (see original paper). Indeed, if you are going to send a robot on Mars with a 40 minutes ping and no physical access to it then you pretty damn well should make sure that your code doesn't have bugs.
Read more [dev.to]
Matthew Rocklin reminds us that sometimes you shouldn't extract code.
However, there is also a cost to this behavior. When a new reader encounters this code, they need to jump between many function definitions in many files. This non-linear reading process requires more mental focus than reading linear code.
Read more [matthewrocklin.com]
Invokables in PHP are classes that you can use as a function. They have been around since PHP 5.3 and have many interesting use cases. Here's a quick example. class Invokable { public function __invoke() { echo 'I have been invoked'; } } You can use it like this: // outputs 'I have been…
Every friend I have with a job that involves picking up something heavier than a laptop more than twice a week eventually finds a way to slip something like this into conversation: “Bro,1 you don’t work hard. I just worked a 4700-hour week digging a tunnel under Mordor with a screwdriver.” They have a point. Mordor sucks, and it’s certainly more physically taxing to dig a tunnel than poke at a keyboard unless you’re an ant. But, for the sake of the argument, can we agree that stress and insanity are bad things? Awesome. Welcome to programming.
Read more [www.stilldrinking.org]
– dcsg.me
Daniel Gomes, a developer at Teamleader, explains a potential problem when cloning object in PHP.
As you know, PHP has a well-known clone keyword that shallow copy all of the object’s properties. So under the hood what it does is to create a new Object with the exact same values of that object properties – unless you change its behavior by implementing the clone() function in your class.
Read more [dcsg.me]
?♂️So you think that code always flows through either the if or else branch in a PHP script?
— Freek Van der Herten (@freekmurze) June 13, 2018
Hold my ?
----
<?php$pid = pcntl_fork();
if ($pid) {
echo 'in if';
}
else {
echo 'in else';
}
----
Try it out!#processcontrol #fun
Read more [twitter.com]