Better HN
topnewbestaskshowjobs
Log inSign up

sumtechguy

2,602 karma · joined Jul 31, 2020 (6y ago) · 1,754 submissions

Submissions

comment 5y ago · link · parent

I just wish many of the docs were better.

I see this 'style' many times in some docs. A bit of doc that basically describes the name of the function/class. But does not show why and how to use it, how it fits in the API system, and so on.

public void DoesXYZ()

Then many times a description of 'a public method that does XYZ' does not return anything.

It is exceedingly unhelpful but meets the 'it is documented' checkmark.

My next step would be to search for an example usage of that thing (usually landing on something like SO or some random training site). Then what sorts of items might it need to work. Why would I use it over something else? Some OK examples of what is going on goes a long way and what sets the expectation of the original dev on how they were expecting you to use it. So I end up spending some decent amount of time reading the tea leaves and if I am lucky the code itself to decode what is going on.

One feed back I consistently give to all vendors is 'your docs need examples and those examples need to be consistent with each other' If I have to open github and spend a few hours reverse engineering that code, and then also try to learn whatever language you thought was fun to play with 6 years ago, I am not going to be happy.

comment 5y ago · link · parent

That and the tests. Many teachers like the pre canned tests these books come with (please finish problems 10-50 even by the next class). Now it is online run by the publisher. Cheating is now even more rampant than it was before the code thing with many sites having the answers.

I would wait 1-2 weeks after class started to buy books. Especially if the teacher decided you need 6 of them to finish the class. It was usually pretty clear which ones they were going to use by that point.

comment 5y ago · link · parent

A yard takes 1-2 years to fixup into shape. Less if you go with the quick and easy 'rye' way, but that is only good for 1 year. If you can afford it hire someone who does it for a living and it will be amazing. But if you want DIY just buy plants that fit the area. Aeration and proper grooming will be the top items on the list.

I would go house shopping with friends and family. I would walk into houses that were basically amazing. But they would hate the backyard had not been mowed this week and nope out.

When buying a house keep an eye on structural, shape, layout, and location. Everything else is mostly decorative. For example I had to kind of move recently fairly quickly. So the apt I ended up in is very 70s. There is no fixing that structural. The owners have tried with paint and colors. But it still has a very closed in 70s build to it. No amount of paint will fix the walls that are in the way.

comment 5y ago · link · parent

I could see that keeping one big file would still be advantageous too in that environment. As a fopen on a set of small sized files plus read plus close over and over does add up. Just in cpu time and memory slack. Whereas treating it as one giant packed backing store would have advantages in speed. But at a cost of dev time. Even if you are compressing it as well could be an advantage. But I would expect there to be some spot where it crosses over from being an advantage to a disadvantage. I suspect it would be on small files/objects. But that would just be for speed. You may have to optimize for size in some cases. In the end it is usually better to build some test code and find out. Sometimes the results are what you expect. Sometimes you are spending time on things that do not matter anymore but were a big deal 20 years ago.

comment 5y ago · link · parent

To be fair there is also nothing that really connects this piece of paper which is the title of my car to my car.

This application of blockchain seems to be only creating a chain of ownership. Which we already sort of have now with many things. It does not seem to bring many better properties with it other than one I can think of. That property is that it makes it harder to forge ownership.

The weird thing is coming from people creating NFT's for things that are basically not worth tracking who owns it. Then others buying that thing at a wildly overinflated price (which many digital easily copied goods fall into).

comment 5y ago · link · parent

Split your company in 2. This one gathers money for product A. This one gathers money for product B. Look at that each is 99million. That is just a very simple way around it, until another law is written. Your method sounds like a good start but you need to remember for every idea anyone has they have 2 accountants they can afford to get it back.

If you want to understand why we ended up here you need to get at the root of the issue. Exemptions, tax breaks, and writeoffs. Once those were created there will be an accountant that will max/min that thing. You may think 'oh flat tax'. The problem is unless everyone does flat tax no one can. This is due to putting yourself at an economic disadvantage in relation to other countries. An interesting prisoners' dilemma if you will.

comment 5y ago · link · parent

You beat me to it. There are some good ones out there but they are rare. I have not had to do it recently so I can no longer recommend any.

What is really annoying is how over the place the USB ones are in quality and drivers. The rub is they almost work. In many cases they are fine. But some of them have very odd modes of working fine then becoming jittery. What is also annoying is you can find a brand that 'works great' then the next batch they switched something out. Then there are some out there if your software does not play with the rts cts 'pins' correctly the whole thing will get out of wack. So your can end up in a condition where it works rock solid on real hardware but the USB will refuse to work correctly because you did not follow the 'standard', or worse sorta work.

comment 5y ago · link · parent

In Vista RTM and sp1 turning off indexer was a great solution. It was monster on the drive and memory (5-10 min startups on computers that should be up in 30-60 seconds and were after you turned things like that off). They fixed it in sp2. Superfetch was just as bad as well as the windows defender. Most of that was fixed in win7. I now let all 3 of those services run. The issues were fixed...

The problem is these 'solutions' never go away. They are never revisited. So people just keep applying them because 15 years ago they had an issue with them.

comment 5y ago · link · parent

It is called regulatory capture.

comment 5y ago · link · parent

I did something similar. It was that day I tried to make sure I use some alias when posting. What is benign one day will be heretical tomorrow and vice versa.

comment 5y ago · link · parent

What is more funny for me is my parents. When I first moved out they 'helped me out'. Sure some of it I still use to this day. But a good portion of it was them getting rid of their stuff.

Another lesson I learned was not to be too quick to take other peoples left overs. I was really bad with computers for a bit on that one. A few trips to a local computer recycler later and that issue was cleared up. That is not even moving international that is this junk is in the way of things I do use. What was a little sad was one large stack of game magazines (2 decades worth). Like 2-3 weeks after I dumpstered the things someone on a forum was asking if anyone had them! doh! I am right now looking at a dumb period where I was buying lots of lego. What am I going to do with that? I have culled the 'easy' stuff. Now it is the 'what am I going to do with that' sort of items... When the reality is I do not really want to spend any more time at all on them. So that junk sits in boxes...

comment 5y ago · link · parent

If I am 'in the zone' and someone walks up to me I hold up my hand and say 'wait a min I need to get this down'. Then I write a note to myself to myself back where I was. I then help them. If someone says 'can you come back later' I always respect it. I also sometimes just tell people 'not right now I will get back to you in a bit' and it works surprising well. But make sure you come back to them at some point or they will not respect it next time.

My personal biggest issue is self interruptions. Mostly web sites that are distracting.

comment 5y ago · link · parent

If it makes you feel any better. I kept that junk too for years (25+) after graduating (3 moves). They sat in a box doing nothing but taking up space in my home. On my last move I took what textbooks I could to the library (they did not want it, they already have 8 copies of that sort of thing). My notebooks I would open each one up and realize I had 0 idea what my notes meant. Like no clue. I could see oh this is a calculus class, but what the notes meant out of context of the class and where in the book it referred to? Nothing. I tossed them. I had forgotten they even existed until I opened the box up and sighed in a sarcastic way 'oh good more books that I never use'. The only ones I kept was some ideas I had for programs that were well fleshed out and documented nicely. Plus some nice books on algorithms and graphics. But most of that you can get on the net. Even now 25 years later? That is pretty much out of context of what I was thinking then. I would probably start completely over, notes and all.

I purged about half of my stuff a few years ago. I still have a huge pile of junk. On my next move more of it is 'going away'. It is in the way and takes up space.

comment 5y ago · link · parent

I too am doing the same. I own hundreds of these things. The part where I am a bit 'afraid' is they just decide 'who buys dvds anymore'.

comment 5y ago · link · parent

If you are in the windows world I have been using this. https://sourceforge.net/projects/nikkhokkho/files/FileOptimi...

Which contains all of those and just tries them all. Been meaning to pop it all out and make a bash script of them to automate some of my stuff on a cron job instead of using a GUI.

comment 5y ago · link · parent

I think it would be interesting. But even at the end of SG1 they had already 'jumped the shark' as it were. They tried to make up a new bad guy but it just was not as good. I think reviving it would detract from what is there.

Now more Bob and Doug McKenzie I would be down with that.

comment 5y ago · link · parent

I agree. For me it was mostly just to stop her renting the machine. I personally just use simple stuff you learn in PE and some isometrics. Using bands would be a nice augment to that.

You do not need a lot of money to exercise. You can get in cheap. Mostly it is about setting up a routine and doing that. Basically 'procrastination is the thief of time' and 'by repetition I get things done'.

comment 5y ago · link · parent

I am more bewildered as I try to figure out where the value is coming from. An NFT as far as I can tell is just saying 'yes I own this thing'. But the original creator still owns everything really relevant about that thing anyway. What are they buying? Are there any relevant resources out there that lay out where the value is derived?

comment 5y ago · link · parent

My wife was dumping 50-100 a month into a gym. I said "I will buy you whatever equipment you are using there and if it breaks you can go back". That was 15 years ago and the stuff is still in good shape and used daily.

Renting makes sense if you can not afford it at all or only will use it for a small period of time. If you are going to use something long term you are usually better off buying that thing.

Also try to buy used equip. Many times people realize they did not really want to do it at all but made an excellent coat hanger. Usually it is in very good condition and you can save a decent amount of cash.

comment 5y ago · link · parent

The big one to keep an eye on is cyclomatic complexity with respect to function length. Just 3 conditional statements in your code gives you no less than 8 ways through your code and it only goes up from there.

All of these 'clean code' style systems have the same flaw. People follow them without understanding why the system was made. It is why you see companies put in ping pong tables, but no one uses them. They saw what someone else was doing and they were successful so they copy them. Not understanding why the ping pong table was there. They ignore the reason the chesterton's fence was built. Which is just as important if you are removing it. Clean code by itself is 'ok'. I personally am not very good at that particular style of coding. I do like that it makes things very nice to decompose into testing units.

A downside to this style of coding is it can hide complexity with an even more complex framework. It seems to have a nasty side effect of smearing the code across dozens of functions/methods which is harder in some ways to get the 'big picture'. You can wander into a meeting and say 'my method has CC of 1' but the realty is that thing is called at the bottom of a for loop, inside of 2 other if conditions. But you 'pass' because your function is short.

comment 5y ago · link · parent

I wonder if they mean like the thing like what people say about DST causing deaths. But if you look on the large scale that blip does not exist. Standupmaths did a segment on it a few years ago. Basically the idea was 'yes you were going to die, and DST seemed to make it happen' but it seemed to only make it happen a few days sooner than it normally would have. Maybe that is what they are talking about? I personally know a couple of people who were marked as dying from covid. But the reality was they were going to die very soon. They both had very advanced stages of Alzheimer's.

comment 5y ago · link · parent

Good point. Cars are not really a good asset except in very special cases. I should have probably picked a better example. They will many times borrow against an existing asset to basically buy/grow another asset. The 'fluff' is usually for tax writeoff if they can.

comment 5y ago · link · parent

The first one was more temporary while they figured out what they had just did. (things like how do we pay the bills)

https://en.wikipedia.org/wiki/Articles_of_Confederation

That is why the one we are under is basically the 2nd revision of that.

comment 5y ago · link · parent

You can have the same tools but not necessarily the same connections. The issue is usually capital. Most people do not have it.

For example take Paris Hilton. When she had her DUI a few years ago her 500k car got repo'd. Wah? She stopped making payments on it. Payments?! Because she probably had it going through some business expense structure and was probably literally writing off the interest and payments. More than likely the original money was borrowed against an existing capital asset. If the sale price of the car did not make up the difference they had to come up with whatever cash was left over. Like most repos. But in this case it was a fairly flashy car that held its value decently well. So they probably took a small loss. But there was never any real risk to owning it.

Think of getting a HELEOC but running everything through that type of borrowing structure. But since you 'know a guy' you get the super awesome low interest rates. Which are business expenses. That flashy show of hers was a way to write a bunch of stuff off. Everything is an expense and a way to write it off your taxes. In some cases it does not even affect your taxes if you bury it in another company that is doing something similar that you control 100% of and just happens to be in a lower tax bracket. But gave you a sweetheart deal of leasing a yacht for a small amount per year for being such a good customer!

comment 5y ago · link · parent

Also around that era a usb drive of comparable size was available and pretty much worked with all computers for similar price points.

comment 5y ago · link · parent

I personally like to use this site when this sort of thing comes up. It is not a perfect breakdown. But hits on what is going on on. https://www.usdebtclock.org/

Bottom line though is we are taking in about 3.5 and spending about 7. We are well past 'buy one less bomber'.

comment 5y ago · link · parent

There are some important points here. I would add these. 1) have a plan. what are you going to do? This is important as you may find yourself 'done' with whatever it was you were going to do. What is plan B?

2) have a budget. what can you spend per day? What is your current burn rate vs your new one vs liquid assets on hand? Are you OK with the difference?

3) when you start looking again what are your expectations? You now have put a hole in your resume. Remember companies like the idea of you can 'hit the ground running' so have a story for this. From their side of the desk you look like someone who can not get hired. They will use it as a filter. They have 200 resumes to look at and 199 have to go. Any dumb thing they can to kick you off that pile is one they will do.

4) do you have other obligations? For example car payments? Spouse? Parents who need help? etc? These may consume your time/money faster than you think or plan. As they will all say the same thing 'you are not working why dont you ....' Set boundaries.

I personally would not do it again. It was enjoyable enough. But the money anxiety I got was bad. Even not really having any debts or anything to worry about. It was just too much for me personally. I was not bored as I have plenty of projects I like to piddle with.

comment 5y ago · link · parent

Sure at first then like cable TV it will suddenly cost a lot more later.

comment 5y ago · link · parent

I use my tabs like a stack. The bookmarks are the long term overflow.

At the end of the day the stack is closed out or put into bookmarks for later looking at. I then have a set of folders of 'look at later'. If later is greater than some time period I just delete the whole folder. Once a month I look at the overflow. Most of the time it is more of a 'why did I care about this' and just blow it away. It is a variation of the empty mail box. Inbox needs to be done. Then the 'done' folder. There is no real stack or tree. That way lies madness (I have tried).

I try to keep my tabs in context of whatever I am doing. I max out about 10-20 (6 at the moment). Past anything like that and most of them are useless.

Bookmarks are for 'I know I will need this in the future' everything else I can search for again.

comment 5y ago · link · parent

The college I went to they would bundle these sorts of classes into other ones. For example my 'C' class was also a how to get around in unix class and it was 1 day a week. But they also had pre-reqs so you had to have the 3 other classes first before you could do that one. So they could assume a particular level of education. When you are on your 2nd or 3rd language sometimes you are not sure what is important in a new one. So sometimes it takes a bit longer to learn. Now having a few under my belt I have a good idea which bits to look at first in a language. If all you knew was java and it was 1-2 classes of it, then being dumped into lisp and picking it up in 2-3 weeks would be a challenge for many.

Java as a language is actually tiny. So are most languages. Most of the pain is in the tools, build chains, and libraries that go along with them. Also sometimes what works very well in one lang is a pain in another. For example the dictionary in python has no real equivalent in C, unless you use some lib or write something yourself. In java you would need a map or hashmap class and knowing it exists sometimes is the biggest hurdle. But at least it is in the std library. So sometimes those sharp edges bite students as they are first starting with new langs and have decent exp in another language.

1
464748
59