Better HN
topnewbestaskshowjobs
Log inSign up

never_inline

897 karma · joined Aug 26, 2022 (4y ago) · 561 submissions

Submissions

comment 1y ago · link · parent

Btw, the unicode arrows in Gp comment are dead giveaway of LLM use.

comment 1y ago · link · parent

Sir, aesthetics are a pretty low priority in my miserable life.

comment 1y ago · link · parent

> It also means that employers don't really look abroad unless there really is a shortage of existing labor. But when there is a true shortage and you're willing to spend, the door is open to act quickly.

You underestimate the ability of INFY/TCS etc.. to game these laws.

comment 1y ago · link · parent

1. Okular - PDF viewer with lots of annotation and accessibility features

2. Dolphin - file manager with advanced features

3. Spectacle - most advanced screenshot tool I have seen

comment 1y ago · link · parent

> One example is copy-paste, which doesn't always work as expected in Linux.

Give example.

> Another is things in OS X, such as deep Spotlight integration with apps, and a unified scripting and automation language between apps.

I am sure KDE has it too.

One time I needed a shortcut for concat-ing 2 images, and I was able to get the son-of-a-bot Gemini to script me a .Desktop file + .sh script which added it as a context menu option to Dolphin. I didn't even know it was possible. I am sure even more automation should be possible with D-bus.

> You can also use links between most apps

Android has this, and I think it can cause borderline security risks. Anyway its' not as important these days when everything that could use a deep link from another app is a react app in browser anyway.

> And drag and drop files and stuff onto and between apps, etc.

I need it maybe 2 - 3 times a day. I can always use Paths and paste them in the file picker. Its never a deal breaker.

comment 1y ago · link · parent

Sir, I live in a "developing" (that designation is forever) country, where traffic is uncontrollable and haphazard, stray dogs roam under the protection of the government, and a flyover bridge can fall on your head at any point of the road.

Hypothetically, I would rather live in a country like the US. I'm sure the machinery of US is good enough to protect its inland citizens when they wage wars on less fortunate ones for whatever reason.

Russia is a different matter. I get it.

comment 1y ago · link · parent

It's super responsive with keybindings and all convenience features I can hardly be bothered by these aesthetic issues like some icons appearing 69 picometers too left OR looking ugly.

comment 1y ago · link · parent

> by-product of Java's strict type system

1. Lack of first class functions till Java 8 is one reason old APIs are horrible with inheritance and reflection everywhere. You had to extend class and override methods even for simplest of tasks.

After Java 11 the code is much more succinct and functional style. But old libraries remain.

There are places where the overextensibility these libraries provide is useful. But those are few.

2. the annotation processors were late to the game - so many libraries which need to inspect object structure (such as serialization) were written with heavy use of reflection.

I will give you an example of how frameworks designed for "modern" Java look like.

Micronaut has something called Micronaut data JDBC - in which you just declare methods with few annotations eg `List<Book> queryTop10BooksByYear(int year)` and it will auto generate the JDBC + SQL code and handle injecting it into your service. The returned object can be a POJO without all the Proxy object circus ORMs come with. I haven't seen something as easy in Python yet. And all this happens in compile time with an annotation processor.

comment 1y ago · link · parent

It's very difficult for a language designer to satisify the aesthetes.

comment 1y ago · link · parent

Logically one should more safer to live in a country which has nukes, no?

comment 1y ago · link · parent

www.google.com

comment 1y ago · link · parent

How do you do conditional filters in pure SQL from a backend Java / Python app, without doing string concatenation?

Not a fan of all the proxy object circus ORMs do but I'd leave row-> domain object mapping and filter building to some library. Sweet spot is probably something akin to Android Room / Micronaut Data JDBC.

comment 1y ago · link · parent

> the road to becoming good

In my experience, it's totally not true.

Many college students of my generation are pretty good with LC hards these days purely due to FOMO-induced obsessive practice, which doesn't translate to a practical understanding of the job, (or any other parts of CS like OS/networks/languages/automata either).

I will give you an exercise, pick an LC hard problem and it's very likely an experienced engineer who has only done "real work" will not know the "trick" required to solve the problem. (Unless it's something common like BFS or backtracking).

I say this as someone with "knight" badge on leetcode, whatever that means, lest you think it's a sour grapes fallacy.

comment 1y ago · link · parent

> faangguyindia

> contractor

Do FAANG hire contractor in India?

comment 1y ago · link · parent

Didn't expect this to blow up, and now I realize it's bit of a flame bait topic, haha.

comment 1y ago · link · parent

I am the author of the posted flamebait. I agree.

I use IPython / JShell REPLs often when the code is not finished and I have to call a random function without entrypoint.

In fact its possible to jump to the graphical debugger from the Python REPL when running locally. PyCharm has this feature natively. In VSCode you can use a simple workaround like this: https://mahesh-hegde.github.io/posts/vscode-ipython-debuggin...

227.

Things you can do with a debugger but not with print debugging(mahesh-hegde.github.io ↗)

257 points · by never_inline · 1y ago · 214 comments

comment 1y ago · link · parent

So so obvious slop and pains my eyes to read.

comment 1y ago · link · parent

> The excitement of getting a day's work done in an hour* (for example) is likely to fade once the expectation is to produce 8 of such old-days output per day.

It's not really about excitement or enjoyment of work.

It's the fear about the __8x output__ being considered as __8x productivity__.

The increase in `output/productivity` factor has various negative implications. I would not say everything out loud. But the wise can read between the lines.

comment 1y ago · link · parent

OK, fine, but how will I build and launch an APK through android studio / flutter?

comment 1y ago · link · parent

> counting the number of letters in a word seems to be a good way to filter out LLMs

As long as this challenge remains obscure enough to be not worth implementing special handlers in the crawler, this sounds a neat idea.

But I think if everyone starts doing this particular challenge (char count), the crawlers will start instructing a cheap LLM to do appropriate tool calls and get around it. So the challenge needs to be obscure.

I wonder if anyone tried building a crawler-firewall or even nginx script which will let the site admin plug their own challenge generator in lua or something, which would then create a minimum HTML form. Maybe even vibe code it :)

comment 1y ago · link · parent

At least, it doesnt look like chatgptese.

comment 1y ago · link · parent

Even when DTO is separate, you can use projection methods of eg: spring data JPA, or something like mapstruct.

comment 1y ago · link · parent

To restart and fail again? How does that help with logic errors caused by wrong type objects?

comment 1y ago · link · parent

Yeah it's literally ANSI escapes.

comment 1y ago · link · parent

Ah what are they going to do with the information gained from my social media that I don't like dynamically typed languages and prefer SQL to NoSQL?

comment 1y ago · link · parent

Use static types and treat python as more concise java. Use dynamic types sparingly. Limit expression complexity.

Static types + IDE features make it much easier to understand any codebase.

comment 1y ago · link · parent

> Java as contrast has interning wtfs because == between java objects does essentioally what python's `is` does.

It's pretty sensible because i wouldn't expect that operator to call a method - since Java does not have operator overloading.

1
789
19