Readit News logoReadit News
high_density commented on My Many Girlfriends   thedailywtf.com/articles/... · Posted by u/BerislavLopac
hirundo · 4 years ago
Don't anthropomorphize your variables, they hate that. And it makes it awkward when you have to ruthlessly eliminate them.
high_density · 4 years ago
hm I regularly massacre processes in my laptop...
high_density commented on Rust 1.53   blog.rust-lang.org/2021/0... · Posted by u/bilalhusain
beforeolives · 4 years ago
> Maybe, and this is a fat maybe, Greek symbols could make the odd write-once math or scientific code easier to read.

The Julia community has been trying really hard to convince people that this is a good idea and I'm still not on board with it.

high_density · 4 years ago
maybe we can have some keyboard plugin/"mode" that merges letters to form symbols in special way?

Korean windows have a "special-emoji" keyboard that can be invoked by: 1. type a charactor 2. press 'hanja' key 3. (wild special character selection menu appears)

example: § (from 'ㅁ') / ㈜ (from 'ㅁ') / ㎖ (from 'ㄹ')

high_density commented on Linux 5.13 Reverts and Fixes the Problematic University of Minnesota Patches   phoronix.com/scan.php?pag... · Posted by u/varbhat
addingnumbers · 4 years ago
80 developers reviewing for a month isn't enough work for you? They just put more man-hours into reviewing these commits than the contributors put into writing them.
high_density · 4 years ago
if 80 devs all read the same part same way, it won't make much of a difference.

maybe the issue is we aren't using static analysis enough / don't have enough static analysis tools?

Deleted Comment

high_density commented on Scala 3.0   github.com/lampepfl/dotty... · Posted by u/jupblb
hocuspocus · 4 years ago
How so? Kotlin doesn't even have proper pattern matching.
high_density · 4 years ago
newb here -- please expand more on this.

Are there stuff that kotlin's pattern-matching can't do?

high_density commented on Interfaces and Protocols in Python   glyph.twistedmatrix.com/2... · Posted by u/BerislavLopac
motoboi · 4 years ago
I’m not trying to start a flame war, but I’m genuinely curious: if you want and need all this, why not use Java?

Java has all the strong typing and static checking, all you need is to type a lot more words.

high_density · 4 years ago
because most ML libraries are python-first...

as for other stuff (web-servers, what not), I don't think python can beat kotlin / typescript / etc

high_density commented on Unreleased MacBook Schematics Stolen in $50M Ransomware Attack on Apple Supplier   macrumors.com/2021/04/21/... · Posted by u/sahin
Cthulhu_ · 4 years ago
I think they're mainly betting on Apple wanting to keep the designs a secret until they are ready to reveal them. There's been numerous iPhone design leaks beforehand. I don't believe it actually impacted sales or reputation in any way, but Apple is still being secretive about it.
high_density · 4 years ago
but those leaks weren't 100% believable --- this case, it's different. (or apple can just change their future products...)
high_density commented on Prisma – ORM for Node.js and TypeScript   prisma.io/blog/prisma-the... · Posted by u/janpio
brap · 4 years ago
I’ve been using Prisma for a while and I quite like it. Best ORM for TypeScript I’ve used. My biggest issue with it is testability. Sure, I can mock the Prisma client in tests with Jest or something, but if I want to test state I pretty much have to reimplement an in-memory DB using JS mocks. I can also connect to a real DB made for testing but it’s quite overkill, I’m usually not interested in testing Prisma itself, just my own code. I wish Prisma had test mode, where you could replace the client with a temporary in-memory SQLite DB without writing tons of boilerplate.

A drop-in replacement for PrismaClient for tests would have been wonderful.

high_density · 4 years ago
using tmpfs... it'll help a bit (I used mysql-on-tmpfs before)
high_density commented on Scala projects are difficult to maintain   mungingdata.com/scala/mai... · Posted by u/MrPowers
lindig · 4 years ago
Python is distributed in source code and it sounds like Scala dependencies are distributed as JAR files. The compatibility problems when moving compilers are not entirely unexpected, I'd say.
high_density · 4 years ago
but scala's cousin kotlin doesn't seem to suffer from this a lot... kotlin library-packages don't have kotlin-version to their download link... maybe I'm missing something?
high_density commented on Scala projects are difficult to maintain   mungingdata.com/scala/mai... · Posted by u/MrPowers
marcinzm · 4 years ago
>Python projects that are built with Python 3.6 are usable in Python 3.7 projects for example.

This has not been my experience in the Machine Learning space.

high_density · 4 years ago
for most simple HTTP webservers, python maintains somewhat OK-ish source/binary compatibility between python-versions. But my experience with scala was things breaking between scala-versions / waiting for some library to compile with next scala-version...

I'm surprised why scala couldn't solve it better than python -- I mean, scala's a compiled language, so it should have more wriggle-room...

u/high_density

KarmaCake day48June 20, 2020View Original