Skip to content

Instantly share code, notes, and snippets.

View MichalBryxi's full-sized avatar
⛰️
Vacationing

Michal Bryxí MichalBryxi

⛰️
Vacationing
View GitHub Profile
@MichalBryxi
MichalBryxi / rock-and-roll-ember-interview-questions.md
Last active September 4, 2024 15:54 — forked from balinterdi/rock-and-roll-ember-interview-questions.md
The Rock & Roll with Ember band – Interview questions

These are the questions that can serve as a guide for the interview. You don't have to religiously adhere to them, though, so feel free to skip any or even come up with others you'd like to answer.

The easiest way for me to compose the interviews would be for you to fork this gist, add your name and your answers to the questions (right below each question) and send me the link to your gist.

  1. Could you introduce yourself in a few sentences?

Hi, I'm Michal Bryxí, or Míša. You might know me from EmberJS Discord, conferences or just the internet space. I'm quite a keen advocate of good UX, not blaming users for the faults of the IT industry and spending my time in any other way than at the computer.

  1. Which part of the world you are from?
import Controller from '@ember/controller';
import { Changeset } from 'ember-changeset';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
get changeset() {
const user = {
firstName: 'foo',
lastName: 'bar'
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@MichalBryxi
MichalBryxi / controllers.application\.js
Created August 19, 2021 14:03
flat vs nested get
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
flat = {
'some.nested.keys': 'flat'
};
nested = {
some: {
nested: {
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
@MichalBryxi
MichalBryxi / controllers.application.js
Last active July 20, 2021 16:58 — forked from poteto/controllers.application.js
ember-changeset-validations demo
import Ember from 'ember';
import AdultValidations from '../validations/adult';
import ChildValidations from '../validations/child';
import { reservedEmails } from '../validators/uniqueness';
import { schema } from '../models/user';
const { get } = Ember;
const { keys } = Object;
export default Ember.Controller.extend({
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { computed } from '@ember/object';
export default Controller.extend({
// currentPage = 0;
_data: 0,
currentPage: computed({
get() {
@MichalBryxi
MichalBryxi / controllers.application\.js
Last active June 16, 2021 15:42
capitalize-undefined
import Controller from '@ember/controller';
import { capitalize } from '@ember/string';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
get foo() {
return capitalize(undefined);
}
}
@MichalBryxi
MichalBryxi / components.my-component\.js
Last active May 6, 2024 10:44
async-await-shenanigans
import Component from '@glimmer/component';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class extends Component {
@tracked foo = undefined;
@tracked bar = undefined;
@action
async clickMe() {
@MichalBryxi
MichalBryxi / controllers.application\.js
Created April 1, 2021 14:32
link-to-dynamic-params
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}