Better HN
topnewbestaskshowjobs
Log inSign up

AlwaysBCoding

882 karma · joined Sep 4, 2012 (14y ago) · 181 submissions

https://www.youtube.com/channel/UC8CB0ZkvogP7tnCTDR-zV7g

[ my public key: https://keybase.io/alwaysbcoding; my proof: https://keybase.io/alwaysbcoding/sigs/ES-ODI1v11tS_xq38nxpRtSoFMBs30d--AiC25_1s3g ]

Submissions

comment 10y ago · link · parent

Yes, there are a lot of dumb startups but I'm still not convinced this is a bad thing. Why does every 24-year old have to be changing the world?

Imagine you have a 2x2 matrix where the x-axis is positive value added to the world and the y-axis magnitude of impact. You want your job to be in the top right corner, high impact, high value added to the world but there's two ways to get there. You could do something that has high value but low impact like working at a non-profit in DC helping with excel spreadsheets or whatever, you're delivering value to the world but making a very small impact. The other approach is that you could learn how to build a large scalable system for delivering a solution to millions of people first. Maybe you're making the 100th best photo sharing app and it will never add large value to the world, but you're learning how to deliver impactful solutions you just need to figure out how to deliver real value. I'm not sure why there's a bias against the second approach. I lived in DC for five years and most of my friends are doing less interesting things than my friends in SF. Someone who gets experience at a startup that builds interesting technology but never takes off could be the next CTO of a political campaign for all you know.

Also, it's a complete myth that San Francisco is expensive to live in. You can leave cheap or expensive in any city. SF has a culture where being poor is totally cool. Everyone gets it, you're in tech you're an entrepreneur etc... There's no pressure to go to nice restaurants for social status like there is in New York. I spend much less money in SF than I did living in DC just because of the lifestyle I'm living. Buying a house in SF is impossible due to the insane prices, but it's really not that bad living in an apartment here.

I don't think people are spoiled here, I think your perceptions are off. First, programming takes place entirely inside a persons head. Mental state is really important, and the 9-5 office job with a commute to and from the office every day doesn't work very well for engineering. I like to break up my day into two halves. The first half of the day and the second half of the day, this gives me two discrete time periods where I can do work and I like to take a bike ride in between because I can think about the problems, and then not have to go to the gym later in the day. When I was working for a company in DC there was no way I could have left at 2:00 to take an hour bike ride, even if that's how I work best. I think it's ridiculous to say that people working in their optimal workflows makes them spoiled.

And again, it takes probably 3 years to become a high-quality engineer. So I'm not sure what you would want coding bootcamp graduates to do after 3 months, get together and talk about how hopeless life is? I'm glad that people are getting into the industry, the only way you're going to get better is by getting real world experience. So what someone with 8-months experience isn't a great engineer yet? By continuing to get better over the next couple years he will become a better engineer and then be able to add significant value to the world, I'm not sure why you would want to discourage developers from perfecting their craft. This would be like heckling a Med School student for not being a great doctor yet.

comment 10y ago · link · parent

I mean, I like R, I think R Studio is an incredible IDE, but I would never build anything meaningful in R code. It's messy, slow, and has an antiquated community where people share library documentation in PDF's.

Julia seems promising, I haven't used it on a real project yet though, but I really like how easy it is to do data visualizations in the browser with Clojurescript and don't see Julia really having an answer for that.

comment 10y ago · link · parent

It's a good thing they had great documentation... oh wait.

comment 10y ago · link · parent

Oh man, and having to manually configure your server logs just so you can see what requests are being made and where errors are popping up vs. just tailing log/development.txt in Rails...

comment 10y ago · link · parent

Hm, I guess that's a valid point. I normally think of web apps as a frontend to a database, but could see why that's not the only use case. If you don't have a database associated with the service, can't you just use AWS Lambda or something? Is it necessary to maintain an entire separate project for it?

comment 10y ago · link · parent

Yeah exactly, for building UI's less is more and the Clojurescript approach works really well. For building web apps, I really don't care how storing sessions, or configuring your web server or parsing HTTP requests is done, I just want it to work out of the box.

comment 10y ago · link · parent

I don't think Datomic takes that long to wrap your head around, but it does take a long time to actually use. There's no inherent equivalent of Model.all or Model.where(x = y), so chances are that you'll have to write your own DSL for mapping domain objects to datomic queries which is a time consuming non value-adding activity. You'll also likely want to transact through some DSL so that you can do validations, and post-creation lifecycle hooks, where in Rails or something you'd just get that for free. The Devops is pretty frustrating imo, there's no equivalent of the Heroku Postgres or AWS RDBMS one-click deploy for Datomic, so you'll need to set it up and monitor it yourself, which can get tricky when doing things like REPLing into the db from your local Emacs shell can crash a process downstream somewhere because you went over your remote peer limit without realizing it. And there's no view that shows you the IP address of every connected peer, so it's kind of hard to debug what exactly is going on sometimes. I think the query engine is really cool, I just feel like I waste a lot of time using Datomic that I don't with other databases.

comment 10y ago · link · parent

My $0.02 on the state of Clojure -

For building stateful UI's Clojurescript + Reagent beats anything else out there.

For data science and algorithms Clojure beats anything else I've used.

For backend web development Rails is still miles ahead of any Clojure workflow.

Datomic is interesting but there's still too much incidental complexity to be super productive with it. It's hard to build a startup on Datomic because of the pricing and productivity hit, but could see it being useful in the enterprise where speed is less important.

I'm very interested in mobile development with Clojurescript on top of React Native, but haven't found a tutorial that wasn't written in hieroglyphics, so assuming that needs some more time to mature.

comment 10y ago · link · parent

My $0.02

React is a rendering engine, it's covers the final piece of your web app (rendering a data structure into DOM). But whatever you do to create the data structure that gets passed to React is up to you. This keeps most of your domain logic outside the context of the React framework, you just use React as a tool to render you final data structures into DOM. So basically the API you need to know for your domain logic is just Javascript, which most people know already and it's really easy to lookup answers to your questions etc...

With Angular your domain logic exists inside the context of the framework. i.e. if you ng-repeat something you can't just filter that collection with Javascript you have to use an ng-filter to do it which is a special Angular construct. So the API you have to learn to manipulate data isn't just Javascript it's Angular-specific. And what if you don't know how ng-filter works? Well, you're tied to the Angular docs to figure it out. The Angular docs are of particularly poor quality so this coupling turns into a really serious problem if you're trying to be productive, because you're constantly reading docs to figure out how you do something in Angular.

I'm not sure how Angular2 is since I haven't used it, but to me React vs. Angular1 is a no-brainer win for React, since it's much easier to be productive in React + you can target mobile now with React Native. Something I've noticed also, there are basically no developers who have switched from React to Angular and now evangelize Angular, yet there are thousands of people who have switched from Angular to React and now evangelize React. I think that speaks for itself in the sense that anyone who has used both extensively prefers to use React.

comment 10y ago · link · parent

There's another one I came across recently also https://getsiphon.com/

comment 10y ago · link · parent

To the people thinking 10,000 characters means suddenly everyone will write blog posts instead of tweets... Have you ever tried blogging? Writing blog posts is insanely hard and time consuming. You'd be an outlier if you could write one good blog post a day. It's not like every tweet is suddenly going to be an essay. More likely tweets will just be slightly longer (200 characters or something) and then there will be the occasional longer post. This is great because the hacks we were using beforehand (tweetstorms, replying to yourself, posting images of text) were all ridiculous for such a basic use case.

comment 10y ago · link · parent

And the publish/subscribe model being a possibly superior alternative to a two-way opt-in friendship model, is probably the reason for twitter's success not the 140 characters. So by keeping the subscription model but allowing for longer content, I think it's a win-win.

comment 10y ago · link · parent

The character limit is a massive problem though. Tweetstorms, replying to yourself, and posting images of text are all ridiculous hacks for a basic use case.

comment 10y ago · link · parent

Also you don't really need to use a flux library or Redux if you're using Reagent, it's pretty much all set up for you.

I've been using ClojureScript/Reagent for about a year now and all this JS tooling talk goes way over my head, I haven't needed to use any tooling other than lein cljsbuild for a while now, and it's glorious. If the Clojure community / ClojureScript was more approachable to beginners I think ClojureScript would be taking over right now.

comment 10y ago · link · parent

Kind of crazy to think how different Pokemon Red/Blue would have been if they were developed in the current age. Buy a rare candy for $1. Pay 10 cents to heal the PokeCenter. You're only allowed 20 battles in a day unless you invite friends on facebook.

Would have made so much money.

comment 10y ago · link · parent

Here's a better idea.

Stop publically calling Edward Snowden a traitor, stop trying to pass nonsensical cybersecurity legislation through congress, remove the ridiculous ban on working for an intelligence agency if you've smoked Marijuana in the past year, have a quicker and more transparent background investigation process for security clearences, and start winning some goodwill with the developer communities if you want help with political conflicts.

comment 10y ago · link · parent

It's in that Thumbtack/Shyp category of billion dollar companies where the only time you hear them mentioned is from VC's and TechCrunch not actual users

comment 11y ago · link · parent

I actually think we're at the point where it's an irresponsible business decision to build an iOS app in Swift over Javascript in most cases. React Native can target both iOS + Android with a much better development workflow than Swift can offer.

Why on earth would you want to use Swift when it's harder and more time consuming to implement, takes longer to learn, has worse library support, is harder to hire for, and only targets one platform? Apple really dropped the ball with Swift.

I suppose that "performance mandates it" is a valid reason for wanting to use Swift. But I think for 95% of apps Swift is the wrong technology choice.

comment 11y ago · link · parent

Um... Debbie Wasserman Schultz, the chair of the DNC, was the co-chair of Hillary Clinton's 2008 campaign. It's no secret she wants Hillary to win the nomination.

It's actually a pretty fucked up system. The rules for qualification into the debates are decided by Wasserman Schultz and her alone, so the "rules" end up being in practice "will this make Hillary Clinton look good or bad?". Lessig's inclusion ran the risk of making Hillary look bad - by calling her out on her corporate donors - so he was excluded. Clearly this is not how we should have public debates about the future of our country.

For what it's worth, Wasserman Schultz is already under fire for restricting the Democrats to only 6 national debates. Almost every other executive in the party thought this was a bad move since it gives the Republicans significantly more airtime, but remember the rules are decided by Hillary Clinton's campaign co-chair.

Also Trump just called her out, which is pretty funny. http://www.mediaite.com/online/trump-takes-aim-at-highly-neu...

I don't think she's going to keep her job.

comment 11y ago · link · parent

It's probably this. I've livestreamed on Twitch + LiveCoding and have no clue why you would ever use LiveCoding. Twitch and Youtube seem like they're better in every capacity.

comment 11y ago · link · parent

Also, Prohibition was enacted via a constitutional amendment, yet a large portion of people simply ignored it. It always gets understated what a massive crisis this ended up being for the integrity of the US Constitution. If one amendment was seen as optional by an increasingly larger group of people, maybe the others would be as well. It was important for the integrity of the government that they repeal the amendment. I have a feeling if prohibition were enacted via a complicated loophole like the one that keeps the horrible 21 drinking age afloat it would have been much harder to repeal in full.

comment 11y ago · link · parent

yeah like a five person team who's CEO spends 70% of time fundraising is probably fine. But an ENTIRE team that spends 70% of their time fundraising perpetually would be about as effective as Congress actually is.

comment 11y ago · link · parent

The "limit" on campaign donations is a complete farce though. Let's look at Jeb Bush. Jeb stated multiple times that he wasn't running for president in 2016, and instead started a Super PAC that let him raise uncapped campaign donations, and ultimately raised over $100 million. Then he announces that he had a change of heart, was indeed going to run for president, and gave control of his Super PAC to a friend of his. And now he has $100 million to play with, fuck that $5k limit, and the voters/peasants who would donate it.

comment 11y ago · link · parent

The thing is though, Lessig is completely right. Members of Congress spend 70% of their time raising money. They're not lawmakers, they're professional fundraisers. Think of a startup whose founders spent 70% of their time raising money, they would never get anything done. And since fundraising is now such an integral part of a Congressman's day to day, they have two classes of constitutes to think about: the voters, and the funders. And there is a very small group of people who give > 50% of all campaign cash and more or less have control over the entire country. This is why common sense laws that have majority support from the voters (gun control, marijuana legalization etc...) never get the traction they should. The funders don't want them, and they have the final say, not the voters. It's crazy how complacent people have become about government incompetence.

The becoming president and then resigning thing was weird. I'm glad he's dropping it, because you can hate the method all you want, and I too think he comes off really distant out of touch sometimes, but what he's saying needs to be heard.

comment 11y ago · link · parent

It's become impossible to ignore how terrible the NFL's decision making has been in the past few years, and I'm starting to wonder if a FIFA situation where every top executive is simultaneously removed is the only logical end-game for this mess.

Their hypocrisy about saying gambling is a major threat to the league, while simultaneously lobbying congress for fantasy sports loopholes in gambling legislation and ramming FanDuel commercials down our throats.

Ignoring concussion research for three years and actively trying to intimidate researchers. Then pretending to care about player safety while simultaneously pushing for a longer season schedule.

Making everyone in the NFL wear pink for a month to market to women, while simultaneously sweeping multiple cases of domestic abuse under the rug.

Ignoring federal labor law while trying to suspend their best player for something he didn't do wasting millions and millions of dollars in the process.

And now, declaring war against media companies and making it harder for fans to follow the sport because they want to run 30-second pre-roll ads in front of 6 second video clips which will never even come close to working. It's an utter disaster. I have no faith in the NFL to conduct itself competently in the modern media landscape. They are such an embarrassment of an organization. I've never felt that way about a sports league before but the 2011-present NFL is just so awful.

116.

Thresholds of Violence: How School Shootings Catch On(newyorker.com ↗)

2 points · by AlwaysBCoding · 11y ago · discuss

comment 11y ago · link · parent

This is just one of many scandals for DFS in the past weeks. DraftKings had to refund all MMA bets on Saturday because of a "data error" -- it was sketchy as hell.

comment 11y ago · link · parent

This is awesome (and was seemingly inevitable now that React Native is in play), and it will be really interesting to see what Apple eventually does about this.

If they change the terms of service to prevent hot loading app updates via JavaScriptCore they're going to isolate a lot of developers, since so much cool stuff is being developed around JavaScriptCore right now. The rnplay playground app that's currently in the App Store dynamically loads entire apps onto your phone to play around with -- it's so cool, why block things like that from existing?

If they do nothing, it's clear a rogue app store distribution ecosystem is going to evolve (case in point ^) which seems like a sub-optimal outcome for everyone.

Isn't the only eventuality for Apple to change their app store approval process to allow dynamic updates? I mean it's obviously better for developers, and probably ultimately better for end users as well. I just don't see any way around it with the momentum writing iOS apps in Javascript has right now.

comment 11y ago · link · parent

I mean, this isn't like a kickstarter project where you have a nice video from some random person and nothing but blind optimism it can actually deliver. This is Facebook open-sourcing a library that has been in their production codebase for multiple years. It solves a specific problem that most developers are intimately familiar with, and has already been praised by people in the tech community who aren't officially associated with Facebook. It's ok to get excited about this :)

comment 11y ago · link · parent

Well the whole idea of Relay is to couple together the rendering logic of a UI component with the data fetching requirement of the component. So if you change the rendering logic of the component, the data that is fetched from the server will also change with it and you'll never be over/under fetching data.

But inside the UI component you're really just defining the schema of the data to be returned from the server, you're actually implementing how to fetch that schema from the database somewhere else in your codebase.

Clojure 1.7 introduces a new file-type with extension .cljc that can load in both Clojure and ClojureScript. Which means you should be able to define both your React component AND the Server side implementation of the data fetching schema all from one file. Pretty frickin' cool if you ask me. One file, one component, that knows how to render itself, fetch it's data and serialize it's data.

1234567