Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chikere232
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
91.
▲
by
chikere232
2y ago
This works in regular C as sizeof() is a constant expression, but perhaps that was your point?
92.
▲
by
chikere232
2y ago
Very true. Get backups
93.
▲
by
chikere232
2y ago
If you want to write D, write D. C is fine without these things
94.
▲
by
chikere232
2y ago
Not to take away from the possible usefulness of constant functions, but it's amusing that the article example of `sum(5,6)` would work great in C if written as 5 + 6, or done as the equivalent macro
95.
▲
by
chikere232
2y ago
You could use whatever preprocessor you like really, just add a make step that translates your template into c. I've seem some crazy person use M4 for example. It's usually a bad idea, but very feasible
96.
▲
by
chikere232
2y ago
People learn the ordering. If that is their biggest hurdle learning C they have a blessed life
97.
▲
by
chikere232
2y ago
Also, usually it's pretty rare to have things internal to one C file that need explicit prototypes. It's easier to just put things in the right order so the funtion definition etc is before its use.
98.
▲
by
chikere232
2y ago
That's pretty cool, but also, get version control
99.
▲
by
chikere232
2y ago
You might benefit from make, as you wouldn't need a full rebuild every time, or have to spell out every step.
100.
▲
by
chikere232
2y ago
> Makefiles are a good example. Every makefile author must write their own functionally identical "clean" target. Shouldn't there be an implicit default? At some point you have to give the system something to go on, and th
101.
▲
by
chikere232
2y ago
Let's keep "cmake effect" for "trying your best to not have to touch the language and repeatedly looking for something else whenever you do" It's a very microsoft feeling pile of crap
102.
▲
by
chikere232
2y ago
Practically it has kinda converged, though not necessarily on a global optimum. Most coding is done in relatively few languages.
103.
▲
by
chikere232
2y ago
This would be an overengineered version of "I set my watch early so I'm not late" except that they argue that all watches should be set early, making it fundamentally pointless 12:00 meetings now start at 11:59:30 and you
104.
▲
by
chikere232
2y ago
MS DOS choice of / for commandline arguments and \ for paths always hurts my eyes
105.
▲
by
chikere232
2y ago
The metaverse was obviously worse. It's already proven that you can build bots good enough to keep some people engaged, and keeping people engaged is good for ad-revenue. It's not as likely that people would like to spend most of
106.
▲
by
chikere232
2y ago
That is very doable as a groupchat or a private mastodon or lemmy instance. Invite your family and friends, don't federate with the wider fediverse.
107.
▲
by
chikere232
2y ago
Control-tab can be set to cycle through tabs in recency order rather than the bad apple default of "go to the next tab to the right". It has far too much feature bloat though to the point that it's somewhat brittle, and I
108.
▲
by
chikere232
2y ago
it can be a team decision, but it's a bad one
109.
▲
by
chikere232
2y ago
You should worry though if a helpful tool only seems to do a good job in areas you don't know well yourself. It's quite possible that the tool always does a bad job, but you can only tell when you know what a good job looks like
110.
▲
by
chikere232
2y ago
Local search indexing is somewhat more defendable as a system level service, but yeah, it would be nice if that was also up to me as a user.
111.
▲
by
chikere232
2y ago
Why make it extremely hard to disable? Photos is hardly a system level app
112.
▲
by
chikere232
2y ago
As trivia, on mac os, the photoanalysisd service will run in the background and look through your photos, even if you never open Apple Photos. It can't be disabled unless you disable SIP (system integrity protection) which requires a c
113.
▲
by
chikere232
2y ago
To give you feedback in your role as Apple's advocate: "we had to sneak it out because people wouldn't consent if we told them" isn't the best of arguments
114.
▲
by
chikere232
2y ago
The nearest neighbour search is sharded, which apple's blog admits is a privacy issue, which is why they're running the DP and OHTTP parts. If apple were to add additional clusters that match "sensitive" content and ende
115.
▲
by
chikere232
2y ago
Oh yeah, the well known "blind trust" model of security. Never verify any claims of any vendor! If you don't trust them, why did you buy from them?!
116.
▲
by
chikere232
2y ago
you're splitting a very fine hair while ignoring the larger privacy implication of the feature. So the timestamp might or might not be delayed a bit from being perfectly accurate? So what? It still is data approximating when the photo
117.
▲
by
chikere232
2y ago
> But renaming symbols throughout large projects without an LSP? Nah, been there, done that, for decades, and I'm glad that's over. It sounds nice; although even with basic emacs: change the definition, compile, step through th
118.
▲
by
chikere232
2y ago
I tried new languages almost daily for Advent of Code this year, with just syntax highlighting (if it was easily available). Not getting little pop-up suggestions wasn't a blocker. Some languages like haskell where there's a lot o
119.
▲
by
chikere232
2y ago
It's syntax emphasis. When skimming it's easier to find a variable if variables are somewhat distinct in colour and so on. Besides, things being a bit pretty is nice.
120.
▲
by
chikere232
2y ago
Isn't that you feeling superior because of your tool preference? It's quite possible to know about a tool and still not like it. Some people liked microsoft's Clippy, and some other people didn't and it's hard to sa
More ›