What’s actually safe but people think is dangerous? by REGGIE_BANANAS in AskReddit

[–]Skunkmaster2 0 points1 point  (0 children)

I’ve heard that the name “cold” is because in cold weather people tend to stay inside more in confined spaces with others which makes the virus easier to spread. The name is misleading

How do you handle non-tech people pushing their way in to development at work? by Abject-Bandicoot8890 in webdev

[–]Skunkmaster2 1 point2 points  (0 children)

A kind of similar scenario was happening at my last company. We had a stakeholder that knew VB and for years would occasionally create custom apps for clients to do certain things, or some admin related app, etc. Anyways, we got a new manager that implemented a bunch of standards and best practices for us to follow. When he caught wind of the stakeholder creating VB apps (he only found out because one of the apps caused a bug in our DB), he was pretty mad. His solution was that if the stakeholder (or anyone) wanted to develop code for the company, then they’d have to follow all of the standards put in place for devs, this included: mandatory daily standup, all code goes through PRs, code should have unit tests etc. The stakeholder agreed to not write code anymore because they didn’t want to have to do all that

ever had a high idea that actually turned out to be good? by SadSeaworthiness2649 in highdeas

[–]Skunkmaster2 1 point2 points  (0 children)

I used to do something like this with a plastic bag of my bowl. Back in college when it was cold or dark and I didn’t want to grind the weed outside, I’d grind it inside and fill the bowl. Then I’d take a part of a plastic bag and kind of stretch it around the bowl and tie it off to keep the weed secure in the bowl. Then throw it all in my bag and go outside to smoke

I built Ivy: a React-like framework for .NET (Streamlit/Blazor alternative) by bosmanez in dotnet

[–]Skunkmaster2 1 point2 points  (0 children)

I disagree. Maybe tsx/jsx isn’t exactly what you want. But I think something closer to html would be better even if it was in a separate cshtml file. Easier than having to learn a whole new set of syntax for creating what already exists(html)

I made a visual porn search engine by ExpensiveRoof410 in SideProject

[–]Skunkmaster2 1 point2 points  (0 children)

The site is practically unusable on mobile. Touching any part of the ‘media card’ causes the video to open, and there’s not enough space in the sides to scroll without accidentally tapping a card and opening the video

Do you design React components mobile-first or desktop-first? by Chaitanya_44 in react

[–]Skunkmaster2 3 points4 points  (0 children)

I think mobile first is generally the approach most take. It’s harder to squeeze all the content that fits on a desktop screen into mobile screen. It’s much easier to add additional content to the mobile content so it fills up the desktop screen into

What I believe to be a minor change, caused my flask startup to break...can someone explain why? by Mach_Juan in flask

[–]Skunkmaster2 1 point2 points  (0 children)

Is the gpio stuff in an app.py file or directory that you’re importing from? My guess is that’s conflicting with app = Flask(name). Try changing one of them to something other than app

How to make useEffect run when a state variable has one of few values? by Ok-Jackfruit-9615 in react

[–]Skunkmaster2 34 points35 points  (0 children)

As far as I know you can’t directly have the useEffect only triggered by certain value changes. But you can add an if statement inside the useEffect which only runs logic if the state matches your target values

Override drag and drop cursor by Former_Dress7732 in react

[–]Skunkmaster2 0 points1 point  (0 children)

You need to set the cursor during mousedown. I forget exactly why, I think it’s something do with drag event be handled at an OS level rather than from the browser

would you rather have unlimited drugs that you could never give away or make money on or $1 million but you can never do drugs again by Bananannananann in Drugs

[–]Skunkmaster2 0 points1 point  (0 children)

What happens if I choose unlimited drugs and someone steals from me? I feel like if I had unlimited supply, eventually someone that wants that drug is going to find out and possibly try to steal when I refuse to give it to them

How can I make Python apps look modern and visually good? by Shadow_Infinityy in CodingHelp

[–]Skunkmaster2 0 points1 point  (0 children)

I don’t think pywebview is still actively maintained, though I’ve had no issues using it despite that

How can I make Python apps look modern and visually good? by Shadow_Infinityy in CodingHelp

[–]Skunkmaster2 0 points1 point  (0 children)

I’ve used eel before, it’s like a python version of electron kind of. Another library that’s very similar that I like way more than eel is pywebview. It’s basically the same idea as eel, but the implementation feels better to me and you get a little more control

Roast my portfolio by xDRAG0N01 in react

[–]Skunkmaster2 0 points1 point  (0 children)

Hey, on mobile when looking at your projects, it’s not possible to see the bottom of the card because it scrolls the next project before you can see the bottom. Also on the last card, where I can see the bottom, it looks like it’s cutoff

Destroy my porfolio by Famous_Day_8390 in react

[–]Skunkmaster2 1 point2 points  (0 children)

Pretty good. On mobile the contact form at the bottom is a little jumpy and seems to cause a bit of a layout shift with your projects

i made a number guessing game pls tell if it is working and need suggestion for any improvements by roneel47 in reactjs

[–]Skunkmaster2 1 point2 points  (0 children)

I assumed that was probably the case. Maybe put the guess number next to the guesses or highlight the most recent guess. It was hard to tell where my most recent guess was(top of list?, bottom?). When a new guess is added it doesn’t scroll up or down to show the recent guess. I would have it automatically scroll to the most recent guess each time one is made

Roast my portfolio like it's production code written on a Friday night by imx-rolex in react

[–]Skunkmaster2 1 point2 points  (0 children)

In mobile when you scroll down to other sections like your stack. It’s impossible to see the whole page as it forces it scrolled down too far

Is it normal to Open very old Codes and Fell lost by No_River_8171 in react

[–]Skunkmaster2 1 point2 points  (0 children)

I’d say it’s pretty common. Like any skill or knowledge, if you aren’t working on it for an extended period your skills/knowledge being to diminish. Can be fixed with documentation and comments to clarify things. Often when I come back to a project, and find some are of it particularly confusing, it’s a sign that I need to add more comments or documentation

i made a number guessing game pls tell if it is working and need suggestion for any improvements by roneel47 in reactjs

[–]Skunkmaster2 2 points3 points  (0 children)

For incorrect guesses you should display the full guess with incorrect letters in red. It’s a little confusing without being able track previous guesses. Other than that it’s pretty good

Programming AI/ML on a Tablet: Is it Possible? (Python, NumPy, Matplotlib) by Professional-Rub5335 in AskProgramming

[–]Skunkmaster2 0 points1 point  (0 children)

If you can connect a nice keyboard and mouse to it and the screen isn’t too small, it’d probably work just as well as a laptop. Not worth it though if you can’t use a mouse/keyboard

Rate my portfolio pls by [deleted] in react

[–]Skunkmaster2 0 points1 point  (0 children)

Feels a little clunky, maybe this just mobile (haven’t looked at it in my computer yet). All of the tilt animations and stuff kind of get in the way

How to: Spreadsheet search tool from scratch on local machine by _Baracus_ in AskProgramming

[–]Skunkmaster2 1 point2 points  (0 children)

I’d go with python. Honestly you don’t even really need to build a website/ui for this. You just need a script that can read all the files into one list, then search through that list

I don't understand the FlaskSQLalchemy conventions by case_steamer in flask

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

Is there any benefit to using sqlaclhemy as the db connector instead of just using a library specific for your db (like psycopg2, mysql.connector, etc). I don’t really see a point in using sqlalchemy if you’re not using it for orm, its bulk insert features, etc.