skysight-inc/HackerNews huggingface dataset:
It's an Australian network so I already can figure what country that peer is from.
That's funny and educational at the same time.
Don’t WAIT for your turn to talk.
Ask HN: How to deal with the short vs. long function argument
I've been a programmer for 25 years. A realization that has crept up on me in the last 5 is that not everyone thinks that functions should be short: there are two cultures, with substantial numbers of excellent programmers belonging to both. My question is: how do we maintain harmonious, happy, and productive teams when people can disagree strongly about this issue?

The short-functions camp holds that functions should be short, tend toward the declarative, and use abstraction/implementation-hiding to increase readability (i.e. separable subsections of the function body should often be broken out into well-named helper functions). As an example, look at Peter Norvig's beautiful https://github.com/norvig/pytudes. For a long time I thought that this was how all "good programmers" thought code should be written. Personally, I spent over a decade writing in a dynamic and untyped language, and the only way that I and my colleagues could make that stuff reliable was to write code adhering to the tenets of the short-function camp.

The long-functions camp is, admittedly, alien to me, but I'll try to play devil's advocate and describe it as I think its advocates would. It holds that lots of helper functions are artificial, and actually make it _harder_ to read and understand the code. They say that they like "having lots of context", i.e. seeing all the implementation in one long procedural flow, even though the local variables fall into non-interacting subsets that don't need to be in the same scope. They hold that helper functions destroy the linear flow of the logic, and that they should typically not be created unless there are multiple call sites.

The short-function camp also claims an advantage regarding testability.

Obviously languages play a major role in this debate: e.g. as mentioned above, untyped dynamic languages encourage short functions, and languages where static compilation makes strong guarantees regarding semantics at least make the long-function position more defensible. Expression-oriented and FP-influenced languages encourage short functions. But it's not obvious, e.g. Rust could go both ways based on the criteria just mentioned.

Anyway, more qualified people could and have written at much greater length about the topic. The questions I'm asking are

- Is it "just a matter of taste", or is this actually a more serious matter where there is often an objective reason for discouraging the practices of one or other camp?

- How can members of the different camps get along harmoniously in the same team and the same codebase?
# Details
1) 6 hours: Research almost ten features, and update pages partly on website, then wait for user feedbacks to decide priorities.
Basically by google.
2) 2 hours: Design one logo, and yes a little ugly, need to optimize.
Free
By Looka(free logo generator)

3) 6 hours: Write 6 pages, exhausted, although 60% content is re-created from different places.
Polished by ChatGPT.

# Results of tweetgrok.ai:
9 page visits and 7 uniq visit.

Nov-08-2023.
What Is Erewhon? The History of the L.A. Cult Grocer
nah, they can waste other peoples resources if they please...public funded are they? typical
Singapore, from a Singtel peer?
Show HN: Holocron, Notion like editor for Markdown files, synced with GitHub
I'd have been even more anxious if the workaround for the missing OTP was him saying "trust me, I'm the manager, the customer is very upset" or some other thing that's trivially socially engineered by a competent scammer...
Came here to say this. I found it a bit jarring to look at actually...
Kinda harsh to see it that way. You could remove the last four 4 sentences of the post and don't see it as an ad at all. The post does actually explain the most important part and the guy just tells us we can hire him if we need help.
That's the most obvious pick - US medical industry is so famed for being obnoxiously expansive that even their own movies makes fun of it.

Just from the top of my head I remember two scenes from two different movies - the one from Hangover II where Phil gets shot and gets treatment in Bangkok hospital ("10 dollars - how is this even possibile") and from some other comedy where one of main villans, literal rocket scientist, complains that he had no other choice because he have four children with braces and how he could possibly afford that.
There are companies that don't view Development work as the "cost" center for the business, but much more directly as the "Profit" center of the business. This is not necessarily the norm, and certainly not in certain industries like Education or especially Hospitals, or Law where IT are basically seen as second class citizens (however well they may be compensated).
>I just wish people would remember that they've already told me a story before.

I always get paranoid they'll remember half way through the story that they've told me it before, and then ask why I didn't say anything.
If you only do programming for a job, it is probably very difficult to see how someone could be passionate about computing.

I suppose I can't really illuminate this point, but I suppose for me it's about figuring things out and making something? Maybe a bit like maths, but if you play your cards right you have something to come out of it with.
I think UK is the exact opposite of NL in terms of having the sensitivity to don’t hurt others, Germany is a middle ground, the only thing I can mention of Germany was the guy at burgeramt complaining because I arrived a couple of minutes earlier to the appointment and he didn’t start his shift yet ^^
https://github.com/reegnz/jq-zsh-plugin/blob/e61804e35a593ad...

zshbuiltins(1): Unlike parameter assignment statements, typeset's exit status on an assignemt that involves a command substitution does not reflect the exit status of the command substitution. Therefore, to test for an error in a command substitution, separate the declaration of the parameter from its initialization.
Sure, but how do they reach those technicians? They can't call them.... Hopefully they provisioned sat phone backups for enough of them! Or they're HAM radio enthusiasts.
MISRA is pretty narrow, but I think the comment still stands because almost all the stuff I'd actually enjoy doing in C, can probably be done with MISRA.

If it needs malloc, it might be something that could be C++ or Rust
> BTC has been consuming all of the planets energy since at least 2020[1].

That is plainly false[2], and the linked article does not say what your sentence purports it to say. :D

2: as evidence I can point out that I have seen at least one car moving since 2020. That was clearly using energy BTC did not consume. Same with observing at least one light bulb illuminating, or at least one person breathing.
Libre vs Gratis.

That FOSS software is given gratis is a happy byproduct of it being libre and having zero cost to copy.

"open source" cola for example is not free to manufacture, so it has some cost associated, though you could make it yourself if you had the means.[0]

[0]: https://en.wikipedia.org/wiki/Open-source_cola
Google and prominent telecom groups call on Brussels to act over Apple iMessage
https://archive.ph/tWYgy
Same problem here - grew up in toxic friend, school, and social group environments where anything you revealed about yourself was almost certainly going to be weaponised against you at a later point. You pretty quickly learn to never divulge anything...
What gets me is that Tesla seems to have nailed the hard parts about making BEVs (battery/engine management) but struggles with things like interior fittings and vibration noise and some other minor design issues.

Here in Dublin (the one in Ireland) there are a number of Teslas operating as taxis and you can see some of that as plastic parts break off or start making vibration noises as the car ages (and taxis age faster because they have higher duty cycles).
Hey everyone,

I've got to share this with you because, honestly, it's been a wild ride.

6 month ago, I was all in on the crypto wave, working hard and feeling like I was on the cutting edge.

Then the market crashed, few months later, I was out of job.

I felt it coming, with all the massive tech layoffs, I knew I needed to diversify my incomes. This is when my flatmate told me about a guy running a design agency by himself and was doing crazy numbers.

I think we all know the story of Brett from designjoy.co and his productized service.

Think of it like a (very expensive) gym membership but for design. People sign up, pay monthly, and get a set amount of design work. It seemed so straightforward, and I thought, "Hey, I could do this with web development.”

So I took Brett’s course and joined his community to learn how he was doing it and start my own venture with all the right cards in hand.

But getting started wasn't a walk in the park… As a software engineer, seing that you’d need to connected dozen of different tools to run your agency to finally offer a shattered experience to your subscribers was unthinkable.

After talking with a lot of different people trying to start a productized service, I decided to work on making this process easier and accessible to all.

That's when I decided to build https://breeew.com. It's a simple platform, but I’m proud of it!

It helps you create and manage productized services, it essentially reproduce DesignJoy workflow but from a single place, you never need to do any manual action, everything is automatically managed for you. (I spent a lot of time on making the perfect UX)

Anyway, fast forward to today, I actually started by own productized service (liberto.dev) and generate $8K monthly recurring revenue.

It's not just the money (though that's pretty sweet), it's the feeling of being my own boss that's truly priceless.

I know a lot of you out there are hustling hard, maybe feeling a bit stuck or looking for a side gig that could turn into something more. I'm telling you, if I can do it, so can you.

You've got the skills; you just need to put them out there in the right way.

If you're curious about how I made it work or just want to bounce around some ideas, I'm here for it. Let's help each other out.

And hey, if you want to see how https://breeew.com could work for you, go take a look. I built it to help people just like us get ahead.
Microsoft neither focus their OS on desktop nor user. They focus on selling users tool spies on users. Almost any progress on Windows is microsoft centric.

Even their main weapon (API) now is holstered.
Never seen such a case. Was it a body shop, semiconductor company, or someone like Google where they put JS devs in charge of writing C?

I worked in an automotive and IOT and the difference between juniors and seniors there was like between us and John Carmack.

As a former embedded C dev I really can't fathom being better than seniors in this gig who have been in the trenches since you can't self study the kind of stuff you encounter in production devices.
These are working essays for the ongoing Linguistic Epistemology project. The linguistic terminology used will be Saussure’s.
I didn't ask how to install it, and made no reference to safety. I also do not have access to an Apple device where I could use brew.
I think it would be pretty obvious what happens if you get asked "Do you want to share your name, date of birth, email with XYX Private Company". And we still have GDPR, so abusive data collection can be punished, and revocation of consent afterwards is still possible.
I think this fuss about this "Shot on iPhone" event is completely overblown, and while Log-support et al is great, it's yet another achievement of orchestrated Apple-Marketing.

The much simpler conclusion of all this "Shot on iPhone" event is:

If you have a full video production setup including the necessary (post-)production workflow, you MAY be able to replace the camera with one or many iPhone 15 Pro now.

In reality, your mileage will vary, for example due to the unspoken matter of iPhones overheating when constantly recording AND charging AND streaming video to USB-C.
Bevacizumab (brand name avastin) for metastatic colorectal cancer (standard of care in the Netherlands, approved by the FDA and EMA and recommended by the consensus guidelines of ESMO https://www.esmo.org/guidelines/guidelines-by-topic/esmo-cli...) and is a well known example. See the response of parliament to a petition to change it now that the patent has expired. NHS will still not fund it and cites cost as an important factor https://petition.parliament.uk/petitions/616742?reveal_respo... .
I would note that since funds are limited, any system needs some kind of cost-benefit analysis for drugs to ensure affordability of care. Making this cost-benefit analysis central, transparant, and explicit is probably the best way to do it.
Responsiveness doesn't play a role in what I'm talking about. And if Boston Dynamics can integrate it into real-life robots to some degree then it can also be done in games.
Is a laptop mic close enough?

https://en.wikipedia.org/wiki/Deathconsciousness#Composition...
How do you measure success with something so subjective?
HTML wasn't designed for writing applications.
What information exactly are you missing? The post lists why developers do it, why it’s bad, and what you can do instead - as promised.

I don't think we should have an "ad" tag. Most "show hn" posts are basically ads for new products, and still very useful and very welcome. If you think a submission is inappropriate or dishonest, you can flag it and write your reasons in comments.
In that 30%, try to have maximum impact. That's the reason, clever, witty guys are admired.
There's a song by John Grant song, GMF (Greatest Motherfucker), that made me painfully aware of me having the same issue. The line is: "I'm usually only waiting for you to stop talking so that I can"
A good manager reframes and finds a way to protect themself from what you are describing.
Paying to develop and scale a significantly improved treatment for a condition that affects many people is an altogether different proposition.

> then why shouldn't we?

Ultimately, there's only so much economy to go around. What percentage of it are you willing to dedicate to treating that one condition? What about everything that can't be funded or produced as a result of that allocation?
1) You do to like to talk about yourself: you're doing it right now.

2) And you like to listen to others talking about themselves: you just read an article of somebody talking about themselves.

3) And you don't skip human interaction altogether: you just initiated it right now, too.

Three in a row: You may not be very good at introspection, nor honest with yourself and others, but you do actually talk about yourself, listen to others talk about themselves, and initiate human interaction, so there is hope!

You should get out more, and learn more about yourself and other people, because you have a lot of mistaken beliefs about yourself and others, and as much to unlearn as you have to learn.

Sorry to talk about you so much, but you brought it up. Now I can get back to talking about myself!
I love `ko`. I wish there was something similar for rust but I haven't found it quite yet
I'm not sure how it's counted (whether it includes forcibly migrated), but according to Statista, Russia currently holds the majority of non-internal Ukrainian refugees.
Any tips on self-hosting email?
How do you suggest handling that?
Rouge city or delta? Can’t find delta.
> they decided that the iPhone 15 Pro was going to be used to film the keynote for the iPhone 15 Pro

And they didn’t do that: as far as we know, the keynote for the iPhone 15 Pro was not shot with iPhone 15 Pro.
Sure do, I haven't actually used this one (I implemented it just then) but it should do the trick: https://gist.github.com/joeycumines/6206f2a6cd79875c7c164738...
But isn't that something of the past? I am mostly working with systems that handle the bulk of the problem, providing process, data model, etc. And extensions are done via a specific programming language, ABAP for SAP, APAX for Salesforce, but in the end, it all ends up to be like any other software development projects, with compile time checks, etc.
Limiting CPU to the amount guaranteed to be available also guarantees very significant wasted resource utilization unless all your pods spin 100% CPU continuously.

The best way to utilize resources is to overcommit, and the smart way to overcommit is to, say, allow 4x overcommit with each allocation limited to 1/4th of the available resources so not individual peak can choke the system. Given varied allocations, things average out with a reasonable amount of performance variability.

Idle CPUs are wasted CPUs and money out the window.
JQ + journald is great too, but 20 years of muscle memory writing bash / python / perl / awk / sql / ruby / JS / CSS selectors / xpath / xmlstarlet one-liners keep getting in my way. I keep long notes on both with examples of common tasks. I still dislike yaml (significant whitespace is my “ick” as the kids say) too much to learn whatever the equivalent is for that and still find CSV/TSV easier to slice and dice at will due to my own personal history.

I’m sure at this point that many ETL jobs in notebooks we run at $BigCo today could be reduced to jq expressions that run 100x faster and use 1/10th the memory.
No, but some colleagues do. Also, I think some of my simulation software will start to be used by the project.
DSA Transparency Reports Tracker
This link was probably already available when I posted my request :
https://www.researchgate.net/publication/373017477_Core_mito...

PDF :
https://www.researchgate.net/profile/Mark-Emmett/publication...
You are bringing an interesting point (and with your permission maybe I can update in few days when I have time this article with your data point) about increased number of downloads in weekends. If there are spikes during the weekends then I don't think we can count them on companies running CI/CD pipelines.

Regarding the reduction in growh over the few months, I think that is a hard to assess on such a lower scale. I think only in 6 months to 1 year we can look back at this period and see if the trend is going down or not.

I am also biased :) because I like Ruby and I am in general an optimistic person.
They are big, but if they can't invest in small AI startups, they're doomed.
Profitable before considering the alternative of a guaranteed return at a higher rate is unprofitable, people were just confused (or imprecise about an irrelevant distinction) when the interest rate was near 0.
At least this wall is low enough that we can watch it without logging in.
> Most coworking places are clean, organized, have snacks, do not have Wi-fi issues

You would think so, but this is incorrect. Every single WeWork you go to, across the globe, offers the same fantastic experience from "feel good vibes" to functional meeting rooms, wifi, and ad-hoc services.

But even if there are local gems, it becomes another chore to browse listings, read reviews, spend time deciding between Coworking Space A and B and C. With WeWork and Regus/Spaces, you save a lot of time and can just get there, and get busy.

> The customer you describe "picky and willing to pay double normal rates when travelling to foreign countries" is quite of a niche use case.

Not OP but just like luxury hotels are niche, WeWork is not your local coffeeshop and does cater to a different crowd. Whether that's profitable for them or not, looks like not for now.
Maybe pedantic, but OPs advise is actually "disable the button, but don't use the disable attribute to do it". Instead they store the disabled state in the form and set a CSS style to make the button look like a disabled button. Which makes that information unavailable to screen readers, but avoids screen readers jumping around the page because button loses focus when disabled.

Also a useful note that disabling the button with the disabled attribute isn't enough to prevent people from submitting a form. Which is useful to remember, but not actually a justification for any of this (you can just check the disabled state of the button in your submit method)
Adobes AI is in Photoshop.

It's a tool. What the AI does, is give people the ability to do things that would take technical skill in the past, but what the human does is still the creativity and the concept and how to put those together into something useful.

The AI opens this level of creativity up to many more people as it remove the barrier to entry.
That depends on whether it's actually a classic HTML <form>, or whether it's just a collection of input fields submitted through JavaScript.

And of course, if you disable the button, you could prevent duplicate form submission as well through the onsubmit event.
You and I have watched the same Youtube video
I feel it's very much not the norm, except for early-stage tech startups, and companies that use software directly to print money - which more often than I'd like means adtech or gambling. All the "useful" or "worthwhile" activities, in the traditional, social sense, tend to be cost centers.

Now, without passing too much judgement, I'm starting to feel the unease comes straight from the cost/profit center distinction, as another way to define it is: profit center is what you do to get the money, so you can spend it on the cost center. The former is more exposed to market pressures, thus more likely to evolve into something ugly.
I think the whole world is already extremely familiar with how Donald Trump thinks and acts and talks by now, and why he is such a horrible un-empathic person and a menace to society, who is absolutely unqualified to hold office.

See? That wasn't about myself at all. That's how it's done.
What Will Be Future of AI in White Label Poker Software?
Artificial intelligence is all set to revolutionize online gambling industry. This will help gambling software providers to offer more sophisticated and player centric solutions. This will elevate player experience too. Artificial Intelligence chat bots will provide 24*7 customer support. Mobzway is a team player who specialize in developing casino games and software for online gambling platforms. They provide a wide variety of casino games. Some of games provided by Mobzway are Black Jack, Baccarat, Roulette, Slot Game, Andar Bahar etc. What will be the potential developments of Artificial Intelligence in future? Let's see.

1.Enhanced Player Experience

Artificial Intelligence will make player experience more enjoyable by analyzing player behavior and preferences. Promotions and bonuses will make game experience more exciting too.

2.Security

With the help of Artificial Intelligence it is easy to crack fraud detection and player verification enhancing security of online casinos.

3.Game Development

Artificial Intelligence can aid in game development by creating engaging games, optimizing game mechanics and introducing visually appealing graphics.

4.Customer Support

Artificial Intelligence enabled chatbots provide customer support round the clock. They will answer player queries and resolve issues efficiently.

5.Marketing

Artificial Intelligence will enhance marketing strategies to an extend. They target specific player segments and improve conversion rates.

In short, Artificial Intelligence will continue to improve efficiency, personalization and decision making across various industries.
Can I write time critical functions in Rust and make it available to gleam as a module? This would be an interesting way of building a distributed framework (e.g., on a cluster for scientific computing like ML) in rust.