Now it's just random 'interesting' things? That's what reddit is for IMO.
3,049 karma · joined June 2, 2009
Now it's just random 'interesting' things? That's what reddit is for IMO.
SELECT spf.blah_blah,
count(*) AS cnt
FROM jv_CTLG_ENTITY_ATTR_PROD_MAP prod_map
JOIN jv_SSA_PRODUCT_FACT spf
ON prod_map.prod_ref_id = spf.PROD_REF_ID
WHERE prod_map.INVSBL_IND = '0' AND
spf.LSTG_END_DT >= date_sub(from_unixtime(unix_timestamp()), 2) AND
spf.LSTG_START_DT <= date_sub(from_unixtime(unix_timestamp()), 2) AND
spf.lstg_site_id = 0 AND
prod_map.ENTITY_ATTR_TYPE_DESC IN ('BMPN','GTIN') AND
spf.CTLG_ID = 1075 AND
spf.LSTG_TYPE_CD NOT IN (10,12,15)
GROUP BY spf.blah_blah;There's no reason to tag the type of a field when you have a typed syntax. The real problems with JSON aren't at all addressed by this:
keys have to be strings lack of 'attributes' like xml, which means you have to make a document convoluted from the start.
For example, lets say I am storing product data, I might do it like:
{'title': "Billy goes to Buffalo", 'page_count': 193, 'author': "Ray Broadbunky"}
But later I might want to be able to store attributes or metadata, in xml this doesn't change the schema of the document:
<product> <title>Billy goes to Buffalo</title> <page_count>193</page_count> <author>Ray Broadbunky</author> </product>
Can be extended to:
<product> <title human_verified="false">Billy goes to Buffalo</title> <page_count human_verified="true">193</page_count> <author human_verified="true">Ray Broadbunky</author> </product>
It's not beautiful but anything using this data will not have to change at all to add any metadata like this.
However, with JSON you have to either add new data that can somehow be joined to the data originally, or more commonly you have to be very defensive and 'plan for' this stuff, greatly complicating the schema.
You end up starting with: {'attributes': [ {'name':'title','value':"Billy goes to Buffalo"}, {'name':'page_count', 'value':193, ...
so that you can add unanticipated things later without breaking consumers of the data
but at least some are addressed: no standard way to store bytestrings lack of time type
This library should include the tagline "why learn something useful like regular expressions, when you can use some custom library with 1/10th the power!"
I'm talking about basic human needs. A microscope is a dumb thing to hand to someone that is hungry.
However, linux is missing basic functionality other os's offer, and systemd is showing up and trying to fill in those blanks. This is open source, if you don't like systemd, if you think it's crap, if you think there are obviously better ways to do it, well, what are you waiting for then?
Systemd is winning because they showed up and basically nobody else did. It's open source fork it and 'do it right'. Or point out the problems and hope that someone else will step up instead?
I think the world would better place if people spent less time griping and more time fighting to get their patch that fixes the problems merged. I guess coding is harder than writing blog posts though.
EDIT: I'm not saying systemd is perfect or even good. My point is that the people writing the code are going to have the final say, whether it's right or wrong, and it is unlikely that people writing blog posts lampooning it are really going to make a difference. I mean systemd has been despised and highly criticized from the beginning, and look where we are.
But lets just be honest here, getting every kid in the world a microscope is a dumb idea. Most kids that have microscopes don't use them, they collect dust, and then get thrown away eventually. For the handful of kids that actually use them, the kind of microscope you would be able to afford to give out to everyone would be a piece of crap.
5/7 == 71.4% of days are work days
3/5 == 60% of days are work days
So we would lose 11% of working days, but you would get a weekend after every 3 work days.
I think the main objection would come from various religions which have hard-coded a 7 day week, but if they picked one holy day out of 5, that is even more visits to the designated building of that religion every year, so it seems like they could get on board with that.
Not to be too glib, but if it was, 'safe' nobody would be interested in watching them do it. If many didn't die doing it, well that is what safe means.
For example, my 12 hour video "United Flight, Coach, Extreme Red Eye" got way less views.
One concern I have is that if you are idling the engine and have the fantastic fan on, wouldn't you be sucking exhaust fumes into the vehicle? Or is the hole at the back meant for exhaust with the fan pushing air in?
There are teams where people are having more fun 'kicking ass' and getting things done, and have a great time with the people they are there doing it with, and frankly they would laugh you out of the building (literally) if you even for one second referred to them as 'resources'. I have seen people wander into the office on the weekend just because they were bored (including myself), or were looking to hang out and hack on some stuff. It's not something that burns you out, it's a passion for some people. The good people.
I think you have had a very limited (and limiting) work experience, to be honest.
Tons of stuff is classified, sits in a safe for years and years, and eventually just gets shredded. Probably 99.99% of it. There is a cost to declassify documents, but for the mountains of stuff that never gets declassified (because it just goes into the memory black hole) there is no cost.
Honestly I think there is just a CYA mentality to just slap SECRET on documents rather than trying to thread the needle and figure out the exact correct classification. In theory these documents should be classified at the paragraph level, and in that case things like public statements by public figures would be unclassified even if they were a part of a highly classified document.
People will properly classify things if there is some reason to, but day to day it's not trivial to do and in the end nobody sees their goal as 'get the exact right classification on everything' vs 'find a terrorist or figure out what russia is planning'.
Startups are not for that mentality, no startup has ever won by playing it safe and making sure people get plenty of sleep.
I interview a lot of programmers, and I can tell you with about 95% precision whether they will work out and be great based on the single question 'tell me about the programming projects you work on for fun'. If they have some project they work on for fun, even one, that isn't for a class at school or for their job, then they are very very likely to be a great hire. If they don't they are very very unlikely to be a good hire. Side projects don't magically make you smart and capable and good at problem solving and getting things done, but it sure seems to be fundamentally related.
And from personal experience, I've worked for 2 startups, one where people worked all weekend and one where they didn't, and interestingly they were doing almost the exact same thing. One had an $80MM exit, the other just slowly went away. Small sample size, for sure.
Where are the software projects that are built using functional languages?
I'll call out XMonad. What can you come up with? Obscure companies doing obscure things, or else people using Common Lisp in a nonfunctional way.
What major project or product is built using Haskel or Ocaml? There aren't any! The only thing I have ever used that were written in those languages are XMonad and csvtool respectively.
Using your definition, virtually every language in use today is 'functional', all the way down to Fortran 77, since really any language you can get a pointer or other handle to a function or callable object would let you implement map, filter, etc.
Really the existence of map, filter, etc are not a clue to a language being 'functional'. Yes, you would need such things, but they are not sufficient. C is not a 'functional language', even though technically you can write C that is completely functional in style.
In fact, almost any modern language can be used in a 100% functional style, avoiding side effects and state completely. Nobody does this.
Even if it is one of your favorite things, virtually no one uses functional languages. This isn't because people are dumb, it's because functional languages are cumbersome and inefficient.
I strongly recommend YubiKey, it is convenient and cheap and extremely secure.
With ssh it is very easy for someone to create an ssh key that does not have a passphrase. With that, it is possible to log into the server with just the key file and nothing else. At that point all it takes is someone to lose a laptop or leave a computer unlocked and unattended and someone can get access to your machines.
Simula was working in like '67, which is like 5 years before smalltalk.
My point is that functional languages do not predate OO languages, and if anything come later, and you never really addressed that.