[-] joshthewaster@lemmy.world 7 points 2 days ago

We did prohibition once already. The result was that all the little guys went out of business and the big guys ended up in positions to be the only guys. I wouldn't discount that as being a possibility for weed.

20

So I have struggled with classes and objects but think I'm starting to get it...? As part of a short online class I made a program that asked a few multiple choice questions and returns a score. To do this there are a few parts.

  1. Define some inputs as lists of strings ((q, a), (q2, a2),...). The lists contain the questions and answers. This will be used as input and allows an easy way to change questions, add them, whatever.

  2. Create a class that takes in the list and creates objects - the objects are a question and it's answer.

  3. Create a new list that uses that class to store the objects.

  4. Define a function that iterates over the list full of question/answer objects, and then asks the user the questions and tallies the score.

Number 2 is really what I am wondering about, is that generally what a class and object are? I would use an analogy of a factory being a class. It takes in raw materials (or pre-made parts) and builds them into standard objects. Is this a reasonable analogy of what a class is?

[-] joshthewaster@lemmy.world 4 points 1 month ago

Thanks this is helpful.

Function - probably has some limitations depending on what it is meant to do but generally I send a thing, it does it's function to that thing, and returns the result (or error).

Method - part of the thing itself. Would have to be defined for that 'object' and if it isn't then it probably doesn't make sense to ask for that info.

Probably have a ways to go to understand objects and why I would choose one VS the other.

27

Just started as in, I'm about an hour into a 4 hour intro video. Seeing two basic ways of manipulating things and don't understand the difference.

If I want to know the length of a string and I just guess at how to do it I would try one of these two things,

  1. Len(string)
  2. string.len()

What is the difference between these types of statements? How do I think about this to know which one I should expect to work?

[-] joshthewaster@lemmy.world 9 points 2 months ago

My vote too. It's crazy, nothing can be trusted when it relies on ads. Everyone likes to think it doesn't work on them or is worth the free content but they are wrong and it isn't.

[-] joshthewaster@lemmy.world 7 points 5 months ago

The annular one over north America? Because it was annular. While a cool event it is really a specific kind of partial eclipse. Totality is incomparable to even a 99% partial eclipse. I heard it described as the difference between mostly dead VS dead and recently I've seen the xkcd comic that does a decent job conveying the difference too.

[-] joshthewaster@lemmy.world 5 points 5 months ago

And nanies cost money. So do you have another employee who could be productive now play babysitter half the time? That isn't going to help anything but a lot of companies seem to think it's the answer.

[-] joshthewaster@lemmy.world 6 points 5 months ago

That last bit is HUGE. Part of what is great about working from home is flexibility and forcing people to be in on certain days just isn't ever going to work for everyone. Inevitably you will end up with meetings where one person has to dial in and now the rest of team is annoyed they made the effort to show up that day.

Anyway, I don't disagree with you that a hybrid where everyone is on the office together for some amount of time could be very good for productivity and teamwork. However, it just isn't a realistic which then, as you said, makes it pointless.

Just let people work from wherever works for them.

[-] joshthewaster@lemmy.world 4 points 7 months ago

This is true but hard to argue within the universe as we just don't have the info and there are in universe contradictions about transporters. Been a while since I saw the episode but for me - 'nonexistentance' is close enough to 'dead' that Tuvix should have been allowed to live.

[-] joshthewaster@lemmy.world 13 points 7 months ago

Tuvix adds another element though. Tuvok and Neelix were already dead and Tuvix was alive. I think that makes this different from the standard trolley problem - still a hard choice but not the same.

[-] joshthewaster@lemmy.world 9 points 8 months ago

If hall effect sensors used for the thumbsticks do what they say (no drift) then maybe they do. I have v1 and v2 elite controller and both have bad drift. The v2 is so bad it's unusable so I use the v1 and just deal with it because I refuse to ever spend another penny on a controller that is just gonna drift again. Hopefully MS will adopt this for all controllers though.

[-] joshthewaster@lemmy.world 9 points 11 months ago

Sunday best. Business suits. Yep, this is accurate.

[-] joshthewaster@lemmy.world 9 points 1 year ago

I did once. I was young and broke and I saw another apartment in my same building on craigslist for less than I was paying. Tried to call my landlord (who was one guy and not a giant Corp) but he wouldn't return my calls. So I sent a check for 50 bucks less via certified mail - he called me the moment it arrived and let me get away with it. That apartment was 550 and a drop to 500 made a difference for me then. Now... That same shitty apartment probably rents for 2k a month.

I think the exception proves the rule though so I won't make you eat any paint chips.

5

I think this episode is part one of the holonovel followed by the second part during the second half. The only break we take from seeing the holonovel be played is when they tell captain Janeway (where she implies that she has to be made to look good) about the first half and when Tom and Tuvok are in the mess hall being hassled by everyone who wants to help write the second half.

Tom and Tuvok write the ending off screen (there is dialog where they argue about a logical ending or a wild twist). The Twist is that part two picks up with the player of the novel meeting Tuvok in the hallway to go to the holodeck to help write the ending. When the player gets there they then get attacked by Seska and get to help rescue Voyager while novel character Janeway helps save the day by brilliantly editing the simulation (in a holonovel simulation).

[-] joshthewaster@lemmy.world 2 points 1 year ago

Less tools and dishes in favor of better tools and dishes - at least, better for what you cook. Less stuff means less clutter per cabinet means easier to keep organized and easier to grab something when you need it. Knives and spoons/spatulas are a big one - there just isn't a time that I need three sizes of large spoons or a 12 piece knife set. I have 2 metal spatulas, one flexible one stiff. Three knives, small medium large (and could reduce this to two). How many mixing bowls do you really need? Minimal dishes - I keep some extras out of the kitchen in case of guests but a dozen place settings day to day is too many. Anyway, if you have more than one of something really think about the use case and if you have items that you haven't used in months/years just get rid of them or store them in an overflow cabinet so you can get them out for the one holiday. This also reduces the amount of things that can end up dirty at one time.

No stacking (except identical items or small things like measuring cups). Ideally I can grab anything I need with one hand. Because I have less stuff than I could fit I have room for a shelf of unstacked mixing bowls (two sizes) - when I need one (or need to put one away) I don't have to deal with unstacking/sorting them. Same for large measuring cups, dishes, glasses, pots and pans, etc. Exceptions for me are baking dishes (only have so much room and I use these less) and some other specialty rare use items.

Urgent needs go closer to the prep areas and stove. When I need a spatula or something right this second to keep something from burning those are close by. Baking supplies are far away because if I need those I'll get them all out at the same time before I start. This is really specific to you. Pay attention to what you really use and how and sort accordingly.

Don't worry about perfect organization. I have a drawer by the stove/prep area with my spatulas, tongs, spoons, food scissors, etc. It has dividers in it but nothing has a 'place'. The dividers at least keep everything pointing the same way but it's a sparse junk drawer - I can see everything so it doesn't matter if it's jumbled a bit. Same for most of my cabinets - if I can see it and get it with one hand that's good enough.

If at all possible the triangle of stove/fridge/sink with prep area next to all of those is ideal.

Overall my current kitchen is pretty good. I have some cabinets I'd swap for drawers if I had a bit more room. I'd like to reduce a few things but it is fun to have some extras for special things (specific ramen bowls, unique coffee mugs to rotate through, a waffle maker). Extra storage (maybe in the pantry) would be good for larger less used things but I don't have that...

view more: next ›

joshthewaster

joined 1 year ago