Hacker Newsnew | past | comments | ask | show | jobs | submit | xchkr1337's commentslogin

the actual rendering code is ran using a webworker in a separate thread


It's weird how python defaults to spaces rather than tabs, as tabs would make indentation errors less prevalent and a lot more obvious to people learning the language.


Does it? You can perfectly use tabs, just dont mix them up (also a source of Python pains)


I don't think these tools are particularly suitable for reverse engineering websites, it's much easier to use devtools and userscripts


I hve a global shortcut to open a Julia REPL session and I use that to perform any sort of quick calculations instead of a GUI calculator. The best thing about this approach is that I can always create new functions for stuff I use often.


Qalc seems like a better calculator to me and is more stable somehow despite being written in I think C++. Not having to download a huge programming language taking up GB of space, research an ecosystem and import ten packages sounds ideal. I prefer python or R and sometimes even BC to Julia for terminal calculating anyways...

I'd let the post about qalculate be about qalculate here.


I am not sure if it is of interest to you, but from the cli, qalc's REPL is much faster to start when compared to julia


> The best thing about this approach is that I can always create new functions for stuff I use often.

Do you put those in your startup.jl? Do you have a Startup package like some recommend for Julia 1.9+?


does it support tabs yet?


It actually does.


The problem with SQL is the same as the problem with C-style variable declarations. It sounds slightly better than the alternatives when you say the code out loud, but in reality it causes problems with readability and parsing/processing the code


default values for everything without significantly increasing language complexity


As far as I'm concerned, that's a drawback. Ubiquitous default values are an attractive nuisance. One which C# had already demonstrated 10 years prior.

The removal of nil leading to the removal of ubiquitous default values would have been positive.


I think that's why people in this thread are calling it a tradeoff. It's a very attractive option that seems like a great idea until it breaks. In happy path having default values is better, in mixed path situations, having a separate and reserved way of saying something hasn't been touched is incredibly powerful


I think default values are a major flaw, much worse than nil. An unintended default value causes data corruption. All types should be nillable in my opinion, using types that have fallback to a default value is source of nasty silent bugs. In Java for example I would never use a primitive data type.


There are many worse mistakes in the design of C, and some of them even got inherited by other languages, like switch statements.


If you open any reasonable math textbook (except for maybe logic related ones), chances are, you won't see the ∀ symbol anywhere at all. It's often considered bad taste to write a symbol like this when you can just write "for all". The main obstacle in learning math comes from not understanding the background material enough and basically never from not understanding the notation.


And the notation are introduced to you gradually. Even books that do not have a chapter on the notation used, will have a reference page. If not, you’re not reading introductory material and some background is assumed.


How would the notation be "introduced to you" at all, when reading source code? What book would there be? How would you know how to find it?

This is a serious drawback to the traditional math notation: if you didn't come up along one specific educational pathway, it seems to be effectively impossible to work your way in and figure out what any of it means. You can't pronounce any of it, you can't look it up; even if you can work out the names of the symbols, they often mean different things in different contexts. It is a mess.

For many years now, the way I have ingested CS papers is to read the introduction closely, getting my head around the concept, then bail out once the inscrutable symbols show up and go find an actual implementation in some real, documented, parseable programming language - any one will do - from which I can readily infer what the rest of the paper was supposed to mean.


Perhaps this is true for some texts, but take a look at math journals where mathematicians are writing for other mathematicians within their own field. They reuse symbols, sometime an integral symbol is for Riemann integration and sometimes it's for Lebesgue integration. The subject of the paper will make it clear which is which.

Even in our own field, Computer Science, there are too many confusing cases: Knuth uses |S| to mean the cardinality of set S, |f| to be the number of solutions when f is a boolean, |x| to be the absolute value of x, |z| to be the absolute value of a complex number, and |a| to be the length of a. All within the same book, TAOCP vol 4A Part 1.


Those notations are well-known standard notation for the same general concept, "the size of".

What "the size of" means is different applied to each type of object, and may have to be defined to explain some of them (esp. |f|), but it's common in math that general concepts apply differently to different things, while having some properties in common.

I think the notation is helpful rather than confusing because "the size of" carries with it some intuitive connotations which are common to each of those examples.


I don't think that's a good point to critizice Google for. Unlike many other websites, the Google homepage has always remained clear and fast, even after multiple redesigns.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: