Better HN
topnewbestaskshowjobs
Log inSign up

bbcbasic

3,059 karma · joined Oct 30, 2014 (12y ago) · 2,493 submissions

Yolo mofo. Fomo? Hodl!

You is posting to fast. Slow down. Dang!

Submissions

comment 9y ago · link · parent

The U.S. has fallen to fascism, where will you go?

comment 9y ago · link · parent

would be cool if twitter shorted itself

comment 9y ago · link · parent

Friends?

comment 9y ago · link · parent

I doubt most of the code I have written has been done before, as most of it relates to the business domain and specifically the parts of the business domain that are currently under focus.

Anything that is generic, e.g. a double entry accounting system, an Actor model, etc. should be in a package management system - a Gem, a Nuget Package, a NPM pacakage etc. rather than copy pasted.

At the micro level for specific line-of-code level problems (usually due to language/platform quirks) we have StackOverflow.

comment 9y ago · link · parent

Some kind of AI to guess what category is for each expense would be helpful. For the bigger stuff there will be a 1-1 correspondence of payee to expense. However when you go to a supermarket it could be a mix, given then supermarkets kind of sell everything from clothes to computers. So working those out would be helpful.

It would be helpful if receipts were emailed to you by stores and can be parsed later - although there is no pressure on stores to provide such a service I guess.

comment 9y ago · link · parent

When I budgeted I liked YNAB4 for ease of use etc. However I think a lot of budget programs miss the point. In ordinary life it is harder to bucket budget than in business. Too many unexpected expenses.

comment 9y ago · link · parent

I feel you! I've been struggling with fatigue so to me getting through some days is an achievement. In bed at 7pm is awesome.

comment 9y ago · link · parent

Democratic Republic of Congo ... fwiw

comment 9y ago · link · parent

In which case if they don't fire you the interruption is eating into your learning time.

comment 9y ago · link · parent

Shame. Great musician.

comment 9y ago · link · parent

Yeah it's a public holiday in Australia

672.

Minimum Viable Personality (2011)(avc.com ↗)

1 points · by bbcbasic · 9y ago · discuss

comment 9y ago · link · parent

Sure I'm not against reactjs and that is just one example. It's a good framework to solve problems, but I doubt I'll get deeper insights from learning it.

comment 9y ago · link · parent

Category theory and some advanced Haskell

I feel that such knowledge is eternal. It won't be obsolete in 2027. ReactJS on the other hand ...

comment 9y ago · link · parent

Upvoted because I think this is so spot on. Technically any language that lets you pass functions and capture variables is functional, but you ain't going to learn the beauty of FP from JS.

comment 9y ago · link · parent

I agree. Reading YDKJS book helped. The trick is to realise "this" is like another argument to the function.

It varies by context, and will be set to the created object if new is used, set to global otherwise. You can also use the call function I think to set to something specific.

Anyway none of it really makes any deep sense to me, just a load of arbitrary features and traps.

FP like Haskell have a deep structure based in theory and maths, so although harder to make sense of initially, one you get it you don't forget it.

comment 9y ago · link · parent

Yep people will leave: the good people.

comment 9y ago · link · parent

Or if your mum walks in. Probability is higher that a given "event" is by someone still living with their parents.

comment 9y ago · link · parent

Sometimes you need a break. That's all. It would be more ideal if companies recognised that and we can stop all the pretence.

comment 9y ago · link · parent

I read the gang of four, got a hard on and banged out some code with lots of classes with really long names. Felt damn proud of it at the time. Wanted to be the next Martin Fowler, but probably just some confused poor sod now maintaining that pile.

comment 9y ago · link · parent

Sometimes good enough is best, and other times a refactoring is worth it. Key is to think of it from a business point of view. If you always refactor or never refactor, both extremes are suboptimal IMO. Deciding when a quick fix is good vs. something more considered is an art.

comment 9y ago · link · parent

True but I guess many OOers don't care to try to think prototypically. I did and I conclude that OO and prototypes suck equally so might as well use the prototypes

comment 9y ago · link · parent

Yeah people wish alien language is more like their home planet language, so there isn't a new mental model to learn.

comment 9y ago · link · parent

Or JS for that matter.

comment 9y ago · link · parent

This was a bit painful to use:

http://reaxml.realestate.com.au/docs/reaxml1-xml-format.html

Its an xml format for uploading property listings. Came with a dtd but was hard to really fathom out which combinations are valid.

comment 9y ago · link · parent

Sure

* Your values wont be null. So if you have a type say Object, and a value x of type Object. x will never be null. If in some cases you need values that can be something, or nothing, there is a "Maybe a" type and an "Either a b" type (often used for errors, i.e. it is either an error of type a or a result of type b). This gives you a lot of control and expression around things that might not have values.

* Functions have no side effects. You define a function and it has inputs and outputs but it wont go off and do something else. You can be sure that your functions aren't modifying global state, navigating to new urls etc. even without inspecting the functions they call, and the functions they call.

How does anything get done? Well the desired effects are returned as data. And you can tell by the type what kinds of effects it can produce, and what it can't.

Now I spend a lot of time on C# legacy code thinking 'ah a public property, great who is calling that, what is this function calling, OK a,b,c,d. Now what does a call, ok a1 a2 a3 a4. Ok they look OK now what about b etc. Lots of detective work that is not needed in Haskell/Purescript because the type sigs tell you almost everything you need to know from an architectural point of view about what is going on, because there are no side effects of functions beyond producing data to be consumed.

comment 9y ago · link · parent

You can't do anything extra since ps compiles to is anyway. However you can get all of the advantages of a powerful type system, and far more compile time guarantees.

comment 9y ago · link · parent

Next stop: Purescript :-)

comment 9y ago · link · parent

I work for a company that bets on the horses, and yet they use broadly similar techniques. But this doesn't replace humans at all.

Also as an aside, correctly predicting a superfecta happens quite a lot, and it is hard to tell from sample size of 1 if this was luck, skill or a combination of both. Probably a combination of both - their algo may have reduced the odds to 200-1 for example, and luck did the rest.

comment 9y ago · link · parent

Solution is to move the bathrooms into the open plan. No more slacking or being aa wimp in private.

Or even better give everyone nappies so they can clean themselves on their own dime. Once they get home.

1
222324
84