Better HN
topnewbestaskshowjobs
Log inSign up

codesnik

1,035 karma · joined Mar 11, 2009 (17y ago) · 496 submissions

Submissions

comment 1y ago · link · parent

So, it already starts affecting stuff. I and 10 other recent hires were cut today because our next round is in jeopardy. That startup is in sales and hiring area, so it senses recession much sooner than other industries, but there's that.

comment 1y ago · link · parent

and it still works. And problem seems to be related to the unconditional trust of LLM output.

comment 1y ago · link · parent

you can remap modifier keys if you so inclined in keyboard settings, without additional software, and have separate settings per internal and external keyboard.

comment 1y ago · link · parent

I have M2 Air and using it for rails development, sometimes with multiple docker containers, but the most hungry usually is just chrome with 500+ tabs. It usually does not throttle at all and is barely warm. Unless in direct sunlight (it's black) or unless I put it on top of a blanket without an air gap below for half an hour. I'd say that's coolest macbook I ever owned, no burns or anything near it even on bare skin, unlike some older intel macbooks.

comment 1y ago · link · parent

but... they do froth!

comment 1y ago · link · parent

it's a simple to learn gnuism that most good tools follow but (mostly) java apps for whatever reason disrupted it and added a lot of mess.

comment 1y ago · link · parent

free kombucha!

comment 1y ago · link · parent

One mistake that bitten me a couple of times is not to reseed after fork(). AFAIR Perl calls srand automatically on fork, and I've been surprised that ruby at circa version 1.8 - didn't, which gave me quite some interesting behavior on production.

I'm sure some other runtimes don't do it, too.

comment 1y ago · link · parent

I actually had a less than pleasant surprise when debugging sidekiq process with a higher than usual threads count, and noticing 100ms-multiples in my traces. 100ms before switch indeed seems to be too high for an app with a potential to misbehave.

comment 1y ago · link · parent

we've seen newly government getting from shadow to the front row on the inauguration. No need to hide anymore.

comment 1y ago · link · parent

and a very subtle f_f. I don't find those nice though.

comment 1y ago · link · parent

yeah, you can combine it with % formatting operator to do stuff like `% %% % %%%`

comment 1y ago · link · parent

thanks! I love ruby but I'd be afraid to do anything but web backends and shell scripting with it. it's people like you who move language adoption!

comment 1y ago · link · parent

...but ruby is whitespace sensitive too. It's hard to notice, because rules mostly follow intuition, but there're cases when not only a missing newline, but absense or addition of a space changes resulting syntax. Currently I remember only difference in parsing unary vs binary operators, like + and *, and ternary operator ? : vs : in symbols, but there're certainly more other cases.

comment 1y ago · link · parent

RSpec moved from that quite some time ago. Monkey patching nowadays is usually frowned upon, even refinements, which could simulate monkey patching in a limited scope, are rarely used.

comment 1y ago · link · parent

huh. I'm not sure if I understood you right, do you script and configure those in ruby, or have you written them in ruby from scratch? Are the sources available to read/learn from?

comment 1y ago · link · parent

poor man's chroot.

comment 2y ago · link · parent

MUDs are played over network or on a multiuser mainframe, in realtime. DOS (and windows) machines back then were single user and networks for them were rare, specialized and/or asynchronous, like BBS.

comment 2y ago · link · parent

I've played a MUD and accidentally learned Perl once.

comment 2y ago · link · parent

unreadable perl?! I clicked on the link expecting something super-terse and unstructured, but it's anything but. What the hell is wrong with people casually dropping such remarks.

comment 2y ago · link · parent

but it's also very extendable. It's ability to slap on new control structures and DSL's is on par with Lisp. I'd say it's very low level and much higher level than the most languages simultaneously.

comment 2y ago · link · parent

um, a normal one? it looks exactly what I've seen on my grandmother's garden patch in my childhood. It's just that size is not very practical for supermarkets and a small family consumption, so current selection and harvesting methods go in the opposite direction.

comment 2y ago · link · parent

I started on Perl as well back in a day, and used it long enough to get a list of things I didn't like, though I liked the basic principles. Ruby really is a Perl without unnecessary parts, which are surprisingly many. I remember noticing absense of reference and dereference operators in ruby and sitting dumbfounded for a minute, all that complexity and syntax noise just never needed.

comment 2y ago · link · parent

I wonder in which language you think 1m locs would be manageable for an actual monolith (and not just a monorepo).

And method_missing is a such fundamental part of the language, that it obvious you skipped basic docs on the language. Besides that, there're not many "magic references". Unlike in python, btw, where "there should be 1 obvious solution to any problem" mantra doesn't hold for a veeery long time.

comment 2y ago · link · parent

You can have indentation based syntax and ; for multiple statements in one line, or something even more powerful. But it doesn't matter.

Main power of blocks is not being multiline or being closure-like, many languages have this. But blocks are not just anonymous functions or lambdas, they have ability to return from the outer method (or from the method to which it was passed with break), acting as a powerful tool for creating your own flow control structures if needed, or just replacing "for". Of the languages I know or heard of only smalltalk does the same.

You can live without those, you can live even without early return, but blocks are not a misfeature, it's a great and intuitive tool. And python's rudimentary lambdas make me cry a little.

comment 2y ago · link · parent

nobody serious uses indentation as a bad point against Python. Ruby pretty much could work with indentation instead of "end" almost without drawbacks. Maybe irb would be slightly less convenient, and that's it. Whitespace IS significant in ruby too, it's just goes so much along with the programmer's intuition that it rarely bites anyone.

comment 2y ago · link · parent

I like ruby much more than python for many reasons, but that's one of those articles which present a lot of arguments so dubious and subjective that it almost convinces the reader that it's actually the opposite of what the title says.

comment 2y ago · link · parent

also https://docs.docker.com/desktop/features/wasm/

comment 2y ago · link · parent

for a lot of stuff we make from rubber various types of silicone polymers would probably work too.

comment 2y ago · link · parent

"tech bankruptcy"! this is a VERY strong sentiment. First of all, I've never seen a rails-based company which has it problems from tech department, and not from product market fit or whatever, and that's in a 18 year carreer. I'm singlehandedly refactoring right now a 10-yearish rails app which had a period of neglect and bad contractors who broke every single test, and it is still very much manageable.
1
456
17