559 karma · joined Aug 26, 2016 (10y ago) · 276 submissions
comment 9y ago · link · parent
This exactly why I mentioned consistent exercise. Exercise will speed up your metabolism as it causes the breakdown of muscle mass and other tissues which then need to be repaired and improved by your body. You can push exercise even further by buying into linear progression and training your body to rebuild itself in order to adapt to your training regimen.
>research shows that exercise is, for most people, counterproductive for weight loss because they wind up eating afterwards than the calories they burn
This is not an argument against my position. This is caused by a lack of discipline. Also, eating after exercise can be a good thing. The effects of a heavy weight lifting session will linger for several days and burn far more calories than the actual session itself. The muscle that was damaged during the training session needs high quality nutrients to be rebuilt. I, for one, usually eat a philly cheese steak or hamburger if I have a really intense training session because I know I need the fat and protein. People seem to think that exercise is a means to burn calories. It is not. Exercise is a means to an end. For some people, it's strength, for others it may be rock climbing. For others still, it may be for general health.
>Yes, exercise leads to general better health, but that's a very different goal from losing weight
My argument is that losing weight is a means to becoming healthy. You cannot become healthy without a well balanced diet AND consistent exercise. If your goal is simply to lose weight, exercise will aid you in that endeavor AS LONG AS your diet is in order.
Becoming healthy is not a diet. It's not going to the gym once a week. Becoming healthy is a lifestyle choice and not everyone has the foresight and discipline to do it. If someone doesn't have that discipline and self control, that's fine. Just done blame it on genetic issues or confusion. Say it like it is, you're(general you) just lazy. And that's OK.
comment 9y ago · link · parent
That's the problem. Lack of self control. Generally a result of psychological issues such as comfort eating or straight up food addiction. Doesn't change the fact that if those people were disciplined enough, they could still become healthy.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
Quite the opposite actually. See thermodynamics for reference: https://en.wikipedia.org/wiki/Laws_of_thermodynamics
comment 9y ago · link · parent
I am the sole back end developer for a greenfield web application that is very data heavy. The application is still in alpha at the moment, but part of the development process involved prepopulating the database with about 10 mil rows or so spread out over about 15 tables. Nothing too crazy. However, once the application is launched I expect to have exponential growth in data due to the nature of the application.
Currently, this application is set up on Linode. The database server is standalone and I have the ability to spin up multiple application machines and a load balancer. Each of these application machines read from and write to the single database machine. The database machine itself has full disk image backups taken every 24 hours, 7 days, and month. I also do a manual snapshot from time to time. On top of this I also usually dump into a tar file on my own external drive every once and a while as well. I'm fairly new to devops stuff and most of my experience involves building applications and not necessarily deploying them. I'm wondering if what I'm doing as far as backups and stability is enough or if I should be incorporating other methods as well. Have any thoughts?
comment 9y ago · link · parent
Go definitely performs better, buy I think it'd disingenuous to claim that Go has better tooling.
comment 9y ago · link · parent
In short, I agree with you.
comment 9y ago · link · parent
I thought we were talking about Python implementations exclusively. My mistake.
>OCaml
I have no experience with OCaml, so I won't make any comments regarding it's efficacy.'
>Haskell
Well thought out language. I like the purity, but it's too academic for real world use outside of scientific computing. FP isn't for everyone, and my personally belief regarding it is that it is better used as a tool alongside other paradigms than all by itself as the only paradigm.
>Lisp
Lisp is useful for a lot of things. It's also not very popular for new projects as far as I've seen. There are also a ton of different versions, so I don't know if "Lisp" is really a good descriptor.
>Scheme
As far as I know Scheme is the defacto teaching language for most compSci programs.Or, at least it was for a long time. Once again, FP is not for everyone. A lot of people also dislike Lisp style syntax, myself included.
>Racket
Same issues as Scheme.
>F#
F# is a fantastic language. There's not really a whole heck of a lot to complain about other than the .NET implications. The only detriment relative to Python is F#'s much smaller ecosystem and community.
>C#
Once again, some people just don't like .NET stuff. A lot of people also see static typing to be a detriment in many use cases.
Relative to Python, these languages also share several other problems when it comes to real world application: lack of competent developers, stagnating ecosystems, lack of third party libraries, ecosystem lock in, and cross-platform comparability issues. In the case of languages like Haskell, they could even be considered "esoteric".
I'll give you that many of these languages are more "pure" or "logical" than Python. I'll even give you that most of them are designed much better than Python. None of that changes the fact that Python is overall easier to read, easier to learn, easier to write, has a better ecosystem, is platform and file system agnostic, has a very non-restrictive license, and is, overall, very pleasant to work with.
comment 9y ago · link · parent
Look at AngularJs for a more recent example.
Add to this that Google has some of the worst versioning practices I've ever seen and you get a recipe for destruction.
comment 9y ago · link · parent
comment 9y ago · link · parent
Here you go:
https://morepypy.blogspot.com/2011/08/pypy-is-faster-than-c-...
https://morepypy.blogspot.com/2011/02/pypy-faster-than-c-on-...
For more examples, just search "pypy faster than c".
Also, here is an article from the Python wiki about why speed doesn't really matter a lot of the time:
https://wiki.python.org/moin/PythonSpeed
And, my own two cents:
Speed is relative. Does every piece of code need to be as performant as possible? No. I would argue that, in most cases, speed of development is far more important than speed of execution. This is, of course, not true for things like drivers or statistical analysis.
Writing a web application? Speed isn't that important as the whole process is i/o bound anyways.
Writing a machine learning algorithm? Depends.
Web scraping? I/O bound, speed not really important.
Image processing? Speed matters at least a little bit.
Writing networking glue for distributed systems? Speed probably doesn't matter.
It's all relative. If it needs to be fast, it needs to be fast. Most things don't really need to be fast. For the things that don't need to be fast, why build them with C/C++/Rust/Go when you could spend half the time building them in Python/Ruby/js/etc?
comment 9y ago · link · parent
Youtube is arguably a more valuable service in that it takes way more infrastructure to run a video hosting site than it does to run what is essentially, a simple blog. It would probably take no more than a year of development experience to build a site like Medium(leaving out scaling concerns). Youtube, on the other hand is a beast. I can't even imagine beginning to build an application like youtube. Youtube can push ads hard without bleeding users because they offer quality so many orders of magnitude higher than the alternatives. Medium has only one thing to offer: nice design.
comment 9y ago · link · parent
I think this is a fantastic idea. It has worked on many other platforms such as shared hosting before.
>2. Patreon-ish: Direct monthly sponsorship (subscription) to individual authors
This is also a great model because it allows readers to pay for content that they consider worth while. It has the capability to increase overall content quality, become a platform for new writers, and medium could scrape some small amount of dough off the top for the service they are providing.
>3. Fractional Payment: Overall subscription to Medium as a service payed by readers. Authors are paid according to a formula for how many people viewed their content each month.
I don't think this is a great idea to be honest. This is essentially how click farms already work and has lead to the uprise in clickbait. I see this as the primary reason why sites like Buzzfeed exist.
comment 9y ago · link · parent
I find that classes, if nothing else, are a fantastic way to namespace data and methods that operate on said data. For instance, if I have a chair object, I could use a class to describe the chair. I could store the materials it's made out of, the height of the seat, whether it is an office chair, a barstool, or something else. I could also write methods that can say, price the chair based on data about the chair.
In this particular case, I wouldn't subclass the chair at all. There's no point. Every time I need a chair, I would just create a new instance of Chair. That's why chair is an object. It's a self contained thing that I can pass around and pull data out of or mutate.
I don't really use deep inheritance at all in my code. I think the deepest I've ever subclassed something is once. I find inheritance to be useful if I need to be able to create multiple objects that deal with very different things, but perform similar operations on them. A good example of this is Django class based views(it's own controversial topic). I created my own resource class to use for handling API specific requests. The methods of pulling filters out of the query string and serializing database objects are exactly the same for every single request, but the objects that these classes operate on are vastly different. Therefore, I need to specify a serialization schema for each database object type, but I don't necessarily need to rewrite the function that does the serialization. I use my Resource class in order to more easily re-use these generic methods.
Just my two cents.
comment 10y ago · link · parent
Eat a healthy balanced diet, get intense physical exercise for at least 30 minutes every day, and sleep an adequate amount. It's really not too difficult. It does require discipline, but discipline is only difficult if you make it difficult.
I've never really understood the whole concept of brain enhancement drugs. What are they really doing for you? Is it at all possible they are effective only due to the placebo effect? What are the long term risks of using so many different substances?