Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hex13
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
hex13
9y ago
Yeah, this is also true. But "it depends" anyway. BTW author of article mentions also incidental complexity of Java classes. It's worth consider too and maybe it's more accurate picture of problems with Java (and many ot
32.
▲
by
hex13
9y ago
> IDEs generate 90% of my Java code; It's not generating code that is costly, but reading it. Understanding 100 lines of code is usually easier than understanding 1000 lines of code, understanding 1000 lines of code is usually easie
33.
▲
by
hex13
9y ago
...and appropriate level of detail doesn't mean every detail should be documented. Sometimes it's better not to document some technical details (which will change anyway, and docs will be obsolete soon).
34.
▲
by
hex13
9y ago
You could divide (in your head) contract and implementation details. Contract - what "unit" should do, e.g. factorial function should compute factorial for given numbers. But how exactly this is done is implementation detail (will
35.
▲
by
hex13
9y ago
"Error establishing a database connection" :/
36.
▲
by
hex13
10y ago
some options like Apocalypticism seem normal, without any special effects.
37.
▲
by
hex13
10y ago
I think it goes beyond subjective likes/dislikes. I personally like reinventing the wheel, you personally believe in ecosystem, these are just our beliefs. But I think in the long run everything depends on exact project rather on our w
38.
▲
by
hex13
10y ago
Of course. Web applications are bigger and bigger, and quite often you have some hierarchical data structure in JSON (usually in form of tree, but tree is kind of graph anyway). You have to deal with these kind of structures anyway. You hav
39.
▲
by
hex13
10y ago
I agree that sometimes the best solution is to use existing library, but I can't agree that traversing graphs is "too complex to implement from scratch in a timely fashion". This very statement reminds me of famous "why
40.
▲
by
hex13
10y ago
Maybe all these "I'm \d+ years old, and I like this song" before each old* song were written by bots. This would explain a lot. *old song, according to Youtube comments is every song recorded before 2016 AD.
41.
▲
by
hex13
10y ago
> the problem stated is often not the problem faced. 100% true! So many times I was assigned to the task in issue tracker, where requirements was written, estimation was made, but after I sat and tried to solve given problem, it turned o
42.
▲
by
hex13
10y ago
Yeah. Many of these tips are still valid in new Chrome* (despite the fact the article is from 2006 and about Opera) so I think this article can be still helpful (ofc I would verify every tip by making actual benchmarks before I would follow
43.
▲
Efficient JavaScript (2006)
(dev.opera.com)
2 points
by
hex13
10y ago
|
2 comments
44.
▲
by
hex13
10y ago
I think support for butterflies is what turns a text editor into a code editor (xkcd#378) XD
45.
▲
by
hex13
10y ago
It's worth noting that original oblique strategies were invented by Brian Eno and Peter Schmidt in '70s: https://en.wikipedia.org/wiki/Oblique_Strategies
46.
▲
by
hex13
10y ago
Think like a tree - e.g. NoSQL databases which allow for keeping hierarchical objects in database (in contrast to relational databases like MySQL).
47.
▲
by
hex13
10y ago
Think like a stack - e.g. take this from Redux documentation: "In a more complex app, you're going to want different entities to reference each other. We suggest that you keep your state as normalized as possible, without any nest
48.
▲
by
hex13
10y ago
Why didn't you just pass one element list with your class with it, for example: class MyClass: pass class_list = [MyClass] third_party_function(class_list) # or just third_party_function([MyClass]) ? creating some
49.
▲
by
hex13
10y ago
"Being a new kid out of school, I felt too young to call bullshit but intuitively, I felt the metric was flawed." You should have said that to the team. Especially that if anything goes wrong in project, usually it's new pers
50.
▲
by
hex13
10y ago
They gave him shitty work that nobody wanted to do, and you are surprised that guy had no motivation for do it? > work that wasn't too complicated "complicated" is subjective. There are many talents and somebody could be b
51.
▲
by
hex13
10y ago
CSS is not only selecting elements (like JS is not only "defining functions"). Creating complex CSS layout can be hard the same way complex JavaScript system is.
52.
▲
by
hex13
10y ago
I think in 2016 people most developers have disk space for install additional 100 or more megabytes for code editor (unless you're working on low end with very small disk size, but If you do, you would have more problems than freeing 1
53.
▲
by
hex13
10y ago
yeah, predefined actions for often used features is good (if you assure that it would be possible to add some custom JS action if needed), but frankly I think this project could be better (I mean, really better, it would be killer app), if
54.
▲
by
hex13
10y ago
Been there, done that. When I coded games, I made some simple JSON based file format and almost whole game was in form of JSON. I even implemented conditional and loops in JSON. But It can easy lead to inner platform effect. Not needed comp
55.
▲
by
hex13
10y ago
It's correct. I've noticed that when I work in a team I work with maybe 10% of my solo efficiency. Just because of this whole team work bullshit and because of legacy code (it takes me often more time to understand how code writte
56.
▲
by
hex13
10y ago
It looks for me that despite what author wrote, he WAS indeed in exploratory phase: `So now we have a sequencer device, how do we get events from it? Can we do it in the main loop? Turns out it probably doesn't integrate too well with
57.
▲
by
hex13
10y ago
in HTML5 would be sufficient: const $ = document.querySelectorAll.bind(document); (but it would be only pseudo jQuery, the way you can have pseudo React just by using functions and ES6 template strings https://jsfiddle.net/v
58.
▲
by
hex13
10y ago
I know, but it's too verbose for me. BTW there is a discussion about this: https://github.com/facebook/jsx/issues/23
59.
▲
by
hex13
10y ago
I wish it could be possible to write this: const animal = "cat"; <Component {animal} /> equivalent to: <Component animal={animal} />
60.
▲
by
hex13
10y ago
Don't ask me. They're exaggerating ofc but I sometimes hear that somebody in his twenties feels old.
More ›