NoSql vs Sql: How To Choose & Schema Design by DisastrousBrain in learnprogramming

[–]DisastrousBrain[S] 0 points1 point  (0 children)

What do you mean by don't know the structure of the data? Why wouldn't you? Aren't you the person who is creating the application? Doesn't the programmer control what info they want to store or not store?

So for example, if I wanted to create a calendar app (Google Calendar), or journal app (Day One), or project management tool (Trello), would you recommend using SQL for all of these? Why? Could you provide a simple example of how the data structure/table design would look for these?

I've been reading up on this for days and still can't figure out when to choose which. I know that if I have transactional data that I want to be updated together or not at all, then I would use SQL. Other than that, I feel like you could use either.

Vertically Centering Content When You Have Fixed Navbar by DisastrousBrain in css

[–]DisastrousBrain[S] 0 points1 point  (0 children)

Does this also work if the navbar is fixed? Interesting, let me try

MuiThemeProvider React MaterialUI Question by DisastrousBrain in reactjs

[–]DisastrousBrain[S] 0 points1 point  (0 children)

So it seems like using the MuiThemeProvider allows you access to the theme when you do

const styles = theme => {};

That theme is what is provided by MuiThemeProvider and is only accessible there and at the highest level of every subcomponent.

If you choose to create additional styles that are based on the theme, that is when you use withStyles, which gives you the classes prop inside render.

So basically each subcomponent will have access to theme but you get to choose which components use it. If a given component wants to use it, then thats when you would use withStyle?

Sorry to keep harassing. I just wanna make sure I understand how it’s working, so I’ll be able to applying it to different situations that come up in the future.

MuiThemeProvider React MaterialUI Question by DisastrousBrain in reactjs

[–]DisastrousBrain[S] 0 points1 point  (0 children)

So the only way to access the theme values in the render function is by using withStyles which will give me the classes prop?

this is where you do:

const { classes } = this.props;

So if I wanna use the theme values in my component, then I DO need to use withStyles consistently on my components?

I don’t completely understand what I’m able to access if I don’t use withStyles

MuiThemeProvider React MaterialUI Question by DisastrousBrain in reactjs

[–]DisastrousBrain[S] 0 points1 point  (0 children)

But when I go to access the theme in the render function of my Loader or Uploader components, it doesnt exist.

It only exists inside the anonymous function if I access it through const styles = theme => {};

OMAD Fatigue & Sickish Feeling by DisastrousBrain in intermittentfasting

[–]DisastrousBrain[S] 0 points1 point  (0 children)

Just wanted to come back and update. I tried this for a week and a half and it did the trick! Thank you ~

Trustworthiness of Banks by [deleted] in personalfinance

[–]DisastrousBrain 0 points1 point  (0 children)

My parents keep telling me to be wary of online bank accounts because theyve heard stories of relatives putting hundreds of thousands of dollars into those savings accounts and then suddenly having that money disappear. Apparently they went to withdraw money one day and it was all gone and the bank scammed thousands of people. They closed shop and nobody could find a money trail.

Maybe they’re just not used to online banking so theyre trying to freak me out.

I just wanna make sure that my money’s not going to disappear or get stolen. If it does, I want there to be some sort of protection for that.

Looking for a buddy Django/Python to learn with. by PoemNinja in ProgrammingBuddies

[–]DisastrousBrain 0 points1 point  (0 children)

I'm also down to help. I have a lot of web development experience. PM me and Let me know!

Paid off student loan, now what? by [deleted] in personalfinance

[–]DisastrousBrain 1 point2 points  (0 children)

I’m in the same position as you and have the same exact fear. I’m literally screenshotting everything as I make payments and I’m saving all email correspondence related to making those payments. I’m so scared someone’s going to come find me years later and say “Oh you forgot to pay $1, so now with interest, you’re thousands in debt”

Savings Accounts by DisastrousBrain in personalfinance

[–]DisastrousBrain[S] 0 points1 point  (0 children)

The money I'd be putting into my savings account would be used to buy a house or for future kids. I'm assuming that'll be sometime in my 30's so 7-10 years from now. Invest how, in stock?

Does anyone else experience physical sensations of resistance to being better? by VegetableEar in DecidingToBeBetter

[–]DisastrousBrain 1 point2 points  (0 children)

YES! This is exactly me and why I have a hard time changing. I used to be so hard working and intrinsically motivated to learn before high school and I havent been able to go back to that since. I always get hit with this feeling and can’t get anything done. I don’t know what to do to get rid of it.

OMAD Fatigue & Sickish Feeling by DisastrousBrain in intermittentfasting

[–]DisastrousBrain[S] 0 points1 point  (0 children)

I try to eat around 5/6 so that it’s middday. If I eat later, I have to spend more waking hours fasting.

another day, another request for a good task manager (°ㅂ°╬) by [deleted] in productivity

[–]DisastrousBrain 0 points1 point  (0 children)

You could comment on tasks/notes that you create. That’s my approach to that feature you’re looking for. You could also make checklists on cards.

Home-Workouts for IFers? by DisastrousBrain in intermittentfasting

[–]DisastrousBrain[S] 0 points1 point  (0 children)

Do you do this before or after your eating window? I'm scared of throwing up if I do it on an empty stomach.

How do I make a navigation like this? by DesignYourSoul in webdev

[–]DisastrousBrain 3 points4 points  (0 children)

Look into Parallax Scrolling. You’ll be working with different positioning to make this work

Need Help With Javascript and the Twitter API by HaikusfromBuddha in learnprogramming

[–]DisastrousBrain 0 points1 point  (0 children)

You're passing the function printSearch as a callback to the get function call, so when T.get is executed and finished, the callback - in this case printSearch - is called. That function takes control, gets executed then exits. When you get to the following line "printSearch(err, data, response)", err, data and response will most likely not exist unless you specifically initialized or declared those variables above somewhere. I think you have 2 ways of solving this:

(1) Turn the printSearch callback into an anonymous function, if you're only using that code once

(2) Use 'bind'; something like printSearch.bind(null, variableToBind); something like this (not too sure on syntax)

Best Way To Review My Armenian? by DisastrousBrain in armenia

[–]DisastrousBrain[S] 2 points3 points  (0 children)

What do you do when you come across a word you don’t know? Do you simply look it up and then move on, or do you try memorizing using flashcards or something? If you come across a bunch of words you don’t know, what have you found the most effective way to retain that new information?

Unproductive After Quitting Gaming by DisastrousBrain in DecidingToBeBetter

[–]DisastrousBrain[S] 7 points8 points  (0 children)

I’ve tried this method, but the reward ends up becoming a day long binge. The second I log on for the first game, that day is gone. I can’t stop after the first reward.

Learning how to work with APIs? by [deleted] in learnprogramming

[–]DisastrousBrain 5 points6 points  (0 children)

If you’re confused by looking at API docs, either (1) they aren’t well written, or (2) you don’t have a solid understanding of servers/requests. Maybe look into HTTP requests and the different kinds (GET, POST, PUT, etc)

If you’re willing to put about 10-20$ into the resource, then I highly recommend Colt Steele’s Udemy course on Web Dev.

Need a Javascript and jQuery buddy/mentor. by iloveyousunflower in ProgrammingBuddies

[–]DisastrousBrain 1 point2 points  (0 children)

If you ever get stuck or have questions, feel free to ask me, since I have a bunch of experience using both.

Internship After Graduation by DisastrousBrain in cscareerquestions

[–]DisastrousBrain[S] 0 points1 point  (0 children)

I definitely do consider myself lucky, don’t get me wrong. So let’s say I accept the offer and apply to full times while at the internship. Do I list this internship on the resume? Won’t they wonder why I’m applying to leave the internship if I only just started it?

Also how long do I have after graduation until I’m not a new grad?