由买买提看人间百态

topics

全部话题 - 话题: object1
(共0页)
c********r
发帖数: 286
1
热乎Glassdoor.com 面经:senior software engineer position
算法题不难,但是要求实际工作经验,要解决实际问题的经验,设计经验
PM1:
1. how to improve our website
2. how to make browser faster
3. how to make the page loading faster
4. how many doctor in US
5. tell me many reasons that can make the server down
PM2:
1. describe the structure of the object you are working on, draw the diagram
on white board
2. how to improve the current structure design
3. how to deal with memory leak
4. implement priority queue, which data structure, how ... 阅读全帖
d*r
发帖数: 238
2
来自主题: DotNet版 - Is there WinThread in C#
I have tried that. Say if object1 in thread1 and objct2 in thread2, obje
ct1 fire an event and objct2 catch the event, the first problem is that
the event is catched in thread1 instead of thread2. The second problem i
s that the thread1 is then blocked until the event catching is finished.
t********5
发帖数: 274
3
来自主题: DotNet版 - 求救一个小问题
我也认为是button的事件里写的
可是我找不到那个button相关的任何代码
是flash,整个页面主要都是flash的,我以前没接触过flash方面的编程,不知道您有
没有什么猜想,我顺着路子去找一找
table.aspx页面,就是有聊天窗口,有send按钮的这个页面
<%@ Page Title="" Language="VB" MasterPageFile="~/Shared/xxxx.master"
AutoEventWireup="false"
CodeFile="table.aspx.vb" Inherits="VNT_table" %>
"Server">

阅读全帖
N******K
发帖数: 10202
4
p1 = new object1
p2 = new object2
p3 = new object3
p4 = new object4
function A(input (i.e., const): p1, p2 , output p3 p4)
{
temp1= shared_ptr(new ObjectTemp1)
temp2= shared_ptr(new ObjectTemp2)
do somthing using p1 p2 temp 1 temp2 to update p3 p4
} //delete temp1, delete temp2
输入 输出 都已经new好了
内部加工加工
内部new出来的 {}结束统统释放
N******K
发帖数: 10202
5
当有成员变量 m_ClassA_member 的时候
p1 = new object1;
p2 = new object2;
p3 = new object3;
p4 = new object4;
ClasseA::function A(input (i.e., const): p1, p2 , output p3 p4)
{
temp1= shared_ptr(new ObjectTemp1);
temp2= shared_ptr(new ObjectTemp2);
m_ClassA_member = new(xxx);
do somthing using p1 p2 temp 1 temp2 to update p3 p4
} //delete temp1, delete temp2
ClassA()
{
m_ClassA_member = nullptr;
}
~ClassA()
{
if (m_ClassA_member != nullptr)
delete m_ClassA_member ;
}
z****e
发帖数: 54598
6
来自主题: Programming版 - oop还是跟fp是对立的
最简单例子,就不说场景
func1(Object1 obj1)
func2(Object2 obj2)
你觉得这两个是不是func1&obj1, func2&obj2两个紧密耦合了起来?
对比
obj1.func1
obj2.func2
其实是一回事
因为任何改动obj1的地方都会牵涉func1的改动
对吧?
对比
func1(Map map1)
func2(Map map2)
是不是就要更为松散呢?
这个时候你叠加func1&func2就很容易
当然一般这么理想是比较难做到的
多数时候还是这样
func1(Object obj)
func2(Object obj)
因为obj不变,所以func1(func2(obj))的叠加就很容易
但是如果obj在func1&func2中是不一样的
就变成紧耦合了,func和obj无法分离
所以fp不适合做这种一堆对象的场景,如果都是information
也就是map&list,就很容易了
沙发就在说这个,你回的一大通,我还以为你知道我在说啥呢
h*********o
发帖数: 151
7
来自主题: Statistics版 - R里面 GAM()的问题
确切地说,应该是spline s() 的用法问题: 请问在这样一个函数中如何自动选取最优
的参数?
object1 = gam(y~x+s(z),data=datafile1)
万分感谢!
(共0页)