Better HN
topnewbestaskshowjobs
Log inSign up

scriptkiddy

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

Submissions

comment 9y ago · link · parent

I understand where you're coming from. However, Vue isn't an "all-in-one" or "batteries included" library. Vue is just a view layer. It fills the same layer of the stack that React does.

comment 9y ago · link · parent

I got myself a pair of the MDR7510s. I believe they are an "improved" version of the 7506s. I like them a lot.

comment 9y ago · link · parent

While a great idea for learning and purely academic purposes, a degree from such a co-op would mean nothing to potential employers. Actually, it would mean nothing to anyone. At least in the U.S., an institution must be accredited for the degree to mean anything at all.

That said, I would definitely join such a co-op as I feel the knowledge is more important than the paperwork anyways.

comment 9y ago · link · parent

The problem isn't so much that a junior had access to the production Db. The problem is that the junior's dev setup had access to the production Db and could nuke the whole thing with a few misplaced keystrokes. I'm working on a product currently where I am the only dev. I have a pretty large production Db. I also have a smaller clone of that same Db on my local machine for development purposes. I can only access the production Db by directly shelling into the machine it's running on or performing management commands on one of the production worker machines(which I also need to shell into). This was not very difficult to set up and ensures that my development environment cannot in any way affect the production environment.

Also, why even distribute the production credentials at all? Only the most senior DBAs or devs should have access to production credentials.

comment 9y ago · link · parent

Please see my reply to __ph__.

comment 9y ago · link · parent

So, keep in mind that my experience with Go is not at a professional level. Take this example:

https://gobyexample.com/channel-buffering

As far as my understanding is concerned, channels are a way for goroutines to pass data between one another, correct? Yet in this particular case, the channel `messages` is operating in the same manner as a generator or array. So, am I creating goroutines by passing messages to the channel or am I just using the channel as a simple buffer?

This example helps as well: https://gobyexample.com/channel-directions

Am I implicitly creating goroutines by using channels or am I simply creating a buffer?

Sorry I don't have any of my own code to share as I deleted all of my Go practice stuff.

comment 9y ago · link · parent

Glad to hear it. Crystal is another language I've been getting more and more curious about lately.

comment 9y ago · link · parent

Well, Go is obviously not a bad language. That said, I do think that it's adoption was primarily fueled by Google's popularity. Imagine go being released by a single person or small group of people. How would people have heard about it?

comment 9y ago · link · parent

No, I encourage you to shill in fact.

> The reasons Go doesn't (yet) have generics are practical rather than philosophical. And well-documented.

Can you give an example? I guess I fail to understand why a statically typed language would choose to forgo all of the advantages generics provide. Does it have something to do with Goroutines?

> I also don't believe Google's marketing budget contributed much if anything to supporting Go.

I didn't necessarily mean their marketing budget. I should probably edit that. I meant that anything they do is news.

comment 9y ago · link · parent

I usually do this, but sometimes I'm writing a really long function or something and I want to save part way through so I don't lose my progress from some unlikely, yet catastrophic, failure.

comment 9y ago · link · parent

> Yes but the problem with languages like Nim is lack of support and maturity.

Agreed, that's why I don't use it for anything super important yet. Nim is approaching a 1.0 release soon. Go has a similar problem in that it is maintained almost entirely by Google who has a history of dropping projects without warning.

> Go is more versatile and at the same time more mature than anything out there.

This is objectively incorrect. In fact, Go aims precisely to be non-versatile for the sake of simplicity. That is why Go does not have generics for instance.

> It is a different design and it excels in what it does (considering all tradeoffs now)

I don't think it's design is all that different. It looks like a stripped down version of C and it's definitely not the first PL focused on concurrency.

> Will Nim be as versatile and solid as Go in the future?

Nim is already leagues above Go in the versatility(I assume you mean flexibility?) department. As far Nim being as "solid" as Go, I'm not entirely sure what you mean. If you're asking about stability, I believe that Nim can reach a similar level of stability as Go, yes.

> You need a solid financial backing and certain amount of adoption where people actually write software that makes them money.

I agree with this. However, it's not always a quick process. The only reason Go is as popular as it is is because of Google's size and reputation(edited). Every programmer on Earth heard of Go within a few days of it's official release. Nim is taking a slow roll approach. Look at Python. It took almost 15 years before it started getting really popular.

All that said, I didn't come into this thread to argue about Go vs Nim. I've been accused of shilling Nim in the past. I'm sorry that I like talking about PLs I enjoy using.

comment 9y ago · link · parent

I disagree. For instance, if I'm writing something in C and I know that it is syntactically and semantically correct, I know that it will definitely compile.

Go hijacks control flow and makes it more difficult to reason about how your code will be compiled and executed. At least that is true in my personal experience.

comment 9y ago · link · parent

> I mean, what's the better alternative to Go for this work? Maybe Rust? It is, at least more controllable at a lower level...but, not as easy to pick up for people coming from a C/Python/Perl/Ruby systems and ops background.

You know, it's interesting. I've been programming with Python for about 6 years now. I've also picked up Javascript, SQL, bash, and PHP along the way. I'm always gaining a little bit of C knowledge here and there when writing C extensions for my Python applications. I'm a fairly experienced programmer at this point. To the point:

I tried picking up Go one day because I was hearing so much about how it could replace Python as network glue code with better performance and reliable concurrency. I can't really validate or invalidate those claims. That said, I found Go to be sort of difficult. The syntax is really simple. Compiling is really simple. Concurrency is even simple. However, need to do something in a different way than Go decides is correct? Well, you can't. It won't even compile. The difficulty in Go is in learning about what the compiler thinks is OK. I don't really like that. You don't really know if your code will work until you compile. Basically, I just think Go isn't really flexible enough for modern programming. I find that Nim can do Go's job better than Go can for my use cases anyways.

comment 9y ago · link · parent

Evan You is a fantastic developer. He understands that libraries are not solely about what they do; they are also about the API you present to the developer. Interacting with Vue feels natural. I don't really know any other way to describe it. I've been working with React on my latest job for nearly a year now, and I still run into strange little gotchas and difficult concepts(I'm looking at you `componentWillReceiveProps` with an ajax call). I have never run into these types of issues while using Vue.

comment 9y ago · link · parent

I figured it out. You need to store several encodings of the same file. One in webm for most cases, and one in mp4 for all other cases. If a platform doesn't support webm or Mp4, it probably couldn't play the video anyway.

comment 9y ago · link · parent

I've been hearing a lot of good things about Phoenix. I do web application development for a living, so I'm interested in learning more about it.

I decided to take a look at the official getting started guide. Looks pretty good. I like how rigidly everything is organized. Though, there are some things that put me off a bit:

* There are a lot of dependencies just to get a simple hello world app running.

* I need to have a Db installed even though the application doesn't touch a the Db? Does that mean the Phoenix stores its configuration in a Db? I don't like that. I try to keep config in file format.

* Honestly, working with ecto outside of initial model creation looks kind of nasty. I could be looking at this wrong though.

* I've never been a fan of functional languages for one reason: Too many damn symbols in the syntax! It appears that Elixir definitely does a better job having an understandable syntax compared to say, Haskell. That said, the one operator that always gets me is `|>`. I understand what it does, it's just difficult to type and I always felt like a simple `>>` would make sense as well as be easier to type. This is rather nit-picky, but I write a lot of code, so ease of syntax is actually a very important consideration for me.

* There seems to be a lot of lock-in if you want to use the CLI tools. What I mean by this is that the CLI tools, specifically `mix` seem awesome. However, it seems like that in order to use them, you need to use a very specific set of libraries. This isn't necessarily a bad thing, but I wonder if this would effect long-term flexibility.

* Did I mention the dependencies? It seems like every CLI command requires dependencies to be installed. This could be my own misunderstanding or a failing of the guide.

comment 9y ago · link · parent

I guess it depends who you work for. I prefer to work at small new companies until they get off the ground. Then I shift to the next small new company. Small meaning < 30 employees for the whole organization. Pay isn't as great, and the work is definitely more under pressure, but I find that the only thing expected of me is quality work. I don't have to worry about trying to climb ladders or schmoozing management. I understand that not everyone has the skill set to do what I do, but I think that if you're tired of Mega Corp social engineering, taking the pay cut for more personally rewarding work is a great path to go down. After all, quality of life has very little to do with what you have beyond a certain threshold and more to do with what you make of it. I get paid less than other developers in my area, but I work entirely from home and I choose the technologies, architecture, language, etc.

comment 9y ago · link · parent

I like this. No bullshit. Straight to the point. Solid advice.

comment 9y ago · link · parent

> What the customer needs is rarely what they say they want.

I'd like to extend this to include designers, non-technical cofounders, and non-technical colleagues.

I had a situation just recently where I built out a new front end interface for a new feature I had just built. There was a particular work flow that I had carefully laid out for a specific task that involved rearranging items in a list. Not having a 100% explicit spec, I was free to improvise within constraints.

So, I built this interface out and tested it.I then handed it over to my colleague who is responsible for green lighting new features and such. Well, my colleague decided that the interface should be completely rebuilt for better usability. That's fine. No problem, that's my job. Though, it would have been nice to have a spec up front so I don't have to throw away hours of work.

So, I convince my colleague to write out a very detailed user story so I can make the interface just how they want it. I get the user story and I completely rebuild the interface. I then hand it over to the same colleague and they say that the interface still needs improvement. I'm confused at this point because I followed the spec to the tee. They explain how they want to improve the interface and their explanation sounds almost exactly like what I had implemented the first time! Needless to say, I was a bit ticked off. That said, it's best not to make a big deal out of it as I am getting paid for my work and I don't want to make my colleague defensive.

Luckily, I had the old version in version control on another branch so I was able to pull it back into the working branch and make some minor tweaks.

Moral of the story: Non-technical people don't really know how to express what they want to a technical professional. I'm in no way implying that non-technical people are inferior. They just don't understand the job of a technical person and all of it's implementation details. The same issue applies to fields other than software development. For instance, it's difficult to express how you want a contractor to build something if you have no experience building something.

You will also run into people that have no idea how to do your job and have no idea how to express what they want, but also insist that your job is easy. These people are idiots. You just have to humor them until they inevitably fail at their own jobs and go away.

comment 9y ago · link · parent

This is some of the worst advice I've ever seen. Do this if you want to die sad and alone with nothing but your money beside you I guess.

The last sentence is actually not bad advice though.

comment 9y ago · link · parent

I made it a point a long time ago to never use any SaaS, PaaS, or cloud solutions from Google for anything important. First off, their offerings tend to be much more expensive than competitors. Second, Google tends to randomly drop features, services, and support for applications without warning whenever they want. Third, they don't have any actual support at all for anything. I use Linode for all of my hosting, and I can get tech support on the phone in less than 5 minutes even without the upgraded support plan. On top of this, Linode and DigitalOcean offer extensive community curated documentation for almost everything.

The above reasons are also why I don't use any open source software developed or maintained solely by Google. There's no guarantee that Google won't just stop maintaining it after a year or less. For a somewhat recent project, my co-founder and I evaluated using Angular2 for the front-end of our application. During our evaluation, we learned about Angular4. Knowing about what happened between Angular1 and Angular2, we decided to steer clear of the angular ecosystem. This decision also made more sense from the performance and ecosystem side of the argument. Most groups that develop open source software do their best to ensure that there is a well documented and simple upgrade path. Look at Django, rails, React, Vue, postgresql, etc for example. As far as I have experienced, Google products offer no such simple upgrade path.

To be honest, I'm not really sure what value Google is offering anymore. The only quality product from them I still find any use for is Gmail. Even Gmail has competitors that do Email better. I guess there's also youtube, but Google are kind of shitting that up as well.

I think the tech space needs to walk away from worshiping Google and Facebook. In all reality, the technical quality of their products is lacking and their entire goal is to lock both consumers and developers inside their own walled gardens.

comment 9y ago · link · parent

I've been mucking around with LMMS[1] lately and I found a great video that shows you how to synthesize a kick drum using ZynAddSubFX: https://www.youtube.com/watch?v=coVl1D-q7Bo. Basically, it's all about havin no sustain and whitenoise. Also, a tiny bit of reverb with a HPF goes a long way.

[1] https://lmms.io/

comment 9y ago · link · parent

I'd like to add to your quote here. It's not something from the film, but it's something I feel like not enough people understand: The Earth doesn't need saving. No matter what we do, we cannot kill the Earth. We do not have that power. We can make the Earth inhospitable for ourselves, but it will recover. The Earth will keep spinning until the Sun expands and swallows Earth whole billions of years from now.

We, as a species, do not have any sort of power capable of stopping the Earth from doing its thing. In fact, one could argue that we are part of the Earth's thing. We don't exist on Earth, we are part of Earth.

comment 9y ago · link · parent

The research that is necessary for space exploration leads to terrestrial technology as well. Another poster above mentioned how solar panels would not be nearly as efficient as they are if Bell Labs didn't spend the time researching them for satellites. That's just one example. Nasa is currently working on a ton of different research projects with an extremely small budget. One of these projects is designed to take water from waste products such as human sweat, urine, and other gross stuff and recycle it back into drinkable water.

Here are some more examples:

> NASA’s microencapsulating technology enabled the creation of a "Petroleum Remediation Product," which safely cleans petroleum-based pollutants from water.

> In the 1990s, NASA scientists at JPL developed software capable of correcting for GPS signal errors, enabling accuracy within inches. The software is called Real-Time GIPSY (RTG). John Deere licensed the software and used it to develop self-driving farm equipment. As of 2016, as nearly 70% of North American farmland is cultivated by self-driving tractors, which rely on RTG originally developed at NASA.

> Dr. Alain Gachet founded Radar Technologies International (RTI) in 1999 to use satellite generated data to identify probable locations of precious metals and during its use found it could also detect water. The system developed with this data, WATEX, uses about 80 percent of its data inputs from publically available NASA information. This free information allowed RTI to develop the WATEX system to successfully locate water sources, such as in 2004 at refugee camps during the War in Darfur.

> So-called space blankets, developed in 1964 for the space program, are lightweight and reflect infrared radiation. These items are often included in first aid kits.

> Goodyear Tire and Rubber Company developed a fibrous material, five times stronger than steel, for NASA to use in parachute shrouds to soft-land the Viking Lander spacecraft on the Martian surface. Recognizing the durability of the material, Goodyear expanded the technology and went on to produce a new radial tire with a tread life expected to be 10,000 miles (16,000 km) greater than conventional radials.

> Firefighting equipment in the United States is based on lightweight materials developed for the U.S. Space Program. NASA and the National Bureau of Standards created a lightweight breathing system including face mask, frame, harness, and air bottle, using an aluminum composite material developed by NASA for use on rocket casings.

> NASA developed a cloud compute platform to give additional compute and storage resources for its engineers, called Nebula. In July 2010, the Nebula code was released as open source and NASA partnered with Rackspace, to form the OpenStack project.[42] OpenStack is used in the cloud-based products from many companies in the cloud market.

The above is just a small sampling of some of the technologies born or improved by Nasa research. Nasa, of course, is not the only organization in the space research and exploration game. As you can see, research for space exploration almost always has some level of terrestrial utility.

comment 9y ago · link · parent

It's kind of sad how people fail to realize how much of the modern technology they take for granted may not have ever been invented if it weren't for various space programs around the world.

Beyond that, I personally believe that NASA and the Soviet Space Program already saved the world once by allowing the US and the USSR to have a public competition in the midst of extreme nationalism. Without the space race, who knows if we would have been launching ICBMs instead of Apollos?

comment 9y ago · link · parent

> [5:45] Stops at grocery store to buy a block of cheddar cheese

> [6:15] Arrives home, melts the cheese in the microwave, and eats it for dinner

That kind of threw me for a loop. Sounds like you may want to work on your nutrition. Don't get me wrong, I love cheese, but I don't believe it has all the nutrients necessary for a healthy body.

comment 9y ago · link · parent

Profession: Full-Stack Web Developer - Full Time, remote <Just me and the founder>

Workday:

    - [7:30AM] Wake up

    - [7:45AM] Get dressed

    - [8:00AM] Take a quick walk to the gas station for energy drink.

    - [8:15AM] Start reading my emails and conversating on Hacker News, Nim lang forum, reddit.

    - [9:00AM] Eat some breakfast.

    - [10:00AM] Start actual work.

    - [11:00AM (M, W, F)] Phone call with the founder to discuss progress.

    - [11:30AM] Start daily workout: Gymnastics/calisthenics(M, W, F), cardio (T, TH)

    - [12:30PM] Take Shower and eat lunch

    - [1:00PM] Get back to work. Mostly React and Django stuff at the moment.

    - [6:00PM] Finish work for the day,

    - [6:15PM] Start working on side projects, tutorials, learning, practicing etc. Sometimes I study math or Japanese.

    - [9:00PM] Play some overwatch, blackwake, beamNG, Persona, whatever. Sometimes spend time with the GF watching TV.

    - [12:00AM] Let a podcast lull me to sleep.

comment 9y ago · link · parent

> Google App Engine still doesn't support Python 3.

Um, yes it does: https://cloud.google.com/python/quickstarts

comment 9y ago · link · parent

Here's the advice I usually give:

Do you need to use packages that only support Python 2 and there are no alternatives? Use Python 2.

Otherwise? Use Python 3.

If someone doesn't know whether they should be using 2 or 3, they should be using 3.

comment 9y ago · link · parent

You know, if you want to be an asshole, I'm not going to try and have a discussion with you.

The example the author gave is not the actual script he was using to monitor Jenkins. It's a small portion of it.

Seriously, if someone hasn't used Python before, I can't just assume that they know how Python's exception handling works.

1
567
10