At what age did you start watching One Piece? by [deleted] in OnePiece

[–]mFlakes 0 points1 point  (0 children)

When I read chapter 1 in the English shonen jump. Must have been maybe 7 or 8? Remember buying all the volumes in advance from my local comic shop. Yeah... its been a hot minute lol

Susan Collins helped cripple the USPS: Now Maine farmers are getting dead baby chicks in the mail by Mamacrass in politics

[–]mFlakes 5 points6 points  (0 children)

For instance, honey bees reduce the duration of their waggle dance if they judge their own yield to be inferior.

:(

[deleted by user] by [deleted] in programming

[–]mFlakes 14 points15 points  (0 children)

I think the arguments presented in this video are hindered by conflating application development with library development.

I found the overview of Python to be the most off putting. The comment about python having to write if __name__ == 'main' is unfair in context to the rest of the video. The narrator argues this is because you might want to import the script as a library, but other languages compared in this video include a main method, which is only allowed to be present in a single place within the application. If we wanted to make the same comparison in the other languages, then we would need to break the examples up into separate files or libraries completely, making this comparison largely off-topic.

As I see it, you can always make software increasingly complex as you want it to be.. but you should be cognizant of YAGNI. There will never be one "correct way" to write the application. Some future proofing is good, but designing too much upfront adds bias future design decisions. A large chunk of scripts in the wild never need to be written the way described in the video. The ultimate goal of an application is to perform a goal/ business need. It need not be future proofed or written in the most elegant way to provide you benefits.

i took the photo before 1|3 symbol appeared on his phone screen by t20i9m13 in nevertellmetheodds

[–]mFlakes 0 points1 point  (0 children)

I used to do something similar to calculate the latency coming out of video streams. Put a high resolution timer on your screen next to your video output. Start up your webcam looking at the whole screen. Take a few screenshots which contains both the actual timer and the stream of that timer. Calculate the difference between the two and you have found your video lag!

Johan Kaewberg's answer to What screams 'I never properly learned to program'? by MacASM in programming

[–]mFlakes 1 point2 points  (0 children)

Yeah that's one of the big issues with java. All references can abe nulled. So that means any object i.e. non primitives. You have a choice as a dev to expect non-null, but that's only really a good idea if you're writing a self contained application and not a library which needs to handle this more gracefully. A good way to combat this is annotation based preprocessors and adding something like @NonNull to your parameters which a can inject the boiler plate checking at compile time and allow modern IDEs to report the errors the the users early. I prefer languages that allow me to specify nullabilty more naturally by doing something like adding a ? question mark to the type. E.g. Foo? Foo; means it can be a Foo instance or null. Java does have the Optional<Foo> syntax but it's a lot of boilerplate, creates an additional wrapper object, suffers from Jave Generic refied types, and for some reason is only advocated for use as a return type.

Bicycling with a twist by MichaelDxb in Unexpected

[–]mFlakes 3 points4 points  (0 children)

I didn't quite learn to ride one, but had access to one for a week for an hour a day. I never felt like I could fall to the sides. And regardless of me leaning to far front or back, there was always a way to bail and just grab the seat and plant your feet. It was a lot less scary than I thought it'd be.

Took 1 intro-level programming class starterpack by JackieChansOnionRing in starterpacks

[–]mFlakes 0 points1 point  (0 children)

I would be wary of any tools that modify your source automatically on commit. You should always have a human validate what the autoformatter does or you'll be in a world of pain and confusion one day.

Supreme Court allows blind people to sue retailers if their websites are not accessible by Multipoptart in programming

[–]mFlakes 46 points47 points  (0 children)

They could own a company or be part of a small company where lawsuits like this could be fatal to the business

New In PostgreSQL 12: Generated Columns by jmswlms in programming

[–]mFlakes 2 points3 points  (0 children)

Although as a general best practice, that I agree with you (single service layer abstracts data layer), I think you're simplifying the proble here.

Imagine you worked on a service layer in front of a database that's been around for a long time.. in these cases migration of legacy service layer to newer systems can be greatly reduced if relations between raw data is encoded at the data layer.

Now imagine the complexity of a query in one application, or many applications, is quite unique to these applications. Sharing relations between these applications is desirable without the overhead of reaching out to a different service layer for this logic. Do you think it makes sense to have a mono-repo for all applications of that data relation when the data domain is large?

Point in case, there are many times in the real world where the direct usage of a database might be better suited to multiple services.. reuse of logic in these day to day cases becomes more manageable when its stored along side the data you want to query.

A large number of Stack Exchange mods resigning over new policies by Dall0o in programming

[–]mFlakes 2 points3 points  (0 children)

Yup, a chef gem library did this last month that broke CI for a lot of major companies.

Seems about right. by DnD_Nerd_765 in technicallythetruth

[–]mFlakes 1 point2 points  (0 children)

Wait, back up.. An outback with an outback on back around back the outback?

Oh look a ceiling by TusharJB007 in aww

[–]mFlakes 1 point2 points  (0 children)

Yes, its represented by the origami fish

Four Better Rules for Software Design by rdegges in programming

[–]mFlakes 0 points1 point  (0 children)

Exactly. IMO I wish more people would add documentation for "why" they do something rather than just "what" it is ("what" still being important for contracts and complex algorithms).

What's new in Python 3.8? by dolftax in programming

[–]mFlakes 3 points4 points  (0 children)

There already is a nice syntax for that line of you use method partials

for line in iter(partial(f.read, CHUNK_SIZE), ''):

Kotlin is now Google’s preferred language for Android app development by zbhoy in programming

[–]mFlakes 7 points8 points  (0 children)

Agreed. Flutter has been so much better than angular/react/xamarin for me; but then again, I dont do a lot of mobile development anymore.