[12.9-12.13] Ao propylene _ Technology _ Weekly this week

The more you know, the more you do not know

Learn new things, review articles featured this week:

Warm remind men : Click on the title to read

"Life Program" rain ten years - from universities to technical experts I've done what?

  • These friends are around in the Internet field for many years a large cattle, because of life and personal habits, many of them did not write blog habit, or not made public, but they encountered a handsome C, I show ah, I can help they sorted out ah .

    The purpose is to make a lot of newcomers like me, have a clear understanding of a complete career path planning, the bronze to the king to go through what ?

    This article is I see post, as well as the technology stack inquiries around cattle each stage of learning, write out the breadth and depth to be achieved.

    In fact, we found that each stage you have to do the kind of leader others, need to pay a lot of things, as a fresh graduate, I personally feel a little depth may be important to you than breadth, because at this stage you do not know the future of technology may come in contact stack, but you have to have a deeper understanding and awareness of what you already know, this will be when you go out and recruit school, there are certain core competencies.

    Again know, know why, you only use Why the hell I want you, not someone else?

    For the small partner after work, I think the breadth of technology is your primary task at this stage, and the breadth of the expansion is actually very good, because the technology stack on those.

    Breadth about it, it would top the depth of it, you go for an interview if the interviewer familiar with a particular technology stack, then he must get to the bottom you that the technology stack, if you not familiar with, not necessarily out of you, but to your the probability is small.

    Decide how far you can go breadth, depth determines how high you go, the long road program, Ao propylene encourage each other with you.

"Easing the bit interviewer" series -HashMap

  • This is definitely a favorite collection interviewer asked, because he is a representative, but also more complicated structures than any other collection, you need to know almost all of his knowledge, in order to win the points firmly in the interview .

    HashMap common interview questions:

  • HashMap underlying data structure?

  • HashMap access principle?

  • Java7 and Java8 difference?

  • Why will not thread safe?

  • What are thread-safe class instead of it?

  • 默认初始化大小是多少?为啥是这么多?为啥大小都是2的幂?

  • HashMap的扩容方式?负载因子是多少?为什是这么多?

  • HashMap的主要参数都有哪些?

  • HashMap是怎么处理hash碰撞的?

  • hash的计算规则?

    我顺便解答一下评论区的的两个小问题,因为可能大部分的仔都疑惑吧

16是2的幂,8也是,32也是,为啥偏偏选了16?

我觉得就是一个经验值,定义16没有很特别的原因,只要是2次幂,其实用 8 和 32 都差不多。

用16只是因为作者认为16这个初始容量是能符合常用而已。

Hashmap中的链表大小超过八个时会自动转化为红黑树,当删除小于六时重新变为链表,为啥呢?

根据泊松分布,在负载因子默认为0.75的时候,单个hash槽内元素个数为8的概率小于百万分之一,所以将7作为一个分水岭,等于7的时候不转换,大于等于8的时候才进行转换,小于等于6的时候就化为链表。

红黑树会在算法和数据结构阶段写出来的,不要急,在HashMap写那就不是5000个字能搞定的了。

《吐血整理》-顶级程序员书单集

  • 王潇:格局决定了一个人的梦想,梦想反过来决定行为。

    那格局是什么呢?

    格局是你能够看见的深度、广度和密度。

    王潇认为,格局是一本本书搭建起来的,正如她所言:“读书让我知道世界很大,然后才知道推开门去看看这个世界。

    之前有一篇文章我写到了几乎是一个技术人从0到1的整个生涯了,其实大家发现根本就没有终点。

    我们的一生其实也基本上都在学习,那提到学习,我第一时间想到的就是读书了。

    记得帅丙在自己21岁的那个夏天,当时拿到了自己的第一笔实习工资1400块,因为是110块一天嘛,而且入职的第一个月也没上满,但是还是很开心,第一个月师傅就给了一个建议,买本书吧。

    就这样我买了出社会之后的第一本技术书籍《Java核心卷一》,也是师傅推荐的,如获至宝。

    到现在我的书架都茫茫当当了,但是这本书还是一直陪伴我左右,也是我印象最深刻的技术书籍,因为那感觉就像是初恋的味道,甜甜的。

    为啥推荐大家读书呢,书籍的作者都是几年甚至几十年的经验,最后总结为一本书,那就算里面有错误的点,我想你花几十块,只用几个礼拜甚至几天就可以拜读人家十几年的经验,我觉得怎么算都是血赚?

    这我在文章开头说的话,我爸经常说万般皆下品惟有读书高,我家族也是教师世家那种,小时候爷爷是老师,后来我爸爸,我伯伯,我妈妈无一例外都是老师,只是工资实在太低,后来都出去打工了。

    但是读书和教育别人的日子也给了他们不少的收获,爸爸虽然是打工,但是他会经常琢磨和学习,还让我教他百度什么的,反正我觉得他还是很棒的,好好读书哟。

【真实面试经历】我和阿里面试官的一次“邂逅”(附问题详解)

  • 这篇文章的内容都是根据读者投稿的真实面试经历改编而来,首次尝试这种风格的文章,花了几天晚上才总算写完,希望对你有帮助。

    主要涵盖下面的内容:

  1. 分布式商城系统:架构图讲解;

  2. 消息队列相关:削峰和解耦;

  3. Redis 相关:缓存穿透问题的解决;

  4. 一些基础问题:

  5. - 网络相关:

    • 浏览器输入 URL 发生了什么?
    • TCP 和 UDP 区别?
    • TCP 如何保证传输可靠性?
    • Java 基础:
    • 既然有了字节流,为什么还要有字符流?
    • 深拷贝 和 浅拷贝有啥区别呢?

    面试过程跌宕起伏,来自阿里面试者的真实故事,阿里的面试官都这么nice的么?

一份还热乎的蚂蚁金服面经(已拿Offer)!附答案!!

  • 还记得年中我跳槽的时候也去蚂蚁金服面试了,说实话蚂蚁的面试难度也还是很有东西的。

    由于作者面试过程中高度紧张,本文中只列出了自己还记得的部分题目。

    经历了漫长一个月的等待,终于在前几天通过面试官获悉已被蚂蚁金服录取,这期间的焦虑、痛苦自不必说,知道被录取的那一刻,一整年的阴霾都一扫而空了。

    笔者面的是阿里的Java研发工程师岗,面试流程是3轮技术面+1轮hr面。

    面试官分别从基础、多线程、内存、红黑树、tcp/ip协议等方面去拷问面试者,一般人还真顶不住,但是如果你看过敖丙的系列,并且还买了敖丙的服务器搭建项目,那可能就有点东西。

敖丙的絮絮叨叨

本周怼了三篇高质量的原创,说实话我已经有点不得行了,怼两篇需要我周六周日全身心投入,怼第三篇就需要工作日也要加班了。

年底我事情是真的多,这周双十二过去了,下周还有视频拍摄,项目年底的总结啥的,下周盲猜三篇100%鸽了,2篇我尽力,1篇保底。

我还写了2019年的总结,这一年我还完了自己的助学贷款,离职了,来了新东家,开始写作了总之很多事情吧,这篇文章还会参加掘金的年底活动,大家到时候记得去给我点赞嘻嘻。

有意义的事

这周不是抽书嘛,大家的热情有点超出我的想象了,留言直接打满了,不过好像悬念不是很大,只能说两个小伙伴太强了,书本下周应该就可以到他们手上了。

没抽到的小伙伴不要气馁,年底我送30本!还是随机的那种哈哈哈。

、

下周预告

下周的文章会写到2019年的总结,ConcurrentHashMap&Hashtable,可能会写ArrayList&LinkedList不过不确定时间能不能够,所有最后一篇不敢保证。

周末了,大家好好享受这个周末,祝大家周末愉快。

【敖丙】| 敬上

Guess you like

Origin juejin.im/post/5df38fe85188251273249fa4