@glyph@treyhunner@jacob I'll also say that Eric Snow has pushed for this to be an expression, which would let you inline the creation in a class statement so you could immediately subclass to add methods.
@brettcannon@treyhunner@jacob I would be okay with “no inheritance” as long as we could have methods, but also it wouldn’t be terrible to say “class foo(struct (a, b, c)): …”. Not sure I see an advantage beyond “struct foo(a, b, c): …” yet, but either spelling is equally good as far as my own use is concerned
I'm a #software#engineer living in #Saskatchewan, #Canada, the middle of the prairies. I've worked in countless domains, but find #python generally useful for many of them, and have been using it for nearly 30 years.
I'm a #HouseRabbit enthusiast and have had them for more than 20 years.
@cazabon Love how buns earn their names. Rousseau was reddish (roux) and drank lots of water and peed a lot when he first came to us (ruisseau = stream).
You must go through cartloads of greens with those gals!
@cazabon Not a fan of Jean-Jacques, but the name suited for other reasons.
A lot of variety in your names. Our first was Muggins (cribbage fans), then Blossom (rescued in springtime), Whitby (tiny & white), Richmond (rescued by cop in that city), Byron (liked chewing old poetry books), Duffle (who knows??), and Rousseau. Will commit to another bun when it feels right.
@fedops@reiver That sounds like a "You Problem" because yes, it's easy, and they're awesome.
It helps that we don't follow the Boomer practice of demanding rock star 10x ninjas with CS degrees (under 25 years old, of course), who are willing to commute to our office in San Francisco for $15/hr after a six-month unpaid internship.
If you fix your search filters and you'll get good applicants. If you don't, that's on you.
I always thought that that article was distinctly unfair to Python; firing up the IDLE shell gives one basically the same REPL-with-ad-hoc-bits-of-program experience that BASIC gave me and my generation on my old 8-bit micros.
Hell, it even has turtle graphics built in, right out of Introduction to Logo.
When the MTA announced discontinuing their live subway alerts due to Twitter's new excessive pricing policy, I took it as an opportunity to set up @mtaupdates.
frontend twtr is currently debating whether polluting global variables is a good idea or not in case you needed more reasons to not go there anymore #webdev#webstandards#profesh
Why should you unit test? What should you unit test? And how much?
Today's blog post answers these questions and provides some helpful guidelines.
The post is actually a lightly edited extract of a book on unit testing that I started about 10 years ago but never finished. Still, it has aged reasonably well.
@henrikjernevad Every test you listed there is the type that should be deleted when you are done.
Which is to say you are missing something critical: to ensure when someone in the future makes a change they don't introduce bugs. Any test that will never alert you to a bug in your code by failing should not be kept. (that is about 80% of all tests, but I don't know how to figure out the difference)
v1.0 then:
“Perl is kind of designed to make #awk and #sed semi-obsolete […] The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal).” https://github.com/Perl/perl5/releases/tag/perl-1.0
@mjgardner@Perl I remember first encountering Perl as Perl3, just before Perl4 and the Camel book. I remember looking at the crazy sigils and deciding, "this is it, the first new language I don't bother to learn."
6 months later, I had learned.
30+ years later, the majority of my working life continues to be spent manipulating those sigils. @rrays and $calars and h%shes FTW!
Here's a fun one for #nodejs folks: when using the cluster module, how do you get the total count of connections to a net.Server?
Because it's not getConnections, that seems to only return the number of connections for the current fork, as increasing the cluster fork number but keeping the connection load the same sees the number of connections decrease proportionally to the cluster fork number.
This seems to be a bug in Node.js, but I don't yet have reproducible code to prove it.
Question for people who make websites, especially hobby websites, that use cookies:
what do you put in those cookies? They're allowed to be up to like 4KB for your whole domain, right?
That both seems like too much for "just" a user/session ID, while also being too little to hold actual state (like, game history & stats) for a website with a dozen toys on it.
@nosherwan@keithjgrant Oh I’ve been involved with that spec. It’s very interesting. Talked about it on Shop Talk Show last year. (CSS Cascade level 6 — not a different spec with "Scope" in the title. @davatron5000 made fun of me sighting spec level numbers, :P rightly so...)
@mjgardner I wrote a 200 line Proof of Concept, that by the time I left last job had turned into a ~14K LOC behemoth that should never have been put into production for all these reasons.
@godeater “...[T]here are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.
Over the years as a software developer I've had projects where I spent intensely collaborating in a team, and projects where I work by myself. I feel the tension between the two.
When I'm in a team I want to collaborate, even though the human interaction is quite draining to me. This means pairing and discussing plans and strategy.
But when I am working alone I feel pleasure of being in the flow and cranking out code.
I've had the pleasure of working in a highly effective team for a few years. The team didn't start out that way, but we got there together. The team wasn't composed of extraordinary developers, but a mixture of normal devs each with our own strengths and weaknesses. We just collaborated well and frequently.
The other reason teams have the wrong defaults for collaboration is because the culture and tools are heavily influenced by open source development practices.
In many ways that has been a good thing, but in this case it's not. Open source collaboration is optimized for asynchronous collaboration, different intensity of contribution, low default levels of trust.
And that's not like a tight-knit effective software development team at all.