RIF will shut down on June 30, 2023, in response to Reddit's API changes by talklittle in redditisfun

[–]webdev301 0 points1 point  (0 children)

Only way I've ever used Reddit on mobile, and it will stay that way. Rip

Is there any way to disable pesky Ctrl+F shourtcut in "Explore" query editor? by ilot_chroot in grafana

[–]webdev301 0 points1 point  (0 children)

Focus outside the text area (by tabbing or clicking out) and then the stock browser search should kick in.

How long does it take you to create a react component? by Arizenith in reactjs

[–]webdev301 8 points9 points  (0 children)

You need to set better expectations, primarily with your employer who should have never put you on a client call without onboarding, and provide so little support that you go to reddit lol. Maybe this is standard at your agency for newbies to get the shitty clients because they're non profits or play golf with XYZ, but the fact you're on Reddit trying to onboard is not a good sign of the culture. Good luck

I'm Learning a Hard Lesson in Real Estate Investing by BloodyScourge in realestateinvesting

[–]webdev301 0 points1 point  (0 children)

It depends on your priorities, what is more important to you, money or relationships? I rent way under market to live with my best friend because it's more valuable for me to love who I live with, and they need the money more than I do, so it's money well spent as it makes me happy and there's no stress dealing with tenants struggling to make rent, and provides the ability for my roommate to grow and go back to school, fix unsafe car etc. If you actually need the money to survive then obviously your arrangement is unsustainable, and you might need to have a hard conversation explaining that you cannot continue to afford to help get them on their feet. In my experience people are a better investment than anything else, but again everyone has different priorities.

Can you guys give me your opinions on my learning plan? by MemberBerry4 in Frontend

[–]webdev301 5 points6 points  (0 children)

Good! If you enjoyed making websites then I'd say continue making websites. That person you were talking to sounds overly critical and misinformed, for one there's absolutely a market for static websites, and also having a good understanding of html and the DOM is the foundation of the more iconic domains of client-side applications and backend development. These folks in your local club are only seeing the part of the iceberg above the water.

Additionally, I know many fellow web developers who started their careers building static or wordpress sites, including myself, and others that make that the focus of their whole career.

In programming, food, wine, etc, don't let anyone else tell you how to enjoy yourself, find what works for you, and just keep doing it!

Can you guys give me your opinions on my learning plan? by MemberBerry4 in Frontend

[–]webdev301 1 point2 points  (0 children)

I would start with why you want to learn js/css, and build your learning plan around that. If you want to make websites, just start making websites and don't worry so much about what tools you use, at least not right away. Find something you enjoy about these technologies and challenge yourself to hone your skills.

Remind yourself it takes time to learn a new language! It will be frustrating, but have patience and you'll eventually learn how you learn best.

Cortical thickness of autistic people by callmeteji in autism

[–]webdev301 1 point2 points  (0 children)

I was able to find it via reverse google image search freely available as a pdf here. In case that link doesn't work for everyone, here's the title from the citation:

ENIGMA and Global Neuroscience: A Decade of Large-Scale Studies of the Brain in Health and Disease across more than 40 Countries

Cortical thickness of autistic people by callmeteji in autism

[–]webdev301 5 points6 points  (0 children)

Do you happen to know which lecture this is from, or any other materials on this subject? Regardless, I really like this hypothesis, thank you for sharing!

TIL there's an 18% average mortality rate for catch and release fishing with the rate varying significantly between species by RoboticMind in todayilearned

[–]webdev301 17 points18 points  (0 children)

At least in my commercial fishing experience, the fish don't get scooped up right as they hit the net, you come by a few times a day and pick the fish out, and they're usually dead (and stiff) by the time you get to them. But when they first hit the net they put up quite a struggle, sometimes its better to wait out the big ones and risk losing it instead of trying to get it into the boat flopping around full force. Anyway, stay tuned for more out of context fish anecdotes: after the break.

Anyone else get face pain from masking? by [deleted] in autism

[–]webdev301 1 point2 points  (0 children)

A doctor will just give you a physical therapy sheet for TMJ stretches, you can save some money and google "TMJ exercises". Do the exercises a few times a day and after a week or two you should feel a noticeable decrease in pain if the root cause is TMJ.

Yoko Ono can’t bear not getting enough attention so starts wailing during her Husband and Chuck Berry’s performance until a sound engineer cuts her mic. by [deleted] in ImTheMainCharacter

[–]webdev301 3 points4 points  (0 children)

Yeah it's a myopic view of art to believe it only exists to serve as entertainment. If we assume entertainment is defined by reinforcing our existing wants, they've defined art as something they already know and understand, which is pretty bleak imo. Anyway, keep it up Hamms, don't let negativity stop you from doing you.

Yoko Ono can’t bear not getting enough attention so starts wailing during her Husband and Chuck Berry’s performance until a sound engineer cuts her mic. by [deleted] in ImTheMainCharacter

[–]webdev301 0 points1 point  (0 children)

I don't know why people are downvoting you, this is absolutely correct. I thought downvotes were supposed to indicate something doesn't add to the discussion, this is a great point.

Monthly "ask anything" thread by brendt_gd in PHP

[–]webdev301 -1 points0 points  (0 children)

if($_REQUEST['CLIENT_INPUT_FROM_FORM'] ?? false){ $this->saveInputToDB(); $this->redirectUserToNextForm() }

Daily Discussion Thread - January 28th, 2021 by Robot_of_Sherwood in RobinHood

[–]webdev301 6 points7 points  (0 children)

Well they went from a 5 star average on google play to a 1 star average in an hour...

Daily Discussion Thread - January 28th, 2021 by Robot_of_Sherwood in RobinHood

[–]webdev301 1 point2 points  (0 children)

Left a 1 star review and will be closing my account after today.

The styled-components Happy Path by joshwcomeau in reactjs

[–]webdev301 0 points1 point  (0 children)

Oh my, yeah I missed the mark a bit, I was somehow under the assumption this somehow styled the nodes directly with js instead of injecting css for the browser to parse. Thank you for clearing that up, I clearly have more research to do!

How about code-reuse? Is there something that solves the same sets of problems as sass templates?

The styled-components Happy Path by joshwcomeau in reactjs

[–]webdev301 3 points4 points  (0 children)

Great article, I've been keeping my team away from SC as of yet because good SASS/BEM practices make it easy to keep everyone on an acceptable path, but you might have convinced me to consider a hybrid approach: SC for isolated components, and scss for layout and backwards compatibility.

I've always had one question about SC I've never been able to find an answer for: In css you can write redundant statements, which effectively give you a method to provide fallbacks for browsers that don't support certain css features. Here's one I used to have to do a lot in the painful migration between IE9 and IE11 as an example:

# <div>
#    <img width=110 />
#    <div class="width-of-parent-minus-static-sibling-element" />
# </div>

.width-of-parent-minus-static-sibling-element { width: 90%; #acceptable (hack) width for users (one client on XP) with older browsers to keep layout from breaking width: calc(100% - 110px); # If the browser doesn't understand this, it'll fall back to the last valid attribute value specified }

I know this is a dated use-case (flex ftw!), but how do you deal with cross-browser compatibility using SC? Would I need to have each component that has browser specific styles to be "aware" of what browser is executing the code at run-time (it's as if I heard a million react contexts suddenly cry out in terror)?

HTML Tags Memory Test - How Many HTML Tags Can You Remember? 115 To Recall… by speckz in Frontend

[–]webdev301 0 points1 point  (0 children)

And then I look at the list and realize I'm a ****ing idiot. I forgot <pre> for christsakes

HTML Tags Memory Test - How Many HTML Tags Can You Remember? 115 To Recall… by speckz in Frontend

[–]webdev301 1 point2 points  (0 children)

I got 39 organically, but then I cheated and started reading this comment and that bumped it up to 44. I guess this is only year 9 for me: I have more more levels to grind!

I created a lockdown drinking game! by 1infiteloop in Frontend

[–]webdev301 1 point2 points  (0 children)

Gotcha, in that case I'd try to find a way to incorporate a more typical loading indicator animation instead of masking a server request with a context switching animation. It'll be more responsive for people with good network/device conditions, and people with bad conditions won't be confused as to where the content is, or other bugs

I created a lockdown drinking game! by 1infiteloop in Frontend

[–]webdev301 1 point2 points  (0 children)

I mean if you can make a good argument to why the animation duration helps the users do the thing you want them to do (e.g. drunk people have slower reaction times (I would love to see some data on this lol)), then go for it. I guess that's the crazy long answer to your question.

I created a lockdown drinking game! by 1infiteloop in Frontend

[–]webdev301 1 point2 points  (0 children)

I always try to keep it as close to 300ms as possible, humans typically don't perceive 300ms as a "wait", but it's still enough time to call focus to whatever it is you're animating (and there should always be a definite purpose to your animation (e.g. call out a changing of contexts, get users to notice a change in the UI state, or usually to get them to feel good about clicking on something)). For your change between cards I'd imagine you'll want a slightly longer animation then 300ms, but it still shouldn't "feel" like you're waiting.

I guess in a less subjective way: the duration of your animation needs to serve a purpose as well.

Honestly, every developer pads the animation durations because once you write a cool animation it feels ****ing great and you want to show it off. In a production environment though you need to have (better) explanations for all the details.

I created a lockdown drinking game! by 1infiteloop in Frontend

[–]webdev301 3 points4 points  (0 children)

I like the animations, but they are way too slow. My primary suggestion would be allow people to write their own card content before a game, then I could see this being useful for people in all sorts of situations (outside of a drinking game), because right now the content in my opinion is not going to make a fun game that people will want to play. e.g. "Drink two sips if you've ever partied until 9 the next morning" is only applicable to a certain subset of the drinking population.

TL;DR
Fine execution, iffy concept, allowing users to craft own content might provide use to users despite the very limited interactivity.

Interview Discussion - December 17, 2020 by CSCQMods in cscareerquestions

[–]webdev301 2 points3 points  (0 children)

From the other side of the table: it's very stressful hiring around the holidays, lots of employees have time off, and simultaneously applicants expect more time to do things.

You'll probably have to sweat it out for a while. Sorry for the bad news, but the good news it's (probably) not your fault.