119 karma · joined Nov 3, 2015 (11y ago) · 96 submissions
1.
Ask HN: I stumbled upon a new programming paradigm, what should I do next?
4 points · by morbidhawk · 8y ago · 2 comments
2.
Ask HN: Where can I find easy to read code, that can be understood completely?
2 points · by morbidhawk · 9y ago · 1 comment
comment 9y ago · link · parent
I came to the realization I didn't even need a lot of the language features for what I was doing and decided to switch it to C to not have to maintain various versions of the library and it was a steep learning curve but I've come to really enjoy the simplicity but powerful capabilities of C.
comment 9y ago · link · parent
It's almost a weird paradox: OO/FP focuses on reusing code yet imperative/procedural code (ie: C) does not reuse code but is itself the most reusable code. You can't have your cake and eat it too I guess.
comment 9y ago · link · parent
I'm not sure if you've already tried this, but in addition to applying to jobs related to your side project I suggest applying to other jobs that have a lot more jobs available. My guess would be the number of jobs for mobile game dev might be limited and competitive and that would make it difficult when applying as a recent graduate. Web technologies whether for front-end or backend development are greatly in demand and are worth considering.
comment 9y ago · link · parent
This is an apt observation. The number of jobs are seriously lacking for Objc/Swift, I was lucky to do an internship in iOS but could never get into another interview after that for the bleak number of iOS jobs available that I applied to. I transitioned into .Net web development and I have been given a lot more opportunities since.
Also, Apple also has a way of creating a walled-garden for their developers. Some of the best practices back when I was an iOS dev involved Apple-specific technologies like AutoLayout constraints and CoreData which doesn't give as many marketable skills if applying to non-iOS jobs.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
If I was to create a study guide I wouldn't tell the student anything they should be doing, but rather ask questions that lead them back to their source material:
* What are you learning about currently?
* Why do you find it challenging?
* Why is it important?
* What is the general idea?
Learning by applying some memorization technique sounds boring to me, in comparison to curiosity-based learning using socratic/thoughtful questioning. Instead of responding to study work with a fight-or-flight response, asking questions allow you to break out of that fearful mindset and start to examine the topic and as you ask questions about it you'll start to find little bits of interesting knowledge in it.
comment 9y ago · link · parent
comment 9y ago · link · parent
This is what is weird about programming is that you only need to know a subset of things to build stuff so it gives a lot of Jr developers a false sense of know-how and confidence (I was like this for a long while). I think a willingness to own up to what you don't know and like you said "research what's the best way to do it, consult with senior developers" is a hard obstacle to get past. I wonder if this might make it hard for hiring managers to assess skill, jr devs are probably more likely to sell themselves as more than they are and mid devs might be more likely to admit what they don't know.
comment 9y ago · link · parent
16.
Ask HN: Mid-level developers, what does it take to qualify as Mid-level?
1 points · by morbidhawk · 9y ago · 3 comments
comment 9y ago · link · parent
comment 9y ago · link · parent
I think there is a way to verify what people are thinking and that would be by asking them questions. As you point out later it has to be genuine and not a clinical encounter, and I'd also add not a self-serving one. If you genuinely want to understand what they are saying you would then be very present in the conversation rather than just trying to hear what you think you want or don't want to hear (ie: "I've got to found out if he/she's going to abandon me or break my heart" is a self-serving interest and will eventually have the opposite effect), but trying to understand what they are saying because you are curious about them and hold them in high esteem will go a far way and asking questions that help you try to understand their point of view.
Too many people are trying to either narrate the relationship or are trying to serve their own self-interests and apply way too much meaning to each interaction and if instead they saw an encounter as an opportunity to learn rather than to try to have it mean something personally I think they'd find a whole lot more success.
I'm not extremely experienced in social interaction but I've had to learn to be to be able to communicate better with my wife and this is what I've learned, my self-centered motives have prevented me from learning so much more from others and using curiosity and questions has been super helpful in helping me to overcome social anxiety and relationship conflict fears.
tldr; let go of your ego (don't take things personally) and try to learn what other people are saying by asking them genuine questions (rather than trying to do all the talking, you learn more this way).
comment 9y ago · link · parent
I agree with you, it's not acceptable (and that is an excellent analogy). Aren't content consumers also to blame here as well though? Viewers put up with it anyway. I'm surprised by top google search results that bring up click-bait junk that requires waiting for a page-full of ads to load and then requires that you click through 10 more pages before you even get to all the information you needed. I think this is an indication that the majority of people are willing to put up with it because otherwise those sites would have a high bounce-back rates and wouldn't have ranked so high.
Edit: I actually read the article and the author makes this point better than I could:
> The only solution is to unite in changing our behavior. We need to give website operators an ultimatum: Remove the modals, or we leave. And we need to make good on that promise. By closing the browser tab, we can let the bounce rate demand what we as users cannot.
comment 9y ago · link · parent
"Just be yourself" is a little too simplified I'm afraid, my former self was people-pleasing and constantly seeking validation while avoiding emotions and conflict, not being vulnerable. That is not the person I want to be, to discover who I am I've had to recognize that there are new values that were deep inside me (authenticity, vulnerability, honesty) but that I had to dismantle a whole bunch of socially conditioned lies to get there as I had a misunderstanding of those values. I don't think I could have done this process alone, therapy has helped me a lot to recognize that I had unhealthy opinions.
comment 9y ago · link · parent
Take for example Socrates, he went around asking questions that would contradict people's arguments by destructively questioning a particular definition that was presented, but his purpose in doing so was to construct a better definition of whatever thing he thought was ill-defined. Each time a contradition happened a more well-defined definition was able to be produced
comment 9y ago · link · parent
- I heard it mentioned before code reviews found more bugs in an experiment more than unit testing did (I heard this study was mentioned in Code Complete but I haven't checked the source on this). I wonder if reading code catches more bugs than writing code wouldn't this be an argument for spending more time reading our code rather than writing code that tries to understand it?
- Unit testing has the added benefit that when you change existing code or refactor you know that the behavioral unit tests guarantee those same behaviors happen after refactoring (my first point above doesn't give the same benefit so this may be worth a lot more than finding bugs in code reviewing new code (as it isn't reasonable to read all the existing code over again).
- I've also heard that code coverage is a terrible metric and can cause bad unit test practices, trying to cover all lines of codes instead of trying to test for specific behaviors.
- Some unit tests may become irrelevant as the design changes and also have maintenance costs
Since my team does unit testing while striving for 100% test coverage of our back-end web service code, we put a lot of time into unit testing (quality of the unit tests might be questionable sometimes as we aren't testing for all behaviors only ensuring all code is covered), so I wonder if we spent all the time that we spend unit testing and instead would read over all the code areas affected by the new code we and other teammates are writing to ensure we understand how it works, would it be more beneficial to read the code than to unit test it? I'm not convinced either way myself
comment 9y ago · link · parent
Edit: another thought: maybe the developer should see his code as a problem rather than an answer so that he can constantly question it. Rather than being satisfied that something you wrote is now done or solved, instead you see it as something that has likely created new problems for you to be able to solve (Mark Manson said something insightful about this, how solutions don't really solve everything completely as it might solve 1 problem it always presents new problems/challenges)
comment 9y ago · link · parent
comment 9y ago · link · parent
You need to focus on content and start learning to ask productive questions to help you become really interested in the content you are learning about, rather than treating it like some quiz you just study for. Be honest with yourself and with the interviewers. You don't need to prove your competence to yourself or overstress about looking competent to your interviewers, care about the content and they'll be able to see that you are good
comment 9y ago · link · parent
Recently, I came back to it just to use for code/programming notes and instead of trying to organize all the code into source blocks I went the other way and added in my own comments and questions in blocks that can be toggled on/off around the code that's there. Now the only org syntax I really use from org-mode is `#+BEGIN:` blocks for comments/questions I can quiz myself on and occasionally headlines when I want to organize something because it's in the way of reading the plain text. If I gave advice to someone new to it it would be to start with just plaintext notes and only add what you really need. You can quickly go overboad once you are trying to figure out how to do footnotes, file linking, exporting w/ images, source code execution, etc.
comment 9y ago · link · parent
Asking questions has helped me a lot questions like "how does this work?" has motivated me to read code (which I think can be more useful than writing code sometimes) and try to learn things as they really are rather than how I assumed they were built (I've discovered some interesting patterns and came to some interesting realizations this way).
I actually try to minimize my time spent reading blogs and books but sometimes I find wikipedia to be very good at giving me really good information that isn't as dogmatic or opinionated.
comment 9y ago · link · parent
I'd argue that there is only 1 useful fact that persuades us to open our minds and learn and that's realizing that we know nothing. This is the 1 truth Socrates held onto and helped him to learn so much. He'd never assume he knew something well enough and instead assumed there was always more to learn and used socratic method questioning to show contradictions in his own knowledge and world view. I think that is really the only way to persuade someone, by asking really good questions that cause them to question their own world views and biases.