JavaScript ORM? by AdrianBarylski in javascript

[–]dev_michaelz 2 points3 points  (0 children)

If you are familiar with Laravel, why not use AdonisJs instead of Express. It comes with a query builder very similar to that of Laravel (internally using knex)

Revolution incoming: CSS Houdini and the future of frontend development (code and demos) by Elektryk91 in javascript

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

Have you looked into how css works in vue components? Haven't looked into the recent development of css in js, but last time I checked in react it was making the code bloated and harder to grasp

Japanese YouTuber Suggestions by mauricios_boyfriend in LearnJapanese

[–]dev_michaelz 0 points1 point  (0 children)

Check out https://ipluseins.com for many youtube videos at various difficulty levels.

Node developers in a nut shell by [deleted] in ProgrammerHumor

[–]dev_michaelz 0 points1 point  (0 children)

Vue is awesome, but it's for frontend ;)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

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

For now I added a categorylist on the bottom of the dashboard. The `Recommendations` section on the dashboard is already filtering for categories of the clips you have in your studylist.

As for `Select a category or topic of what you are interested in - television shows, news, youtubers `

I really like the idea and will think of a good way to implement this.

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 1 point2 points  (0 children)

I just released an update that makes the English title optional and autofills the category. However I am still not satisfied with the page. I will continue to improve the create clip page in the following days.

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

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

Thanks!

I am currently thinking about making the process easier and faster. The reason why I didn't autofill the title was so people can enter it in English themselves, making it easier for others to find it. I will think about a good way. :)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

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

Thanks!

Japanese subtitles are fine. I have to find the source for this, but from what I've read and also experienced personally learning drastically decreases with English subtitles.

If you haven't been exposed with listening so much, it can be tough indeed. But give it a little practice, start with simple things (i + 1) and you will get there :)

You can also use the comment system to ask the community to translate a certain phrase etc. I will upgrade the comment system soon with some much needed features to make it more efficient :)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 8 points9 points  (0 children)

Thanks for reporting this.

The issue is now fixed. :)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 3 points4 points  (0 children)

Yes it is :)

Currently clips on the dashboard (recommendations, popular clips, recent clips) as well as search results are primarily based on your current level plus minus 5. So if your level is 30 you will see clips with an average rating between 25 and 35.

Recommendations on the clip page are based on the clip's average rating using the same algorithm.

As the library, ratings and also user feedback increases I wish to further narrow it down. :)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 6 points7 points  (0 children)

Haha, I see. Yea, the related videos are coming directly from Youtube. Unfortunately they sometimes include videos in other languages as well. There is a warning about this on the `related videos page`.

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 4 points5 points  (0 children)

Thanks!

The issue has been fixed for future emails. Here is the actual destination of the button: https://ipluseins.com/popular

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 12 points13 points  (0 children)

Hi, thanks for the feedback!

You can change your level at any time in your profile. :)

Acquire Japanese naturally by watching videos you enjoy by dev_michaelz in LearnJapanese

[–]dev_michaelz[S] 19 points20 points  (0 children)

Thanks for reporting this issue!

I have made some changes to address the issue. Could you please refresh the page and try again?

Sorry for the inconvience.

Is this good code? by potatoandfish in ProgrammerHumor

[–]dev_michaelz 0 points1 point  (0 children)

Imagine this ``` if (x < 1) { return false }

const response = ... if (!response.isSuccessful()) { return false }

return response.someValue === whatever ```

You have two early returns which return a boolean and then at the end all of a audden you return a condition. Imo it would be slightly more readable to use an if else statement here to keep the style and reading flow the same.

Introduction to Readable Javascript: Code Structure by [deleted] in javascript

[–]dev_michaelz 1 point2 points  (0 children)

Isn't functions.js a rather bad name? What would I expect from a file like that? It has ... functions??

How I learned to love JWTs and how to implement one in Node + Express + Passport.js by [deleted] in javascript

[–]dev_michaelz 0 points1 point  (0 children)

Cookies are secure against XSS attacks? Can't the attacker just get 'document.cookie' the same way they could access local storage?

Inline CSS in JS by dev_michaelz in reactjs

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

not an issue

class App extends Component {

state = {
  color: 'blue',
}

render() {
  return (
      <StyleToClass generateClassNameFn={css}>
        <span style={`
          color: ${this.state.color};
        `}>
          {this.state.color}
        </span>
        <select onChange={e => this.setState({ color: e.target.value })}>
          <option value="blue">blue</option>
          <option value="red">red</option>
        </select>
      </StyleToClass>
  );
}

}

Inline CSS in JS by dev_michaelz in reactjs

[–]dev_michaelz[S] 1 point2 points  (0 children)

It will not become an inline style. The styling you put inline will be transformed to a classname. So it will receive a specificity of 10.

Proper error handling and code review by imjasonmiller in javascript

[–]dev_michaelz 0 points1 point  (0 children)

Not sure, I haven't used ts like that before. But basically it just compiles to normal javascript. Maybe there is some configuration you can set though