559 karma · joined Aug 26, 2016 (10y ago) · 276 submissions
comment 9y ago · link · parent
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
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
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
> 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
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
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
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
comment 9y ago · link · parent
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
comment 9y ago · link · parent
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
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
[1] https://lmms.io/
comment 9y ago · link · parent
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
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
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
> [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
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
Um, yes it does: https://cloud.google.com/python/quickstarts
comment 9y ago · link · parent
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.