News for hackers. Stuff that matters.

ntrepid8

Re:The Death of Microservice Madness in 2018 on Monday January 22, 2018 @11:32AM (#16205620)
I've often thought that micro-services were more of a software engineering management solution rather than a technical one.

From the perspective of a high-level architect it makes delegating certain types of responsibility a bit easier and potentially reduces the need for communication between teams while maintaining centralized control of the overall system.

However, it always seems to come with such a high overhead that IMHO it's almost never worth doing unless there really isn't another option.

Re:Facebook to Let Users Rank Credibility of News on Monday January 22, 2018 @11:17AM (#16205499)
What could possibly go wrong?
Re:AWS Fargate – Run Containers Without Managing Infrastructure on Wednesday November 29, 2017 @12:59PM (#15809133)
Hopefully this is the correct math for their example 1:

(1 * 2 * 0.00021167 * (600/60) * 30) + (1 * 1 * 0.00084333 * (600/60) * 30) = 0.380001

Because that's much better than the original:

(1 * 2 * 0.00021167 * (600) * 30) + (1 * 1 * 0.00084333 * (600) * 30) = 22.80006

Re:AWS Fargate – Run Containers Without Managing Infrastructure on Wednesday November 29, 2017 @12:50PM (#15809046)
Ah yes, that makes much more sense. Hopefully they will update the pricing page with the correct values soon :)
Re:AWS Fargate – Run Containers Without Managing Infrastructure on Wednesday November 29, 2017 @12:25PM (#15808755)
Looking through the pricing page I'm not sure what sort of workload this would make sense for. Just looking at the examples from the pricing page I think I'm getting sticker shock.

- https://aws.amazon.com/fargate/pricing/

Example 1 > For example, your service uses 1 ECS Task, running for 10 minutes (600 seconds) every day for a month (30 days) where each ECS Task uses 1 vCPU and 2GB memory. > Total vCPU charges = 1 x 1 x 0.00084333 x 600 x 30 = $15.18 > Total memory charges = 1 x 2 x 0.00021167 x 600 x 30 = $7.62 > Monthly Fargate compute charges = $15.18 + $7.62 = $22.80

So the total cost for 5 hours of running time is $22.80? Am I even reading this correctly? If so, what would this be cost effective for?

Re:U.S. study links marijuana use to more intercourse on Friday October 27, 2017 @01:48PM (#15570626)
In other news: - water wet - sky blue
Re:The Intel Optane SSD 900P 280G Review on Friday October 27, 2017 @12:00PM (#15569657)
I think I need to get one of these.
Re:Write tests. Not too many. Mostly integration on Friday October 27, 2017 @11:21AM (#15569257)
For large code bases in dynamic languages I think the advantage grows larger over time. Even a modest amount of test coverage will allow you to build new features without breaking existing features.

It's a lot faster to catch bugs when the tests run in your local development environment or in the CI pipeline than to wait until Q/A (hopefully) catches them in end-to-end integration testing and sends it back to you for rework.

The other advantage I've noticed is that the tests can serve as an additional form of documentation. New team members can look through the tests to see how code is supposed to work from the examples there. For some web API projects I've even been able to generate the documentation from the test cases.

Re:Write tests. Not too many. Mostly integration on Friday October 27, 2017 @11:12AM (#15569153)
Yup, agree. Depending if you are working with a good static type system or with a dynamic language the value of unit tests can vary.

When working with dynamic languages I always end up writing a bunch of unit tests and a bunch of integration tests. I've experimented some with type hinting and static analysis in some dynamic languages but it's not the same as having the compiler make guarantees.

Re:Let me introduce: __slots__ on Wednesday September 13, 2017 @02:51PM (#15241398)
If you want to create a large number of Objects (like for rows in a data set) using __slots__ saves a lot of memory over just using the standard __dict__. I've always used named tuples for this in the past, but this is a nice way to do it.
Re:Sublime Text 3.0 on Wednesday September 13, 2017 @02:47PM (#15241345)
I love it! Sublime Text is an excellent editor and I use it every day. It's worth every penny for a paid license.
Re:Are You Downplaying Luck’s Role in Your Life? on Wednesday August 23, 2017 @09:07PM (#15086798)
I think being born white, male, and good at math at this particular time in history is the very definition of luck. I'm definitely playing the game of life on "easy" mode.

That being said I think there is a minimum level of effort, intelligence, and resilience required to take advantage of certain lucky opportunities if they present themselves. When I look at how much some of my peers had to endure and overcome to reach those minimums compared to what I had to do, it's easy to see how lucky I've been.

Re:Elixir in Depth – Reading and personal notes on Wednesday August 23, 2017 @08:20AM (#15080852)
I really should write a blog post about it :) but right now there isn't one.

Debian packages are easy to work with and we keep them as our primary artifact for any given release.

The number of cluster nodes varies between 10 and 35 depending on the workload at the time.

Nodes join the cluster by contacting one of the three "static" nodes that are not spot instances. If they can talk to at least one of those they get knowledge of the entire cluster. When one of the spot instances is going to be killed there is a notice is the instance metadata. The nodes just watch for that and initiate a normal shutdown if they see it.

Yes we do use ELBs but just as TCP proxies and for TLS termination.

Re:Why I Still Use Vim on Wednesday August 23, 2017 @08:12AM (#15080788)
I wonder if there is any possibility of using a newer iteration of Firefox with a configurable number of threads rather than Chrome as the engine for Electron (or something like it). In the browser at least this helps a lot to bring down memory consumption.

Electron does more than just about any other tool to enable building high quality cross platform apps. As someone who runs Linux on the desktop it's quite nice to be able to use the same apps as folks running Mac/Win. I just don't have any computers with less than 16 GB of memory :)

Re:Elixir in Depth – Reading and personal notes on Thursday August 17, 2017 @01:31PM (#15038876)
I've been running an Elixir app in production on about 20 nodes for 18 months. We just build Debian packages and deploy using Salt.

Additionally, most of the cluster nodes run on Spot Instances in AWS so they are relatively inexpensive also. When a new instance comes up it connects to the cluster and starts serving requests. When an instance is killed, traffic is routed to the remaining nodes. Works great.

This is pretty exciting, especially the debugger support :)
Doesn't blockchain verification depend on a certain amount of inefficiency? Isn't that what makes forgery difficult?
Re:The quitting economy on Wednesday July 26, 2017 @05:04PM (#14860348)
I've had a few sales jobs where I was employed full-time (w2 not 1099) but also had an employment agreement with a defined term. Most often the term was 1 to 3 years, and if you were going to be let go it would happen when the term was over. They just would not renew your contract.

You could still be fired "for cause" but that almost never happened. The employee would almost have to commit a crime to be terminated early.

Of course you could always quit during the term if you wanted, but that meant you would have to pay back the signing bonus received when the contract was signed :)

I really did not mind this structure, but it seems like it's confined to specific industries and outside of those almost no one does it. For example, I've never seen a software dev job with this sort of structure.

I'm not so sure they are separate skills. It's possible to write functions that are easy to test and functions that are hard to test.

I find that the two tasks of writing functions and tests for those functions are closely intertwined. I like for developers to write their own unit tests, and then for Q/A to develop the functional/integration tests from the perspective of the client (machine or human).

It's very difficult to come in after the fact and write unit tests for someone else's code, especially if they weren't thinking about writing testable code.

Re:Tesla Model S adaptive cruise control crashes into van on Thursday May 26, 2016 @12:03PM (#11779026)
Mine picks up the stationary vehicles 9 out of 10 times, but you do have to watch it. This happens most frequently at stop-lights on roads where the speed limit is above 55 MPH and I'm approaching the stationary car stopped at the light.
Re:Beartooth on Monday February 22, 2016 @06:22PM (#11155185)
I've had trouble with phone at low temperatures before, even when carried inside my parka, and inside a lifeproof case. Modern smartphones are not made to withstand life threatening temperatures for any length of time.

That said, something like this would be better than nothing.

Maybe I'm being dense, but why would someone want to write c++ code and transpile it to JavaScript?
Re:Switching from OS X to FreeBSD – Both Desktop and Laptop on Sunday November 29, 2015 @08:37PM (#10647111)
These same issues are what drove me to use Linux for my Desktops and Laptops. I don't use it on my MacBooks because the hardware is not supported well, but on a Thinkpad or a Dell it's a first class experience. I definitely prefer Linux on a Dell XPS 13/15 over OS X on a MacBook. (The Apple hardware is still better, grumbles....)
Is this for writing tests against? Won't the tests fail if this service is not available? If you need a static response why not save it as a file and have a local temp server respond?
Engineering is usually considered to be concerned with the application of science and math to build systems and solve problems. On a continuum with pure math on one end and applied physics on the other, most things that we think of as engineering fall more toward the applied physics end.

Computer science is much closer to pure math than chemical engineering for example. That said, I think computer engineering is a real thing and just because SV uses engineer as an aspirational title doesn't mean that writing code has nothing in common with engineering.

Software manages all kinds of critical systems from automobiles like the author mentioned, to auto-pilot in airliners, and control systems in power plants.

Maybe one day we'll have a recognized PE designation for pure software engineers too.

Re:What's the best way to die? on Tuesday November 03, 2015 @11:26PM (#10504599)
Sudden cardiac death is not a bad way to go.
Re:The Road to 2M Websocket Connections in Phoenix on Tuesday November 03, 2015 @11:23PM (#10504588)
I've been using elixir/cowboy/Phoenix for the past few months and it's been great. It seems like the elixir ecosystem is still being built out but there are a lot of erlang libraries to use also.

Older »