Better HN
topnewbestaskshowjobs
Log inSign up

scriptkiddy

559 karma · joined Aug 26, 2016 (10y ago) · 276 submissions

Submissions

comment 9y ago · link · parent

Damn! Bookmarking that for once I get a house with enough space.

comment 9y ago · link · parent

>"eating at a caloric deficit" isn't a constant thing. You can eat less, but your metabolism might drop even further

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

Regardless of how long your life is, I would argue that an obese person's life is probably lower quality than a healthy persons life. I'll take quality of quantity myself.

comment 9y ago · link · parent

>Fat people can't manage to do that for more than a few weeks.

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

That would still be losing weight(mass). The problem in this thread is that people are considering fat loss and weight loss to be the same thing. They're not. The simple truth is that a caloric deficit will always result in a net decrease in mass. This is fundamentally true of any system. Energy being removed from a system always results in a decrease in mass of that system. This is physics 101. Eating a caloric deficit will always cause a reduction in mass, though it may not be the mass you want to reduce. Eating at a caloric deficit without providing the body with the proper balance of macro-nutrients and exercise could lead to reductions in muscle, bone, and connective tissue mass. Reduction of carbohydrates in one's diet generally has a net positive effect in a caloric deficit due to the fact that there is essentially "more room" in the diet for higher quality nutrients such as proteins and fats. That said, cutting carbohydrates out entirely is a terrible idea as they are the body's primary source of short term energy.

comment 9y ago · link · parent

I agree with you to an extent. However, none of this changes the fact that consistent exercise increases the rate of metabolism significantly and generally leads to better mental and physical health. It also doesn't change the fact that eating at a caloric deficit will always lead to weight loss. A caloric deficit alone is not enough for one to reduce to a healthy weight as they may also be losing large amounts of muscle mass. Conclusion: Consistent exercise and a well-balanced diet are still the best ways to become healthy and maintain health.

comment 9y ago · link · parent

>Calories in, calories out is not the golden rule, and this has been scientifically proven false.

Quite the opposite actually. See thermodynamics for reference: https://en.wikipedia.org/wiki/Laws_of_thermodynamics

comment 9y ago · link · parent

I've bought a couple albums off bandcamp. I like how they usually make the tracks available in lossless format.

comment 9y ago · link · parent

Pretty much anyone can self publish on Spotify. I listen to a lot of Folk Punk that is independently produced. I really hope none of these record companies are trying to take a cut for music they didn't even produce.

comment 9y ago · link · parent

Quick question for you since it seems like you are very knowledgeable.

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

Agreed. Scaling Django isn't difficult really. Just spin up another instance if you need to. The major problem is scaling the DB. Making sure you're not bogging Postgres down by making it have to deal with possible race conditions is difficult.

comment 9y ago · link · parent

I've been using Bulma on my side project. Really nice looking and super easy to use. I like how it doesn't try to do too much.

comment 9y ago · link · parent

>What Python does have is a far richer third party library base.

I assumed this is what you were talking about. i.e. Ipython, Jupyter, pdb, etc.

comment 9y ago · link · parent

>In the case of Google Go was developed in part to take over some of workloads previously done in Python; a language that is comparably as easy to develop in, with better tools and better performance.

Go definitely performs better, buy I think it'd disingenuous to claim that Go has better tooling.

comment 9y ago · link · parent

I share a similar sentiment. However, the language I'm referring to is Nim. It's just so damn expressive.

comment 9y ago · link · parent

You're treading on uncertain ground by insulting Lisp. :)

comment 9y ago · link · parent

I have yet to understand why people are always trying to compare Go and Python. Python isn't made for the same use cases as Go is. Can Go do the work Python can? To an extent, yes. Can Python do the things Go can do? To an extent, yes. Python will always be slower with the CPython runtime.

In short, I agree with you.

comment 9y ago · link · parent

I think it requires some more thought.

comment 9y ago · link · parent

>PyPy isn't an interpreter, you are just validating my assertion about JIT/AOT compilers.

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

I made an agreement to myself to never use any Google language, tool, or library after they decided to shut down google code. Google has a history of creating all of these crazy projects and then just completely abandoning them leaving the early adopters to fend for themselves. It's really bad practice and leaves a nasty taste in my mouth. That's why I haven't even tried Go. I have no interest in it. As soon as Google develops some other language they'll drop Go like a hot potato and everyone using it in production will be forced to rewrite or stagnate.

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

I love this idea. I'd honestly be really excited to take it on as some sort of side project. The company/application itself could be an extension of the idea. Open source the whole thing and let the community help improve it while using a patreon-esque model to support the core developers/maintainers.

comment 9y ago · link · parent

I agree. It would be fantastic to have access to a writing platform that focuses entirely on content quality as it's product.

comment 9y ago · link · parent

>I am yet to see such benefits in action.

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

The only reason it worked for youtube is that they were the only service offering reliable high quality video. Other video hosts had problems with loading times and reliability.

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

>1. SAAS Freemium: It's free to write on Medium, but if you want a real domain and a few more features pay $10/mo

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 write most of my code in Python. I think that's give me a leg to stand on when it comes to discussing OOP.

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 9y ago · link · parent

Last time I took a look at D I was awed by how terrible it's documentation is.

comment 10y ago · link · parent

Caffeine, calcium, and Tyrosine can all be found in normal food and beverages. There's no need to supplement them unless you have a terrible diet.

You can get vitamin d by going outside every once in a while.

comment 10y ago · link · parent

I agree 100%. That's exactly what I do and it's been working out great for me.

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?

comment 10y ago · link · parent

I'm pretty sure the person you were arguing with is trolling. There's no way someone could be so socially inept to take the op's point so literally.
1
678910