29 karma · joined December 24, 2019
The "Premature Optimization is Root of all Evil" is about juvenile low level optimizations that sacrifice code readability. They don't give high perf gains either.
But that doesn't mean "Don't think at all about performance in beginning, you can optimize later". That's bullshit notion. Someone will end up paying in AWS bills for that. For instance, every programmer should know how latency varies between disk and memory access, and think about the tradeoffs at design/spec level.
It is true that there are cases where even that doesn't matter. But in most cases where people think so, It ends up they pay double in AWS bills to save two hours of thinking.
I remember I used LD_PRELOAD along with fakechroot and fakeroot packages to get most things working. Those days' android allowed running statically linked binaries among other things.
(except DNS resolution and argv[0] was always ${some_large_path}/ld-linux-armhf.so, as I invoked glibc dynamic loader)..
Those days I didn't have a laptop and learned some C programming and unix stuff through termux. I sometimes think, as a CSE student, I lack the enthusiasm I had in those 12th grade days..
I don't know about node. But there's whole lot of java code and libraries out there. Otherwise why would people build other languages for the JVM?
Ease of writing; Most of code is okay having a GC. But time to produce working code (not necessarily 100% correct code) is important.
Rust is created for low level stuff. It is wrong to expect web backend programmers to deal with ownership, stack-vs-heap and all.
By the way, People have come to hate Google all the way for some advertising and easily switch-able data collection. But one should at same time hesitate to vote to apple with their wallets, they are a monster company which patents rounded corners of phones and things like optional chaining in Swift. That just goes unnoticed in circles like HN. IMO apple has always been more evil than Google.
Here I disagree. Doctors? It seems true.. But school teachers and accountants? Nope..
I don't really think these fields compare, unless your 'software' is limited to doing some outsourced CRUD work..
However much people tout against it, I believe software engineering is closer to any other engineering (say Mechanical) than it is to other fields. Our task is solving problems in efficient ways, and optimizing things for one thing or another. Except these days unfortunately the bar seems very low..
I am on a slow university network and I keep JavaScript off by default using UBO. It takes 3 clicks to enable it for sites that really need it, but web is much faster with it.
Sure it has some good concepts. But fanboys on internet make it seem like some God tier thing.
Hell, one can disable most of google stuff and install f-droid, or even go lineageOS route. that's much, much more private than buying an overpriced, locked-in phone.
If Google is evil because it tracks some (easily hide-able) data that only few zealots care, then apple is much more evil, because they patent trivial things (such as optional chaining in swift, or rounded corners of phones) and do misleading marketing.
This may feel wrong to some, but emulating the API of the famous thing is bread and butter of software interoperability.
Separating admin user from non admin user always has advantages and I do it even on Windows.
Sure some of people here do not like google integration. But in a practical world, it solves many problems to normal people.
And android the OS is really better than what people seem to think.
* We would be still using Python 2 and Linux kernel 3.X somewhere in production * Google Fuchsia will reach beta * Go will not get generics * Rust won't reach dreamed popularity -- still deemed terribly difficult & non ergonamic outside HN circles.. * The AI hype slows down as investors realize most things sold as AI are not really AI. * Hopefully a well designed, productive native programming language emerges with top notch tooling and flow of programming similar to python.
IMO it can be attributed more to bad UI than optimizations.
There has been research on escape analysis, static memory management and all. Even not considering equivalence to halting problem, it has proven basically impossible to manage memory at compile time except very simple programs. This is a reason why rust ownership semantics are so complicated. And still anything complicated will use reference counting for many shared references. (Eg: Linux kernel).
But this guy is not even good at marketing he is doing -- some promises look very shady and comparisons are not apples to apples.
I see how big efforts zig and odin authors made, and the languages are impressive. V is a hyped piece from beginning and this makes the author seem more shadier.
1. Till 10th grade you are not likely to know anything about programming
2. In 11th and 12th there is huge competition for getting into medical / engineering colleges. You study physics - chemistry - mathematics for acing that 'entrance exam'. Very few people try to learn outside syllabus. I did try to learn some C programming & linux stuff out of interest. But somehow happened to study well also and got into my province's #1 or #2 college by everyone's norms.
There it just began.
3. We have 4 years Bachelor of Engineering degree for CS. CSE is most prestigious branch because of relatively high salaries. Every kid who topped the entrance exam in entirely irrelevant subjects (Phy-Chem-Math) ends up taking CSE without any idea or interest about it. Most of your classmates will be such bookworms who just study for exams.
4. Worse, they don't teach considerable amount of CS / Programming in first year. Instead put same physics - chemistry stuff -- pretty much rote learning and scoring good at long-essay-answer exams. They do it saying "students should have interdisciplinary knowledge" etc.. refutable excuses. The purpose just seems to be providing jobs for graduates in chemistry / mathematics.
5. Even if you will get relevant CSE subjects in future, teaching quality is subpar. some teachers don't even know to indent code. In C programming lab exam, I was told not to use command line editor and use gedit because they thought using vim / nano may give different results :D..
Thanks for hearing my complaining here ;-) but we are stuck in a subpar quality system because of high influx of incompetent people into CSE degrees, and job-oriented and rote-learning based mentality prevalent here in every field. I wanted to get into an US university. But costs were prohibitive even to write SAT, and coming from rural area, I didn't have much facilities. There needs to be big change in people's mentality here to see any change.
Also, pardon my English.